简体   繁体   English

如何将ASP.NET Web服务部署到IIS 7?

[英]How to deploy ASP.NET webservice to IIS 7?

How can I deploy an ASP.NET web service to IIS 7? 如何将ASP.NET Web服务部署到IIS 7?

I have deployed my webservice to IIS-5 installed on windows server 2008. However, I am not well versed with configuration options in IIS-7. 我已将我的web服务部署到Windows Server 2008上安装的IIS-5。但是,我不熟悉IIS-7中的配置选项。

For IIS-5 I followed the below steps. 对于IIS-5,我按照以下步骤操作。

  1. Create new virtual directory in IIS 在IIS中创建新的虚拟目录
  2. Open the Webservice in Visual Studio 在Visual Studio中打开Webservice
  3. Go to Build 转到Build
  4. Publish website 发布网站
  5. Publish to Local IIS 发布到本地IIS
  6. Choose the same virtual directory created in Step-1 选择在步骤1中创建的相同虚拟目录

What are the steps for IIS-7 as these steps are not working? IIS-7有哪些步骤,因为这些步骤不起作用? I am getting error 404. I have tried setting the Default Document to .asmx . 我收到错误404.我尝试将Default Document设置为.asmx

  1. rebuild project in VS 在VS中重建项目
  2. copy project folder to iis folder, probably C:\\inetpub\\wwwroot\\ 将项目文件夹复制到iis文件夹,可能是C:\\ inetpub \\ wwwroot \\
  3. in iis manager (run>inetmgr) add website, point to folder, point application pool based on your .net 在iis manager(run> inetmgr)中添加网站,指向文件夹,根据您的.net指向应用程序池
  4. add web service to created website, almost the same as 3. 添加Web服务到创建的网站,几乎与3相同。
  5. INSTALL ASP for windows 7 and .net 4.0: c:\\windows\\microsoft.net framework\\v4.(some numbers)\\regiis.exe -i 为Windows 7和.net 4.0安装ASP:c:\\ windows \\ microsoft.net framework \\ v4。(某些数字)\\ regiis.exe -i
  6. check access to web service on your browser 检查浏览器对Web服务的访问权限

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM