Click here to Skip to main content
14,423,173 members
Rate this:
Please Sign up or sign in to vote.
See more:
Good afternoon,
I'm working on an application and it has a c# web service attached with it, it works fine on my development machine (i.e I can view and access the web methods on the service) but I don't know how to go about deploying it to my web hosting space in order for it to work.

I've tried using IIS manager on my system but it can't connect with the server. I also tried copying some of the files(i.e the .asmx, web.config and .asmx.cs files) from the application to the server using file manager, but it throws error messages when i try accessing the .asmx file from a web browser. I'd really appreciate any advice from you that would make the application to work. Thank you.
Ron Beyer 16-Jul-13 10:31am
Please improve your question with who you are using as a hosting provider and what type of package you have. Not all hosting is created equal and some don't allow it, or you may have the wrong type of hosting (linux based).
Member 10822998 22-Mar-17 7:19am
how to set a fplder in iis hosting
Mfoniso Asuquo 16-Jul-13 10:55am
Its a windows based hosting provider, running windows server 2008 and the package i have supports IIS. confirm at
Mfoniso Asuquo 16-Jul-13 16:37pm
here is the error message that is displayed whenever i try to access the .asmx file through a web browser.

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 'myWebService.Service1'.

Source Error:

Line 1: <%@ WebService Language="C#" CodeBehind="Service1.asmx.cs" Class="myWebService.Service1" %>

Source File: /service1.asmx Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.4971; ASP.NET Version:2.0.50727.4971

I'm still stuck with this, pls i need ur help.
Rate this:
Please Sign up or sign in to vote.

Solution 1

you can host your webservice on IIS.
make sure that you have permission to access the files from IIS and that you are using the correct Application Pool.
also ensure that your IIS is setup correctly

here are some links on how to host web services[^][^]
Rate this:
Please Sign up or sign in to vote.

Solution 2

The above problem has been solved. thanks everyone for your contributions.
Pavan Kumar 20-Aug-14 8:43am
hi i am also getting trouble to host the web service into online.
i am new to web services guide me to use my service from windows app through online
thanks in advance.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100