Problems running Windows Communication Foundation (.svc) on an upgraded Windows 7 and IIS 7

The installation to upgrade from Vista to Windows 7 does not fix or upgrades IIS 7. So IIS 7 wasn’t fix to run Silverlight xap files of Windows Services.

When trying to run a Windows Service with SVC extension on a Windows 7 machine that was upgraded from Vista, IIS 7 won’t be changed to register the .xap file for silverlight or windows services extensions, you’ll have to do that manually in IIS 7.

Registering the Silverlight XAP extension.

Go to your IIS Manager and open the Mime Types

image

For File extension enter: .xap

For Mime type enter: application/x-silverlight-app

image

 

Register the Windows Service on IIS7

Do not register the .svc extension like xap, you need to register in a different way, open a console application running as Administrator, navigate to:

C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation>

Run ServiceModelReg –i

 

Finally restart IIS with a normal Iisreset or using the IIS manager.

Hope this helps

Cheers

Al

Follow me in twitter | bookmark me | Subscribe to my feed | Add stats to your blog

Published Tuesday, October 20, 2009 8:16 PM by albertpascual
Filed under: ,

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required)