There is no build provider registered for the extension '.svc'.

When trying to access a WCF .scv file you get the following error:

There is no build provider registered for the extension '.svc'. You can register one in the <compilation><buildProviders> section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.

You will need to modify your web.config like this:

clip_image004

Here is the text to copy and paste:

<buildProviders>
  
<remove extension=".svc" />
  
<add extension=".svc" type="System.ServiceModel.Activation.ServiceBuildProvider,System.ServiceModel, Version=3.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089" />
  
</buildProviders>

Add Feedback