cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

System.Net.Http, Version=4.0.0.0 The system cannot find the file specified.

smartin
Producer

We are running AppDynamics.Agent.Coordinator 4.2.8.  When this service is running, we get this error.

Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

The file is present in the GAC and the Fusion logs show:

<meta http-equiv="Content-Type" content="charset=unicode-1-1-utf-8"><!-- saved from url=(0015)assemblybinder: --><html><pre>
*** Assembly Binder Log Entry (8/30/2017 @ 9:24:49 PM) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = file:///C:/somesite/IIS/test-site.com/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = 448f9594
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\somesite\IIS\test-site\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: GAC Lookup was unsuccessful.
ERR: No codebases found to download from.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

 

 

Is this the same issue as referenced in : https://community.appdynamics.com/t5/NET-Agent-Installation/Could-not-load-file-or-assembly-Newtonso...

 

I looked at the release notes for 4.3.1, but did not see a resolved issue specifically for GAC access issues.

 

Thank you!

2 REPLIES 2

Raunak.Mohanty
AppDynamics Team (Retired)

Hi,

 

Can you try adding <add-assembly-reference enabled="false" /> section at your config.xml located at C:\ProgramData\AppDynamics\DotNetAgent\Config

 

Your config.xml will look like following ( content in bold needs to be added). Once you add this section please recycle Agent Coordinator Service and instrumented section

 

<app-agents>

    <profiler>

        <add-assembly-reference enabled="false" />

    </profiler>

....

....

....

</app-agents>

 

Let us know if this does not resolve the issue.

 

Thanks,

Raunak

 


Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Raunak, 

 

We were able to resolve the issue by upgrading the agent to 4.3.

 

Thanks for getting back to us.

 

Sean

On-Demand Webinar
Discover new Splunk integrations and AI innovations for Cisco AppDynamics.


Register Now!

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here
Top Kudoed Authors