Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security exception Elmah.AccessErrorLog in a Medium Trust #323

Closed
atifaziz opened this issue Aug 25, 2015 · 2 comments
Closed

Security exception Elmah.AccessErrorLog in a Medium Trust #323

atifaziz opened this issue Aug 25, 2015 · 2 comments
Labels

Comments

@atifaziz
Copy link
Member

atifaziz commented Aug 25, 2015

What steps will reproduce the problem?

  1. Configure an ASP.net 4.0 web site with <trust level="Medium" />
  2. Add Elmah
  3. Configure Elmah AccessErrorLog

For obvious security reason I copied a precreated Elmah.MDB file into the App_Data folder.

but during elmah initialisation the system throw the following Security Exception:

Stack Trace:

[SecurityException: Request failed.]
   Elmah.AccessErrorLog.InitializeDatabase() +0
   Elmah.AccessErrorLog..ctor(IDictionary config) +59

Version Information:
Microsoft .NET Framework Version:4.0.30319;
ASP.NET Version:4.0.30319.272


Originally reported on Google Code with ID 323

Reported by damiano.gambarotto on 2013-01-02 11:10:01

@atifaziz
Copy link
Member Author

atifaziz commented Aug 25, 2015

I think the promlem is

ProcessStartInfo psi = new ProcessStartInfo("cscript", "\"" + scriptPath + "\" \""
+ dbFilePath + "\" //B //NoLogo");

see

http://msdn.microsoft.com/it-it/library/system.diagnostics.processstartinfo(v=vs.100).aspx


Reported by damiano.gambarotto on 2013-01-02 13:54:03

@atifaziz
Copy link
Member Author

This issue was moved to JamesDriscoll/ELMAH.AccessErrorLog#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant