Could not load file or assembly '' or one of its dependencies. An API call exited abnormally
Solution 1
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.
Solution 2
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".
Solution 3
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
Updated on July 09, 2022Comments
-
Bruno almost 2 years
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))