Hello everyone,
I met with issues when browse for WSDL information for a web service. When I am using F5 in Visual Studio to browse http://localhost:21530/Service1.asmx, everything is fine (e.g. web service textual description is shown)
But when I pubish the web services to my local IIS 6.0 server and browse from IE http://localhost/Service1.asmx, here are the error message and my simple web services source code.
Does anyone have any ideas why?
[Code] [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] public class Service1 : System.Web.Services.WebService {
[WebMethod] public double HelloWorld() { return new Random().NextDouble(); } }
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/Service1.asmx'. Line 1, Position...
<%@ WebService Language="C#" CodeBehind="Service1.asmx.cs" Class="TestWebServicePerformancev1.Service1" %>-^[/Code]
thanks in advance,George