First publish

Discussion in 'Getting started' started by dcowan0, Jul 5, 2012.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I opened my account today, read the forum post about deployment and used VS2008 Build/Publish to put my service to my home location. Next using control panel/Web Application Tool I was surprised to see that none of the files I just uploaded were listed? I then logged in using the FileZilla FTP client and with it I saw all my files: under top level directory there is index.html (your file), my service .asmx file, and Web.config. In the bin subdirectory are two DLLs that are required. Its a very simple service!

    Next I tried to access my service using an HTTP URL that ended with the name of my service's asmx file, slash, and the name of my service as shown in the browser when one runs the service locally with the debugger. My test client got the message "(500) Internal Server Error".

    Is there a way to determine what the problem really is?
    Do I have the files in the proper place?
    Do I need to set any permissions?

    Thanks,

    Dick
     
  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    Hi Dick,

    The "(500) Internal Server Error" is pretty generic. You might want to try the following steps to reveal the "true" error:

    1) Log into your site using IIS7 Manager by following the instructions in this Knowledge Base article:

    http://support.discountasp.net/KB/a400/how-to-connect-to-windows-2008iis-7-using-microsoft.aspx

    2) Double click on the Error Pages module to open it.
    3) On the right hand side, click on Edit Feature Settings...
    4) Check Detailed errors and click on OK.
     
  3. Thanks for the help.
    However I did all the things you suggested and the Error Pages display simply appears to be showing what each of the error messages would default to as they all say they are inherited. Are you implying that I need to create my own handler for this error? Hope not.

    The service I'm trying to deploy runs fine in the MS Studio development environment and my application has no trouble posting data to it and getting a response.

    How do I see errors generated by trying to access this same service on my just created account?

    Thanks,

    Dick
     
  4. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    Hi Dick,

    Are you getting any error besides the "(500) Internal Server Error"?
     
  5. No - just that one.
    How do I tell if the data being posted is even hitting my site as maybe its going to the wrong place on the discountasp.net site?

    Perhaps we can continue this dialog via email and I can share the URL being used in the post? Email: [email protected]

    Dick
     
  6. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    You can go ahead and send me a PM (Private Message) with a URL, and I'll take a quick look.
     
  7. Re: First Publish - Resolved

    As this was my first experience with IIS I didn't realize that by default HTTP post is disabled by default. If you want the details see:
    http://support.microsoft.com/kb/819267

    So all I needed to do was add the following to my Web.config file and the service worked instantly. I'm posting a Json request message and returning a Json response message - no usage of SOAP or XML.

    <webServices>
    <protocols>
    <add name="HttpPost"/>
    </protocols>
    </webServices>

    Regards,

    Dick
     
  8. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    Hi Dick,

    I'm glad you were able to find a solution. Thanks for following up. I'm sure this will help others.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page