Results 1 to 6 of 6

Thread: How to deploy a web service?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    101

    How to deploy a web service?

    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.
    Last edited by Essential; Aug 13th, 2009 at 11:55 PM.

  2. #2
    PowerPoster Nitesh's Avatar
    Join Date
    Mar 2007
    Location
    Death Valley
    Posts
    2,556

    Re: How to deploy a web service?

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

  3. #3
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: How to deploy a web service?

    Most service providers don't allow the run .net webservices, becuase those machines are usually linux...
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  4. #4
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: How to deploy a web service?

    Quote Originally Posted by Lightning View Post
    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?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    101

    Re: How to deploy a web service?

    Quote Originally Posted by Negative0 View Post
    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.

    Quote Originally Posted by Nitesh View Post
    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!
    Last edited by Essential; Aug 14th, 2009 at 12:21 PM.

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: How to deploy a web service?

    Thread moved to the 'Application Deployment' forum, which is where questions about installing/distributing your software belong

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width