tags:

views:

86

answers:

1

I have deployed the WCF wervice on the IIS by creating a VirtualDirectory.

While accessing from firefox it is generating the following message:

XML Parsing Error: not well-formed
Location: http://localhost/Calculator/Service.svc
Line Number 9, Column 2:<%@ Service Class="Calculator.CalculatorService" %>
-^

What is wrong?

+2  A: 

Looks like the WCF extensions aren't registered with IIS correctly and IIS is serving the raw .svc file instead of executing your service.

Make sure your Virtual Directory has ASP.NET v2.0 enabled, and then use ServiceModelReg.exe to register the WCF extensions on it.

tomasr