I have a .NET App that I've recently Checked In to Team Foundation Server. Ever since I Checked it in, I get Access Denied to the App folder. I then give security permissions to the impersonated user and receive the error:
Could not load file or assembly 'PMD Image Upload' or one of its dependencies. An API call exited abnormally. (Exception from HRESULT: 0x800300FA (STG_E_ABNORMALAPIEXIT))
Impersonate on the web.config was enabled for a user with no privileges on the debug machine. Commented out the impersonate and was able to debug the .NET app.
I know this is pretty old, but if you need to impersonate on the webserver you also need to award the impersonated user the rights to create/modify the folder "Temporary ASP.NET Files" in Windows\Microsoft.NET\"TheUsedFrameworkVersion".
The impersonate user should be given privileges to the solution files as well as the temp asp.net files for the solution, usually located in the following directory:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
Where "Framework" could be "Framework64" and "v4.0.30319" may be another .Net version number.
Bruno is correct. Disabling impersonation worked for me as well. If you don't have impersonate in your webconfig, and you're still having trouble. If you're running IIS 7.5 check your Application Pool. Sometimes it can be set to impersonate.
Look under [Advanced Settings > Process Model > Identity]
You'll want to set it to [ApplicationPoolIdentity].
<div id="divWindowMain">
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
<Services></Services>
</asp:ScriptManagerProxy>
</div>
User contributions licensed under CC BY-SA 3.0