I am trying to run a simple WCF service application on a Windows 8 machine with IIS 8.
When I try to view the svc file in the browser, the SVC file only gets downloaded.
I have checked the MIME type for *.svc in IIS and there's an entry for it:
.svc
application/octet-stream
I also checked the Handler Mappings in IIS and there's an entry for svc-integrated as follows:
svc-Integrated
*.svc
Enabled
System.ServiceModel.Activation.HttpHandler
I've also tried some stuff as suggested from these other sites:
.NET WCF SVC file downloaded instead of being executed
but cannot get around this.
Appreciate any other areas which I should be looking at. Really stumped with this.
Note: The reason I am asking this is because I can see that the application I have is able to call the service and it is getting a 200 response, but there seems to be no data being served. So I thought of checking the .svc from the browser and instead I am getting the file automatically downloaded.
UPDATE: For some reason, the svc file only gets downloaded when using Chrome. When using IE, the svc works properly. So perhaps this is not an IIS problem, but rather some browser settings in Chrome?
I know this is quite old post to be answered. But i recently faced the same issue and could not find a solution to it. So checked the settings in Turn on-off Windows features. Enabled some WCF settings and was able to get it working. Here is the detailed link of the settings:
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments