You must Sign In to post a response.
  • Category: Webservices

    How to deploy webservice in godaddy server

    HI Everyone,


    How to deploy webservice in godaddy server. I have created webservice that contains hello world method it is working in local machine when i deploy that in online godaddy server it is not working.
    I have referred in web application it created Web References folder that Web Reference folder contains localhost folder and inside that localhost folder contains Reference.cs, Reference.map, Service1.disco, Service1.wsdl. I have uploaded this Web References folder in godaddy online sever it is not working.
    I don't know how to deploy what files i have to upload. Can you specify what files i have to upload in which folder i have to upload in online server.
  • #756806
    From the solution explorer, click publish and get it in a seperate folder. copy the files to godaddy server using ftp.

    you can then create the virtual directory in godaddy server to point to your webservice folder. Once done, Please try to call the service. if you get any error, please post it here

    Please mark this as Answer, if this helps

    Regards,
    Alwyn Duraisingh.M 
    << Database Administrator >>
    Jesus saves! The rest of us better make backups...

  • #756818
    Hi,

    Create and publish your webservice. While publishing change the namespace from tempuri.org to your actual domain path.
    Create a .zip folder of published files and copy and extract to GoDaddy server. In Parallels plesk panel, open WebSite Setting and click on your domain choose Virtual Directories.
    Create a virtual directory with name your require and locate files you have extracted earlier.
    Add Get and Post request on web.config file and your services will be live.
    Here I have created an webservice and published on shared hosting. It is working have a look http://www.johnbhatt.com/services/TestWebService.asmx
    All the Best.

    -------------
    Glad to be,
    John Bhatt
    Editor - DNS Forums
    https://www.pyarb.com

  • #756868
    If you are using visual studio 2005 onward to developing the web service than simply right click of solution and publish it and copy all the required published contents in to the goddady folder and map the vertual directory to that folder .
    Regards & thanks
    Arvind kumar
    Visit--blog.akumars.esoftera.in

  • #767734
    Hi,

    I recently checked the web service provided by John Bhatt (http://www.johnbhatt.com/services/TestWebService.asmx) and it threw the same error as the one i am currently getting. Is this a setting issue in godaddy or some issue with hosting.

    Error Message as follows:
    Server Error in '/' Application.

    Parser Error

    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: Could not create type 'TestWS4.5.TestWS4._5.WebService1'.

    Source Error:


    Line 1: <%@ WebService Language="C#" CodeBehind="~/WebService1.asmx.cs" Class="TestWS4.5.TestWS4._5.WebService1" %>

    Source File: /WS/WebService1.asmx Line: 1

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1069.1

    Thanks
    Rahul

  • #767743
    Hi Rahul,

    I forgot to change setting last time after moving to new host. Now check, the link is working and service is working as desired.

    -------------
    Glad to be,
    John Bhatt
    Editor - DNS Forums
    https://www.pyarb.com

  • #767767
    Web services deployment is the same as deploying the asp.net websites.you just need to use publish ("build->publish") or copy website from visual studio to you godaddy host account.

    OR

    You can also use your ftp account , open your website folder on godaddy and paste your webservice project ther

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #767770
    Thanks John Bhatt. Its working now.

    I was able to resolve my issue as well. The problem was with web.config file created for the virtual directory. This file was missing. I found this when I created an entirely new virtual directory for the web service.

    Cheers!


  • Sign In to post your comments