WCF in Windows 8 and IIS 8 - SVC file gets downloaded

Batuta

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?

Tech Jay

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:

WCF .svc file getting downloaded, when hosted in IIS

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I host a WCF service without an SVC file in IIS

From Dev

OneDrive Downloaded *.jpeg Image File Corrupt in Windows Phone 8

From Dev

IIS 8 and Windows Authentication

From Dev

Moved my ASP.NET website to IIS 8 on windows server 2012... services missing: .svc files are viewable, but their methods give a 404

From Dev

Windows Phone 8 WCF Synchronous

From Dev

WCF and EntityFramework error in IIS 8 The server encountered an error processing the request

From Dev

Windows 8 Store App and WCF service

From Dev

Windows 8 and file association

From Dev

.Net Core and Windows Authentication in IIS 8 Failing

From Dev

CORS issue IIS 8 Windows Server 2012

From Dev

WCF logging producing multiple svc file

From Dev

WCF dependency injection without SVC file

From Dev

Windows 8 phone app linking to other downloaded applications and store

From Dev

iis8 detailed error logging to file

From Dev

blank iis8 localhost page on windows 8 laptop

From Dev

Basic NLog file target not working under IIS 8 and Windows Server 2012

From Dev

Delete unfinished downloaded file if download gets cancelled

From Dev

Editing hosts file on Windows 8

From Dev

Windows 8 safe file copy?

From Dev

Remove file associations on Windows 8

From Dev

Encrypt Windows 8 file history

From Dev

Windows Phone 8, IAudioCaptureClient GetBuffer gets zero data in buffer returned

From Dev

Consuming a WCF service in Windows Phone 8: Async methods?

From Dev

Consuming a WCF service in Windows Phone 8: Async methods?

From Dev

WCF Service times out from windows 8 unit test project

From Dev

Make WCF REST service public when hsoted on virtual machine's IIS8

From Dev

How to register .Net 4.5.1 with IIS8 on windows 10

From Dev

Not able to install IIRF on Windows Server 2012 / IIS8

From Dev

IIS 8 error on windows server 2012 insufficient permission

Related Related

  1. 1

    How can I host a WCF service without an SVC file in IIS

  2. 2

    OneDrive Downloaded *.jpeg Image File Corrupt in Windows Phone 8

  3. 3

    IIS 8 and Windows Authentication

  4. 4

    Moved my ASP.NET website to IIS 8 on windows server 2012... services missing: .svc files are viewable, but their methods give a 404

  5. 5

    Windows Phone 8 WCF Synchronous

  6. 6

    WCF and EntityFramework error in IIS 8 The server encountered an error processing the request

  7. 7

    Windows 8 Store App and WCF service

  8. 8

    Windows 8 and file association

  9. 9

    .Net Core and Windows Authentication in IIS 8 Failing

  10. 10

    CORS issue IIS 8 Windows Server 2012

  11. 11

    WCF logging producing multiple svc file

  12. 12

    WCF dependency injection without SVC file

  13. 13

    Windows 8 phone app linking to other downloaded applications and store

  14. 14

    iis8 detailed error logging to file

  15. 15

    blank iis8 localhost page on windows 8 laptop

  16. 16

    Basic NLog file target not working under IIS 8 and Windows Server 2012

  17. 17

    Delete unfinished downloaded file if download gets cancelled

  18. 18

    Editing hosts file on Windows 8

  19. 19

    Windows 8 safe file copy?

  20. 20

    Remove file associations on Windows 8

  21. 21

    Encrypt Windows 8 file history

  22. 22

    Windows Phone 8, IAudioCaptureClient GetBuffer gets zero data in buffer returned

  23. 23

    Consuming a WCF service in Windows Phone 8: Async methods?

  24. 24

    Consuming a WCF service in Windows Phone 8: Async methods?

  25. 25

    WCF Service times out from windows 8 unit test project

  26. 26

    Make WCF REST service public when hsoted on virtual machine's IIS8

  27. 27

    How to register .Net 4.5.1 with IIS8 on windows 10

  28. 28

    Not able to install IIRF on Windows Server 2012 / IIS8

  29. 29

    IIS 8 error on windows server 2012 insufficient permission

HotTag

Archive