ASP.NET Virtual Path Maps To Another Application Which Is Not Allowed

后端 未结 4 556
灰色年华
灰色年华 2021-01-11 11:17

I have a website that was building without any issue on multiple servers.
But, when I copy/move it on the same machine from one folder to another folder: I started getti

4条回答
  •  臣服心动
    2021-01-11 12:09

    This isn't why your error happened but it may be useful to someone researching the problem who ends up here.

    If your web app is running as an application within another IIS site (set via the IIS administration tool) and is attempting to reach resources of the other site by means such as HttpResponse.Redirect, make sure the project isn't set to use a separate IIS in Visual Studio. If it is, it may be firing up inside a different IIS than the rest of the site.

提交回复
热议问题