Could not load file or assembly '' or one of its dependencies. An API call exited abnormally

23

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))

.net
asp.net
visual-studio-2010
asked on Stack Overflow Sep 27, 2011 by Bruno • edited Sep 27, 2011 by Brian Mains

5 Answers

33

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.

answered on Stack Overflow Sep 27, 2011 by Bruno • edited Sep 27, 2011 by Brian Mains
14

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".

answered on Stack Overflow Mar 26, 2014 by Marco Göstl
6

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.

answered on Stack Overflow Aug 1, 2014 by sebpinski • edited Jul 18, 2018 by Uwe Keim
0

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].

answered on Stack Overflow May 24, 2012 by s15199d
0
<div id="divWindowMain">
   <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
       <Services></Services>
   </asp:ScriptManagerProxy>
</div>
answered on Stack Overflow Feb 26, 2013 by user2111162 • edited Jul 18, 2018 by Uwe Keim

User contributions licensed under CC BY-SA 3.0