I am trying to deploy an application to godaddy. My hosting version is ASP.Net 4.0 / 4.5. At http://onpremlab.com/ it works fine in my local environment. Build with preview VS 2013 for web and beta version of EF 6.0.
But when deploying throws
[SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission,
I deployed another application for godaddy built in VS 2012 with EF5.0. This works great.
Are there any changes in EF 6.0 that cause it. I searched about it and found that the level of trust at the godaddy level is average, does it have a workaround for EF 6.0
Another point is that this project is deployed in a subfolder of the hosting account, if it has any meaning.
Update ..
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() +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
asp.net-mvc entity-framework
Shanker paudel
source share