"Die Anwendung hat versucht, einen Vorgang auszuführen, nicht erlaubt, die durch die Sicherheitsrichtlinie" auf shared-webhosting-server

Habe ich eine Webanwendung erstellt, in ASP.Net 4.0 framework und verwenden LinqtoSQL für die Datenbank-Interaktion. Ich habe meinen code und hochladen auf meinem shared web hosting-server. Seine Homepage funktioniert Prima und alle Seiten gut funktioniert, wo den Inhalten der Seite interagiert nicht mit der Datenbank. Aber die Seiten interagieren Datenbank diese Seiten gibt mir Fehler :

    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

Beheben dieses Fehlers auf unserer shared-server???

Alle code funktioniert gut auf unseren lokalen IIS-server und unser Test-dedicated server aber unser Kunde erwarb einen shared-server und will auf shared server.

Was ist der stack-trace?
Bitte legen Sie es in Ihrer Frage.

InformationsquelleAutor Gaurav Agrawal | 2011-11-23

Schreibe einen Kommentar