Share via


deploy web service (.asmx) to IIS

Question

Tuesday, May 20, 2008 12:03 AM

I wish to add a web services(.asmx file) into the IIS, but it is not allow me to add just a single file, i have to add in whole web site, plus when i right click the .asmx file as to browse it. it prompts server unavailable. I dunno y, but when i ran on my solution, it works fine. What mistake did i made?

 

Can anyone there provide the steps for me if possible. Thanks :)

All replies (15)

Tuesday, May 20, 2008 11:55 PM âś…Answered

  1. create a project of type "ASP.NET Web service"
  2. Select "HTTP" from location dropdownlist (indicates that the file should be placed on a web server)
     By default, Visual Web Developer indicates that it will place the files on the local machine's IIS Web server in a virtual directory "http://localhost/WebSite".
     You can replace the name website with your prefered web service name.
    3)After Develop your web service, Add web references, select "browse UDDI Servers on the local network" option if you want to share the web service among different computer. Enter the source .asmx file URL and click "Go".
    4)Select "Add References" to add your reference name for web service, by default is "localhost", you can give it a name.
    5)declare a reference for your web service in your .aspx file.

6) you can try run your application in other PC.

I've try this, it works. :)


Tuesday, May 20, 2008 1:23 AM

Hi,

  1. Publish your werbservice as a file
  2. map the virtual directory to that published file
  3. Map appropriate version of ASP.net framework 1.1 or 2.0
  4. Make sure the iis and application pool is running.
  5. Click on the Default web site hit the Run button **|> it will start the web sites

Satalaj**


Tuesday, May 20, 2008 2:50 AM

to Satalag 

Thank you. the step 5 cannot be performed, because i didn't see any virtual directory path that allow me to hit the RUN button. So, what should I do next? any idea?


Tuesday, May 20, 2008 3:32 AM

To satalaj,

My mistake, I should say that i cant only publish my web services, it only allow me to publish whole web site. In that way, Any other way to publish my web services?


Tuesday, September 2, 2008 3:10 AM

I am using Asp.net ajax enabled web site.  In my form some data have to be saved in db, and i am using File Upload control to upload file after uploading a file after saving when i click the back button on IE the Web page expired msg is coming eventhough i have disabled the back button.... Can any one know how to resolve this problem. 


Tuesday, September 2, 2008 3:39 AM

Hello,

have you check your IIS whether your page is deployed there? and have you check the Integrated windows authentication under the Directory Security tab in your IIS?

Regards,

Hideyoshi


Tuesday, September 2, 2008 4:53 AM

Can you post the error ?


Tuesday, September 2, 2008 5:54 AM

We have deployed our application in IIS, but we cant able to found Integrated windows authentication under the security tab. 


Tuesday, September 2, 2008 6:20 AM

Open IIS

  1. Click on directory security tab
  2. Edit button
  3. you will see authentication method
  4. There is integrated windows security check box

for more info use www.IIS.net 

Satalaj


Tuesday, September 2, 2008 6:57 AM

i tried the same way.i got the directory tab.even though i tried .its not working.plz give the solution.from morning onward i really fed up of this.

now the error is..

 Exception:

The request failed with HTTP status 401: Access Denied.

check the response property of the exception


Wednesday, September 3, 2008 5:54 AM

Hi, I followed the same way what u mentioned here.

i also enable the integrated windows authentication in directory security tab.

while iam trying to run..the following  error occured.

Error"

WebException was handled by usercode

The request failed with HTTP status 401: Access Denied.

can u give any solution for tht.

 

 

 

 

 

 


Wednesday, September 3, 2008 6:05 AM

Hi, I followed the same way what u mentioned here. i also enable the integrated windows authentication in directory security tab. while iam trying to run..the following error occured. Error" WebException was handled by usercode The request failed with HTTP status 401: Access Denied. can u give any solution for tht


Wednesday, September 3, 2008 9:00 PM

Hi, Papanasamsami,

Can you tell me the properties that currently set in your IIS?

ANd i will recommend you to open a new thread, so that more people will know the problems you've got and perhaps can give you a hand.

Regards,

Hideyoshi


Monday, September 15, 2008 2:09 AM

Hi,

 Iam new to the webservices application. 

 i create a simple webservices application in my local machine  and runs well.i want to test  my webservices  in another system in the same network. for that what i have to do?

  can u tell the steps in details.


Monday, September 15, 2008 2:16 AM

Hi,

could you please post this as a new thread, to share the discussion with others, since this thread is ald resolved.

And, send me the links, it would be much appreciated. :)

Hideyoshi