The unit for registering enterprise journals is not registered

I have a problem with the logging unit version 3.1.

With framework 3.5, my application works fine on my desktop ... after it is deployed in our qa mailbox ... logging ceases to function. Web.config is identical in both scenarios. Any ideas? Are permissions issued?

After a quick diagnosis ... it turns out that it works when it is compiled in debug mode, but does not release ... does anyone know a setting to change this to work in release mode?

+5
source share
2 answers

Well, I found the problem, so I will post it if someone else runs into the same problem. All of this is related to permissions on our target machine, on which we are deploying. Although our development environment was “deployed” using the embedded web server through visual studio, our integration environment was the 2003 server (I hope you will see that I’m going to deal with this). Turns out this is a permission issue with the default application pool settings with iis. Running privs on the network does not allow you to access the event log and does not generate an error (note that this is a real pain). If you move it to your local system account ... everything will be fine (although this is not recommended). There is a section in the EntLib documentation for working under partial trust,where you can find most of the information you need.

+10

,

System.Diagnostics.Debug.Assert(conditionToTest, "Message when assert fails");

, DEBUG. , - .

+1

All Articles