Error: “The file '/MasterPages/MainMaster.master' does not exist.” (Yes, this file does exist!)

后端 未结 7 1217
被撕碎了的回忆
被撕碎了的回忆 2021-02-10 01:15

I just got a new desktop computer with Windows 7 Pro as the operating system. I installed Visual Studio 2008 on to this new computer and tried to open a previously existing ASP.

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-10 01:57

    Two things to check:

    1. When using "~" in a file path, make sure that the current application deployment believes the root directory is the same as it was before. (I've run into this sometimes moving an app from the VS Development Server and IIS.)

    2. Make sure that the user account that the server is running under has permissions to access that directory. Since you just moved the code over from another computer and probably some intermediate storage devices, the security permissions may not be right.

提交回复
热议问题