Monday 10 January 2011

IIS7: WCF Services - .SVC do not work

I came across a problem with Windows Communication Foundation Services and IIS 7.
I deployed a .SVC file to my IIS 7.
The service worked during development on the local ASP.NET Dev Web server, but after deploying it to the server, there was an error:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
The configuration section 'system.serviceModel' cannot be read because it is missing a section declaration.
After some research on Google someone suggested me to Install and register .NET3.0 with IIS7.
Execute the following command
"%WINDIR%\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -i

http://blogs.msdn.com/b/knom/archive/2009/10/14/iis7-wcf-services-svc-do-not-work.aspx

No comments:

Post a Comment