8

我正在尝试将应用程序部署到godaddy。我的主机版本 ASP.Net 4.0/4.5。在http://onpremlab.com/ 上,它在我的本地环境中运行良好。使用 VS 2013 Preview for web 和 EF 6.0 Beta 构建。

但是当部署时抛出

[SecurityException: Request for the permission of type    'System.Security.Permissions.ReflectionPermission,

我已经使用 EF5.0 将另一个应用程序部署到了 VS 2012 中内置的 godaddy,效果很好。

导致它的 EF 6.0 是否有任何变化。我搜索了一下,发现关于 Godaddy 中等信任级别是否有针对 EF 6.0 的解决方法

另一点是这个项目部署在托管帐户的子文件夹中,如果它有任何区别的话。

更新..

堆栈跟踪:

[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() +47
   Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint() +66
   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) +418
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296
4

1 回答 1

1

显然 Owin 不再支持中等信任度 - 请查看这篇文章了解更多详细信息。

于 2013-08-09T19:09:26.023 回答