まだpleskサーバーを搭載したGodaddyデラックスウィンドウで誰かがasp.net mvc5、identity2、OWINをホスティングしているのでしょうか?私はウェブ上に掲示されたすべての推奨事項に従ってきましたが、それでも動作していません。同じファイルを別のサーバーに置いて、Webアプリケーションを実行します。私はこれが信頼レベルだと思う。私はGodaddyのサポートに連絡しており、彼らのサーバは信用レベル4を許容していると言っています - これは混乱しています - 中程度の信頼か完全な信頼か?彼らは正直ですか?私は、誰もが、私は私がMVC5、Identity 2、OWINを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
私は間違っているかもしれないが、私は4が最小であると思います。 Enumerationには4つの値があり、デフォルトは0(完全信頼)、最後の値は4の最小値です。 もしそうなら、私は完全にその考えを放棄し、代わりにWinhostまたはクラウドサービスを使用します。 –
あなたは最終的な解決策を得ましたか? –