How to deploy ASP.NET webservice to IIS 7?
asp.net, iis-7, msdeploy, web-services
Solution
- rebuild project in VS
- copy project folder to iis folder, probably C:\inetpub\wwwroot\
- in iis manager (run>inetmgr) add website, point to folder, point application pool based on your .net
- add web service to created website, almost the same as 3.
- INSTALL ASP for windows 7 and .net 4.0: c:\windows\microsoft.net framework\v4.(some numbers)\regiis.exe -i
- check access to web service on your browser
Problem
How can I deploy an ASP.NET web service to 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. For IIS-5 I followed the below steps. - Create new virtual directory in IIS - Open the Webservice in Visual Studio - Go to Build - Publish website - Publish to Local IIS - Choose the same virtual directory created in Step-1 What are the steps for IIS-7 as these steps are not working? I am getting error 404. I have tried setting the `Default Document` to `.asmx`.