Error log4net.dll

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.
4/21/2010 9:50:19 PM
Gravatar
Total Posts 2

Error log4net.dll

Hello, I installed on my computer mojoportal and everything worked fine.

I wanted to try it on a hosting but I had some problems that arose were resolved but the latter does not.

The pack is the mojoportal mojoportal-xxxx-mssql-deploymentfiles.zip
on IIS 7.5 and the error that occurs when I add some content, is:

Server Error in '/ mojo' Application.
-------------------------------------------------- ------------------------------

Could not load file or assembly 'log4net, Version = 1.2.10.0, Culture = neutral, PublicKeyToken = 1b44e1d426115821' or one of Its dependencies. Access is denied.
Description: An unhandled exception occurred During the execution of the current web request. Please review the stack trace for more information about the error and WHERE it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'log4net, Version = 1.2.10.0, Culture = neutral, PublicKeyToken = 1b44e1d426115821' or one of Its dependencies. Access is denied.

Source Error:


[Not relevant source lines]
 

Source File: c: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET Files \ mojo \ c7737c6e \ 211fceb5 \ App_global.asax.qooj8lhf.0.cs Line: 0

Assembly Load Trace: The following information Can be helpful to determine why the assembly 'log4net, Version = 1.2.10.0, Culture = neutral, PublicKeyToken = 1b44e1d426115821' Could not be loaded.


WRN: Assembly binding logging is Turned Off.
To enable assembly bind failure logging, set the registry value [HKLM \ Software \ Microsoft \ Fusion! EnableLog] (DWORD) to 1.
Note: There is Some performance penalty Associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM \ Software \ Microsoft \ Fusion! EnableLog].

 

Stack Trace:


[FileLoadException: Could not load file or assembly 'log4net, Version = 1.2.10.0, Culture = neutral, PublicKeyToken = 1b44e1d426115821' or one of Its dependencies. Access is denied.]
mojoPortal.Web.Global .. cctor () +0

[TypeInitializationException: The type initializer for 'mojoPortal.Web.Global "Threw an exception.]
mojoPortal.Web.Global .. ctor () +0
ASP.global_asax .. ctor () in c: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET Files \ mojo \ c7737c6e \ 211fceb5 \ App_global.asax.qooj8lhf.0.cs: 0

[TargetInvocationException: Exception Has Been Thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance (RuntimeType type, Boolean publicOnly, nocheck Boolean, Boolean & canBeCached, RuntimeMethodHandle & ctor, Boolean & bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow (publicOnly Boolean, Boolean fillCache) +86
System.RuntimeType.CreateInstanceImpl (publicOnly Boolean, Boolean skipVisibilityChecks, Boolean fillCache) +230
System.Activator.CreateInstance (Type type, Boolean nonpublic) +67
System.RuntimeType.CreateInstanceImpl (bindingAttr BindingFlags, Binder binder, Object [] args, CultureInfo culture, Object [] activationAttributes) +1051
System.Activator.CreateInstance (Type type, BindingFlags bindingAttr, Binder binder, Object [] args, CultureInfo culture, Object [] activationAttributes) +111
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance (IntPtr appContext, HttpContext context) +215
System.Web.HttpApplicationFactory.FireApplicationOnStart (HttpContext context) +8885464
System.Web.HttpApplicationFactory.EnsureAppStartCalled (HttpContext context) +136
System.Web.HttpApplicationFactory.GetApplicationInstance (HttpContext context) +92
System.Web.HttpRuntime.ProcessRequestInternal (HttpWorkerRequest wr) +289


Can someone guide me to find the solution?

Thank you very much

Walter

4/22/2010 6:12:50 AM
Gravatar
Total Posts 18439

Re: Error log4net.dll

Hi,

Make sure the log4net.dll exists in the /bin folder and that there is read permission on the file for the web process user. Basically the whole tree of web files needs to be readable by the process and the /Data and /App_Data folders need full control.

For issues about permissions in temporary files such as:

Source File: c: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET Files \ mojo \ c7737c6e \ 211fceb5 \ App_global.asax.qooj8lhf.0.cs Line: 0

you may need to contact your host, I've seen cases where a reboot would solve it or your host may know of configuration issues that cause it.

Also make sure the site is configured for .NET 3.5 SP1

Hope it helps,

Joe

4/28/2010 8:59:15 AM
Gravatar
Total Posts 2

Re: Error log4net.dll

Hi Joe,

Thank you very much for responding so quickly. I followed your instructions and forwarded their suggestions to the hosting service, but they told me that the file global.asax mojoportal have problems with impersonation and can not read the required libraries.

I do not really know what is happening, but I know that Mojo works perfectly well, an example is my personal computer.

Maybe I have to find another hosting service

Thank you very much

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