How to deploy an ASP.NET web service for IIS 7?

How can I deploy an ASP.NET web service for IIS 7?

I deployed my web service for IIS-5 installed on Windows Server 2008. However, I am not very good at configuration settings in IIS-7.

For IIS-5, I have completed the following steps.

  • Create a new virtual directory in IIS
  • Open the web service in Visual Studio
  • Go to build
  • Publish Website
  • Publish to Local IIS
  • Select the same virtual directory created in step 1

What are the steps for IIS-7 since these steps do not work? I get error 404. I tried to set the Default Document to .asmx .

+6
source share
1 answer
  • rebuild the project in VS
  • copy the project folder to the iis folder, possibly C: \ inetpub \ wwwroot \
  • in iis manager (run> inetmgr) add a website, specify a folder, specify an .net-based application pool
  • add a web service to the 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 the web service in your browser.
+3
source

Source: https://habr.com/ru/post/920853/


All Articles