2016-05-03 58 views
0

Ich frage mich, ob jemand asp.net mvc5, identity2 und OWIN auf Godaddy deluxe Windows mit Plesk-Servern noch hostet? Ich habe alle im Internet veröffentlichten Empfehlungen befolgt, funktioniert aber immer noch nicht. Ich habe dieselben Dateien auf einem anderen Server abgelegt und die Webanwendung läuft. Ich vermute, das ist ein Vertrauenslevel. Ich habe Support Godaddy kontaktiert und sie sagen, dass ihr Server Vertrauensstufe 4 erlaubt - was verwirrend ist - ist das mittlere Vertrauen oder das volle Vertrauen? Sind sie ehrlich? Ich möchte wissen, ob jemand diese Art von Hosting-Arbeits hat, bevor ich mein AbbrechenHosting MVC5, Identität 2 und OWIN auf Godaddy

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.ReflectionPermission, mscorlib, Version=4.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.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] 
    System.Delegate.DelegateConstruct(Object target, IntPtr slot) +0 
    Owin.Loader.DefaultLoader..ctor(Func`3 next, Func`2 activator, IEnumerable`1 referencedAssemblies) +69 
    Microsoft.Owin.Host.SystemWeb.OwinBuilder.GetAppStartup() +65 
    Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint() +28 
    System.Threading.LazyInitializer.EnsureInitializedCore(T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory) +115 
    Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(HttpApplication context) +106 
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +534 
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172 
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339 
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296 
+0

Ich könnte falsch sein, aber ich denke, 4 minimal ist. Die Enumeration hat vier mögliche Werte und der Standardwert ist 0 (Full Trust) und der letzte ist Minimal mit einem Wert von 4. Wenn ja, würde ich diese Idee komplett aufgeben und stattdessen mit WinHost oder Cloud-Diensten gehen. –

+0

haben Sie die endgültige Lösung erhalten? –

Antwort

1

Hosting Ich weiß, das ist alt, aber ich bin die Lösung, so dass andere Personen veröffentlichen, die auf diese Frage kommt, kann geholfen werden.

Sie haben gerade das volle Vertrauen Element in Ihrer web.config zu platzieren, wie folgt aus:

<system.web> 
<trust level="Full" /> 
</system.web> 
+0

Dies wurde getan, aber es half immer noch nicht. Schließlich musste ich mein Hosting auf einen anderen Server verschieben. Hosten Sie mit GoDaddy? – Diin

+0

Ja. Alles funktioniert, nachdem das volle Vertrauen gesetzt wurde. –