将Web应用程序部署到iis时出现问题

问题描述:

使用webmatrix构建一个Web应用程序,尝试在本地部署到iis 5.1进行测试,因此我将其添加到我的wwwroot文件夹中没有工作,然后我创建了一个虚拟目录。主页适用于此但我使用网络助手创建的登录不起作用...当我点击登录时我看到的是浏览器发送登录?并没有任何反应....我安装的网络部署也没有工作,所以我可以将依赖的网站部署到iis ...也可以部署到Windows server2003 ....任何提示将不胜感激...

Built a web application with webmatrix, try to deploy locally to iis 5.1 for testing purposes so i added it to my wwwroot folder didnt work then i created a virtual directory. the home page works with this but my login created with web helper doesnt work...when i click login all i see is the browser sending login? and nothing happens....and my web deploy that i installed doesnt work either so i can deploy the site with dependencies to iis... also can it be deployed to windows server2003....any hints would be appreciated... .

我使用的是Webmatrix3,而我的网络服务器是带有IIS7的Windows Server 2008 R2。我只是将我的整个项目目录从本地机器复制并粘贴到IIS inetpub / wwroot目录。然后从IIS7中我右键单击该目录(现在位于站点下的树中)并选择转换为应用程序。每次都可以使用。

I am using Webmatrix3 and my web server is Windows Server 2008 R2 with IIS7. I just copy and paste my entire project directory from my local machine up to the IIS inetpub/wwroot directory. Then from within IIS7 I right click that directory (which is now in the tree under sites) and select "Convert to Application". Works every time.

我还必须将它添加到我的Web.config中,以使其在I.E.中运行。由于强制兼容模式问题:

I also had to add this to my Web.config to make it work in I.E. because of the forced compatibility mode issue:

<system.webServer>
 <httpProtocol>
   <customHeaders>
     <clear />
     <add name="X-UA-Compatible" value="IE=edge" />
   </customHeaders>
 </httpProtocol>
</system.webServer> 

我希望这有帮助!