WCF Service – A name was started with an invalid character. Error processing resource


Error Details:

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://SENWIN2008/WCF/Service/’

<%@ ServiceHost Language="C#" Debug="true" Service="Service Name" CodeBehind="Service.svc.cs" %>

Resolution

  1. Check whether the IIS site is configured for .NET 2.0, in the ASP.NET tab of the properties, in some cases the ASP.NET will be 1.1 reference.
  2. If the above is not solved, may be the order of installation of .NET is wrong. Always need to install IIS and then .NET 3.5. If thats the case run the ServiceModelReg.exe from the framework folder this should solve the issue.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s