browser keeps downloading .svc files WCF

1k views Asked by At

Been doing this for hours now and it drives me nuts.

On windows 7 I installed IIS 7.5 through add windows features, also installed WCF HTTP activation, also did all the command line registrations.

In VS 2013 I have a WCF Services project that runes very fine when I run it in IIS express but I want to test it together with my front-end.

But when I browse to my .svc file in the browser it just keeps getting downloaded, been searching google but get wrong results all the time, hopefully! Someone can help me.

Greets

2

There are 2 answers

0
Anujith On

If your WCF Service is in .Net Framework 4.0/4.5, then check the .Net Framework version in Application Pool.

If it is 2.xxxxxx, change it to 4.xxxxx.

enter image description here

0
Arun On

In IIS Handler Mapping check if the request type is defined as (*.svc)