ASP.Net 4.0 프레임 워크에서 웹 응용 프로그램을 만들고 데이터베이스 상호 작용을 위해 LinqtoSQL을 사용했습니다. 내 코드를 빌드하고 내 공유 웹 호스팅 서버에 업로드했습니다. 그 홈 페이지는 잘 작동하고 페이지 내용이 데이터베이스와 상호 작용하지 않는 곳에서 잘 작동하는 모든 페이지. 하지만 어느 페이지가 데이터베이스와 상호 작용하여 오류가 발생합니까?"보안 정책에 의해 허용되지 않는 작업을 응용 프로그램이 시도했습니다."
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 failed.
Stack Trace:
[SecurityException: Request failed.]
DataContextFactory.GetWebRequestScopedDataContextInternal(Type type, String key, String connectionString) in DataContextFactory.cs:81
DataContextFactory.GetWebRequestScopedDataContext() in DataContextFactory.cs:42
members_buyer_mypostedjobs..ctor() in mypostedjobs.aspx.cs:19
ASP.members_buyer_mypostedjobs_aspx..ctor() in App_Web_soaq30qq.4.cs:0
__ASP.FastObjectFactory_app_web_soaq30qq.Create_ASP_members_buyer_mypostedjobs_aspx() in App_Web_soaq30qq.9.cs:0
System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +109
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37
System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +334
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184
공유 서버에서이 오류를 해결하는 방법 ??
모든 코드는 로컬 IIS 서버와 테스트 전용 서버에서 잘 작동하지만 클라이언트는 공유 서버를 구입했으며 공유 서버에서 실행하려고합니다.
스택 추적이란 무엇입니까? – SLaks
질문에 넣으십시오. – SLaks