asp.net mvc 5 - MVC5 fails on 1 and 1 Internet shared hosting -


my mvc4 sites work without problems on 1 , 1 internet shared hosting, when tried mvc5's default site using vs2013 beta, failed , haven;t been able figure out why. can help? here error messages:

server error in '/' application.

security exception description: application attempted perform operation not allowed >security policy. grant application required permission please contact >system administrator or change application's trust level in configuration file.

exception details: system.security.securityexception: request permission of type >'system.security.permissions.reflectionpermission, mscorlib, version=4.0.0.0, >culture=neutral, publickeytoken=b77a5c561934e089' failed.

source error:

an unhandled exception generated during execution of current web request. >information regarding origin , location of exception can identified using >exception stack trace below.

stack trace:

[securityexception: request 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


version information: microsoft .net framework version:4.0.30319; asp.net >version:4.0.30319.18044

the asp.net team has killed support medium trust. mvc 5 requires full trust. see answer @ https://stackoverflow.com/a/17218344/59641 more information.

ask hoster run site in full trust, or choose different hoster.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -