Search code examples
asp.net-mvctelerik

Specified file does not exist: "~/Scripts/telerik.grid.js"


After publishing my asp.net mvc 3 application in my local IIS, I am getting the below mentioned error.

Specified file does not exist: "~/Scripts/telerik.grid.js".

This error is not coming when I and debugging it directly from visual studio.

This is only coming after it is published and browsed through IIS.


Solution

  • A few things to check:

    Is the file included in your project? Only included files are published, so probably you can't see the file in Visual Studio unless you turn on "Show all files" in the Solution Explorer? If so, try publishing the file manually.

    Another good test is to try surfing to the file. If that doesn't work, the file wasn't published to the server for whatever reason. This is the most likely problem.