browse WSDL error RRS feed

  • Question

  • 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?

        [WebService(Namespace = "http://tempuri.org/")]
        [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
        public class Service1 : System.Web.Services.WebService

            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" %>

    thanks in advance,

    Monday, February 2, 2009 12:24 PM


  • George, it looks like ASP.NET is either not installed or not configured on the server. IIS is just serving the .ASMX file as a text file.
    John Saunders | Use File->New Project to create Web Service Projects
    Wednesday, February 4, 2009 1:45 PM