What am I doing wrong?

Feb 3, 2009 at 6:18 AM
I can't get the service to display the WSDL.  Here is the error I get.

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://127.0.0.1/Sample/WsdlSample.svc?wsdl'. Lin...

<%@ ServiceHost Language="C#" Debug="true" Service="Sample.WsdlSample" CodeBehind="WsdlSample.svc.cs" %> -^







Mar 4, 2009 at 10:48 PM
For those that may encounter this problem, here is the solution I found on the net.

It's probably you got problem with script map. You can solve it by creating script map for .svc manually. I also experienced the script mapping tools and installer cannot be fixed this problem sometimes. Here the steps I did.

 

1) Make sure you install .NET 2.0 and 3.0 properly.

2) Open IIS manager

3) Open your web directory properties windows.

4) Make sure ASP.NET version 2 is chosen in ASP.NET tab.

5) Make sure your script mapping for .svc is using aspnet_isapi.dll from .net 2.0 folder (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll), you could even remove and add again for .svc extension, for all verbs.