Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy ASP.NET webservice to IIS 7?

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.

  1. Create new virtual directory in IIS
  2. Open the Webservice in Visual Studio
  3. Go to Build
  4. Publish website
  5. Publish to Local IIS
  6. 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.

like image 492
Sujit Prabhakaran Avatar asked Jul 19 '12 04:07

Sujit Prabhakaran


People also ask

How do I deploy Web API in IIS 7?

Go to IIS and right-click on the application then select Manage Application -> Browse. It will look as in the image shown below. The preceding Blue screen shows that the Web API is up and running. Since the WebApi is already in running mode, I'll execute the following link to add an employee to the database.


1 Answers

  1. rebuild project in VS
  2. copy project folder to iis folder, probably C:\inetpub\wwwroot\
  3. in iis manager (run>inetmgr) add website, point to folder, point application pool based on your .net
  4. add web service to created website, almost the same as 3.
  5. INSTALL ASP for windows 7 and .net 4.0: c:\windows\microsoft.net framework\v4.(some numbers)\regiis.exe -i
  6. check access to web service on your browser
like image 151
WholeLifeLearner Avatar answered Oct 12 '22 23:10

WholeLifeLearner