MVC应用程序部署到IIS

时间:2017-01-02 13:55:13

标签: c# asp.net asp.net-mvc iis model-view-controller

我正在尝试将我的MVC应用程序部署到安装了IIS的服务器上。我在IIS上添加了一个应用程序,通过Visual Studio将应用程序发布到正确的目录,但显然当我尝试通过我的IIS管理器运行它时,它给出了一个错误,即请求的URL太长并且看起来很奇怪。它的形式是:

  

http://localhost:80/ClassDeclarations/Account/Login?ReturnUrl=%2FClassDeclarations%2FAccount%2FLogin%3FReturnUrl%3D%252FClassDeclarations%252FAccount%252FLogin%253FReturnUrl%253D%25252FClassDeclarations%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FClassDeclarations%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FClassDeclarations%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FClassDeclarations%25252525252FAccount%25252525252FLogin%25252525253FReturnUrl%25252525253D%2525252525252FClassDeclarations%2525252525252FAccount%2525252525252FLogin%2525252525253FReturnUrl%2525252525253D%252525252525252FClassDeclarations%252525252525252FAccount%252525252525252FLogin%252525252525253FReturnUrl%252525252525253D%25252525252525252FClassDeclarations%25252525252525252FAccount%25252525252525252FLogin%25252525252525253FReturnUrl%25252525252525253D%2525252525252525252FClassDeclarations%2525252525252525252FAccount%2525252525252525252FLogin%2525252525252525253FReturnUrl%2525252525252525253D%252525252525252525252FClassDeclarations%252525252525252525252FAccount%252525252525252525252FLogin%252525252525252525253FReturnUrl%252525252525252525253D%25252525252525252525252FClassDeclarations%25252525252525252525252FAccount%25252525252525252525252FLogin%25252525252525252525253FReturnUrl%25252525252525252525253D%2525252525252525252525252FClassDeclarations%2525252525252525252525252FAccount%2525252525252525252525252FLogin%2525252525252525252525253FReturnUrl%2525252525252525252525253D%252525252525252525252525252FClassDeclarations%252525252525252525252525252FAccount%252525252525252525252525252FLogin%252525252525252525252525253FReturnUrl%252525252525252525252525253D%25252525252525252525252525252FClassDeclarations%25252525252525252525252525252FAccount%25252525252525252525252525252FLogin%25252525252525252525252525253FReturnUrl%25252525252525252525252525253D%2525252525252525252525252525252FClassDeclarations%2525252525252525252525252525252FAccount%2525252525252525252525252525252FLogin%2525252525252525252525252525253FReturnUrl%2525252525252525252525252525253D%252525252525252525252525252525252FClassDeclarations%252525252525252525252525252525252FMyAccount%252525252525252525252525252525252F
  显然这不是我所期望的。发生这种情况我该怎么办?顺便说一句,是的,该项目使用实体框架。

0 个答案:

没有答案