-->

How to use mscorlib.dll instead of mscorlib.ni.dll

2019-08-17 07:30发布

问题:

I'm trying to connect my app to use APM (New Relic), but Non-IIS App is preventing me from connecting my app to new relic. When my app is running using "process explorer" and I notice mscorlib.ni.dll.

From this article: https://discuss.newrelic.com/t/relic-solution-net-framework-agent-installation-issues-a-troubleshooting-guide/55166

I'm stuck at this part

mscorlib.dll is missing - mscorlib.dll is required to be present. It’s presence is how the .NET Framework agent identifies your application as a .NET app. If it is missing, please double-check to make sure your application meets the compatibility requirements 5 for monitoring by the .NET Framework agent. If you don’t see mscorlib.dll, but you do see mscorlib.ni.dll, then check to see if you’re using a native image module (such as NGEN). The .NET agent can not monitor applications that use a native image mscorlib.ni.dll assembly.

my app using mscorlib.ni.dll instead of mscorlib.dll, can someone guide me how to use mscorlib.dll ?