ould not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
5/3/2012 2:17:02 PM
Gravatar
Total Posts 2

ould not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

My customer asked me to load MojoPortal on our webserver for them to use on their site.  We've installed a number of CMS systems before and haven't had much trouble, so I'm turning to you for guidance.  Something simple must be wrong and I'm just missing it.  We are running Server 2003 using .NET 4 Framework.  We'll be using a MySQL database.  I followed the instructions for the MySQL install (downloaded the MSSQL .NET 4 package and unzippped it to the root, edited the config and also installed the files from the MySQL zip file).  When I attempt to load the setup page I get errors in my event log. The first of which has all the details and I am providing below.

Can someone please help?  Thanks,

Event Type: Error Event Source: ASP.NET 4.0.30319.0 Event Category: None Event ID: 1325 Date:  5/3/2012 Time:  3:08:51 PM User:  N/A Computer: RGDOMINO3 Description: Failed to initialize the AppDomain:/LM/W3SVC/269528551/Root

Exception: System.IO.FileLoadException

Message: Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

StackTrace:    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)    at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)    at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)    at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)    at System.Activator.CreateInstance(String assemblyName, String typeName)    at System.AppDomain.CreateInstance(String assemblyName, String typeName)    at System.AppDomain.InternalCreateInstanceWithNoSecurity(String assemblyName, String typeName)    at System.AppDomain.InternalCreateInstanceWithNoSecurity(String assemblyName, String typeName)    at System.Activator.CreateInstance(AppDomain domain, String assemblyName, String typeName)    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

5/3/2012 2:40:41 PM
Gravatar
Total Posts 18439

Re: ould not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

I think if you google for "Failed to initialize the AppDomain" you'll find the answer, I suspect based on "Access is denied." that the user who is the identity on the application pool does not have needed permissions on the files.

First google result is here, and it links to more info here that also suggests it is a file system permissions issue that can be corrected by granting the needed permissions.

If that doesn't solve it there are lots more google results to review fo rthis error.

Hope that helps,

Joe

5/3/2012 6:56:43 PM
Gravatar
Total Posts 2

Re: ould not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

Joe -

That was exactly it.  I knew it was something simple.  Most of our web apps haven't required that level of permission from the application pool.  We're all set now.  Thanks.

5/4/2012 2:12:49 PM
Gravatar
Total Posts 18439

Re: ould not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

Most of our web apps haven't required that level of permission from the application pool.

just fyi, all ASP.NET apps would need read and execute permissions on the files that is nothing specific to mojoPortal.

Anyway glad you got it working.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.