By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,820 Members | 1,157 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,820 IT Pros & Developers. It's quick & easy.

Problem in deploying my WebService developed using WebServ

P: n/a
Hi All,

Problem in deploying my WebService developed using WebServices 2005.
I have designed simple WebService using Webservices 2.0 , The
webservice look this ,

using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

[WebService(Namespace = "")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
public Service ()
public string HelloWorld() {
return "Hello World";

After building my webservice , when I execute this webservice project the
webservice is displayed in this URL
http://localhost:1295/WebSite3/Service.asmx. But i want to use this
webservice across the network , so when I use ip address instead of localhost
such as this throws me an
error page.

I feel that I need to deploy this webservice in the IIS so that this can be
used across the network through the IP address.
As IIS was installed in my machine I decided to deploy my webservice in the
So for deploying I clicked on the “publish web-site” option available in the
webservice project. This option helps to creates the Virtual Directory in the
IIS and places all the requried files (service.asmx, dlls etc).
But the problem here is I am not able to access the webservice from the IIS
as when I try to launch an web-service from IIS it displays me the error page
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later.
A name was started with an invalid character. Error processing resource
'http://localhost/PleaseWork/Service.asmx'. Line 1...
<%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs"
Class="Service" %>

Can any one help me regarding this.

Mar 13 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.