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 #1

Open
atifaziz opened this issue Dec 19, 2017 · 1 comment
Open

Security exception Elmah.AccessErrorLog in a Medium Trust #1

atifaziz opened this issue Dec 19, 2017 · 1 comment
Labels

Comments

@atifaziz
Copy link
Collaborator

atifaziz commented Dec 19, 2017

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

Copied from original issue: elmah/Elmah#323

@atifaziz atifaziz added the bug label Dec 19, 2017
@atifaziz
Copy link
Collaborator Author

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

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