asp.net - Impersonation with .net v4 -


i have .net v4 web app uses impersonation our web server , database server on separate physical servers.

when attempt run application receive server error

    not load file or assembly '######' or 1 of dependencies. access denied.  description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code.   exception details: system.io.fileloadexception: not load file or assembly '######' or 1 of dependencies. access denied. 

looking @ stack trace seems application doesn't have access to

c:/windows/microsoft.net/framework/v4.0.30319/temporary asp.net  

if grant impersonation user permissions on folder application works fine. if compile application down 3.5, uses .net 2 runtime , don't have give impersonation user permissions on folder "temporary asp.net" in .net 2 framework folder.

so question why have give permissions on folder .net v4, less works fine?

this sorted, found server config issue within global web config. should have been using e drive our compliation directory , not c drive


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -