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

Problem in deploying my WebService developed using Asp.net WebServ

P: n/a
Hi All,

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

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

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service ()
{
}
[WebMethod]
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 http://121.232.34.21:1295/WebSite3/Service.asmx 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
IIS.
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
saying
--------------------------
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.

Regards.
Mani
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.