실제로 다음과 같은 오류의 원인을 파악하는 방법은 무엇입니까? 페이지는 다른 페이지와 동일하지만 어떤 이유로이 페이지에만이 오류가 있습니다. 또한 신뢰 수준이 보통 인 ISP (GoDaddy)에서만 발생하며 중단 점을 설정하여이를 잡으려고 시도 할 수 없습니다. 이 문제를 가지고하거나 알고있는 경우ASP.NET 보안 예외를 추적하는 방법
Server Error in '/' Application. Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
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.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessPermission.Demand() +59 System.IO.Path.GetTempPath() +54 hh.a(Int32 A_0, Boolean A_1, Boolean A_2) +20 jg.b(c A_0, UInt64 A_1) +234 ei.b(c A_0, UInt64 A_1) +18 jg.a(c A_0, UInt64 A_1, Boolean A_2) +61
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
어떻게 수정하거나 추적 할 수 있습니까? 중간 정도의 신뢰 수준은 ISP에서 필요합니다.
사이트에서 필요한 신뢰 수준을 낮추려면 어떻게해야합니까? 파일 시스템에 파일을로드해야하는 Db4o를 사용한다고 가정 해보십시오. –
IIS7의 경우 서버 또는 웹 사이트의 ".NET Trust Levels"항목 아래에서 IIS 관리자의 신뢰 수준을 편집 할 수 있습니다 수평. http://technet.microsoft.com/en-us/library/cc753658(WS.10).aspx –
신뢰를 변경하는 방법을 알고 있지만,이를 낮추고 오류가 발생하면 어떻게해야합니까? 거기서 나는 어디로 가야합니까? –