Recently I came across this issue with Visual Studio 2015, while developing a website. I used ScriptManager to load javaScript to my web application. When I inspected the code of the site I noticed a message saying I was trying to load a script with https. A further investigation revealed that the culprit was the script at http://ajax.aspnetcdn.com/ajax/4.6/1/WebForms.js, which, of course, was not written or referenced anywhere in the code.
Alas, I discovered the issue: the property “EnableCdn” on the ScriptManager was set to “true”. To fix the issue (remove the unnecessary reference) just change it to “false”. If this file is required by your project, I recommend adding it like a regular JS and not from this CDN. Firstly, it’s from an unsecured location, secondly, using a CDN is not for publishing, as it might not be available, or change without notice (yes, even if it’s from Microsoft!)
1 2 |
<asp:ScriptManager ID="myScriptManager" runat="server" EnableCdn="true"> </asp:ScriptManager> |
Change to:
1 2 |
<asp:ScriptManager ID="myScriptManager" runat="server" EnableCdn="false"> </asp:ScriptManager> |
<script src=”http://ajax.aspnetcdn.com/ajax/4.6/1/WebForms.js” type=”text/javascript”></script>