security exception DAAB

Oct 28, 2007 at 5:09 AM
I got this error using DataAccessApplicationBlocks,, SQLserver in a web hosting:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

SecurityException: Request for the permission of type 'System.Diagnostics.EventLogPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.Diagnostics.EventLog.SourceExists(String source, String machineName) +90
System.Diagnostics.EventLog.SourceExists(String source) +9
Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher.VerifyValidSource() +27

Does someone know how can I solve the problem?

Nov 6, 2007 at 1:09 AM
You got this error because ASP.NET 2.0 shared hosting servers use the default Medium trust level - see
Your options are limited - use other hosting (though it won't be easy to find someone who allows full trust), re-design your application to work under Medium trust restrictions (see more at ) or host application at your own box.
Or you can chip in and will be allowed to publish your ASP.Net application...

Good luck
Nov 11, 2007 at 6:32 AM
This discussion area is about the CodePlex website itself. For questions related to a project on CodePlex, such as Enterprise Library, Atlas Control Toolkit, SharePoint Learning Kit, or Web Client Software Factory, you should find the project in the project directory and enter your question in the discussion area for the project.