1
votes

After enabling Application Insights on my MVC web app I see that a file called ai.0.22.8-build00154.js was added to the /Scripts folder (however, it was not included to the .csproj).

In addition I do not see this file referenced anywhere in the project. When I run the web app I do see data being sent to my Application Insights instance on Azure.

* Question * Is this javascript file even required?

Note that I do have the script snippet at the end of the section (per App. Insights documentation).

2

2 Answers

4
votes

This file is not required. It is included in case you decide to host Application Insights JS SDK yourself and not use the hosted version on CDN (http://az416426.vo.msecnd.net/scripts/a/ai.0.js). The snippet is referencing this version, so in case you decide to host AI JS SDK script yourself, you also need to update the snippet. It is recommended that you are referencing the version on the CDN as this is the way to get all the latest updates automatically.

0
votes

Yes I believe it is required, it's the Nuget package. The filename you have up there seems to match up with the package.