PDA

Click to See Complete Forum and Search --> : How to deploy a web service?


Essential
Aug 13th, 2009, 11:41 PM
Hi all,

I've written a web service for registering a winform app I created and I'm not sure what I need to do to get it running on my web host. The web service works perfect on my local machine, using localhost, I've got a web host to put the web service on, but it's not working.

What I did was 'Publish' the web service, using the option to only include the files needed to run the web service. I then uploaded these release files onto my web host server. At this point I try to add the web service and reference the .asmx file and it's not working and telling me to enable custom error's to view remote errors.

I'm in the process of adding the custom errors code and what I'm looking for is someone with some experience to advise me if I'm even referencing the right file (the .dll is also on the web server).

The other option is do I need to register my web service with IIS?

Thanks for any help you can offer.

edit: customerrors shows the error on: <authentication mode="Windows"/>, with this message:

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Nitesh
Aug 14th, 2009, 01:14 AM
did you add the website directory in IIS. You need to right click that website in IIS and click "run as application"

Lightning
Aug 14th, 2009, 04:02 AM
Most service providers don't allow the run .net webservices, becuase those machines are usually linux...

Negative0
Aug 14th, 2009, 07:05 AM
Most service providers don't allow the run .net webservices, becuase those machines are usually linux...

I wouldn't say most. Many hosting providers I know offer the option of windows or linux.

As for the original posters problem, can you at least view the ASMX page from your machine? You probably won't be able to test it, because remote testing is probably disabled.

I have seen things where the hosting site supported only 1.1 and 2.0 frameworks, do you know which versions your host supports? Do you have access to look at IIS on the server?

Essential
Aug 14th, 2009, 12:17 PM
I wouldn't say most. Many hosting providers I know offer the option of windows or linux.

As for the original posters problem, can you at least view the ASMX page from your machine? You probably won't be able to test it, because remote testing is probably disabled.

I have seen things where the hosting site supported only 1.1 and 2.0 frameworks, do you know which versions your host supports? Do you have access to look at IIS on the server?

My host is definitely windows, in fact they are windows only (serverintellect.com). They have assured me that I can run web services from my site. They support 1.1, 2.0, and 3.5 frameworks. I do not have access to the IIS server.

Also, I cannot view the page, assuming you mean browse directly to the asmx page url? When I try that I get the same error.

did you add the website directory in IIS. You need to right click that website in IIS and click "run as application"

Ah that sounds like the problem then. I'll have to get the host to do that, or give me access to IIS.

I think I need to get a hold of someone down there and have them hook it into IIS for me. Since I don't have access to IIS there's not much I can do, because it must be registered with IIS correct?

Thanks guys for the help!

si_the_geek
Aug 15th, 2009, 07:48 AM
Thread moved to the 'Application Deployment' forum, which is where questions about installing/distributing your software belong