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.Serv ices;
using System.Web.Serv ices.Protocols;
[WebService(Name space = "http://tempuri.org/")]
[WebServiceBindi ng(ConformsTo = WsiProfiles.Bas icProfile1_1)]
public class Service : System.Web.Serv ices.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