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

MGOwen

I moved from IIS 6 on windows server 2003.

I can browse to the .svc files. I get a nice standard "This is a Windows© Communication Foundation service" page if I go to http://example.com/Service.svc in a browser.

But I can't browse to any of the methods - I get a 404 error if I go to http://example.com/Service.svc/Method?parameter=xyz in a browser.

Has anyone seen anything like this? Any ideas or suggestions?

I thought I might have a similar problem to this question: WCF on IIS8; *.svc handler mapping doesn't work

But the symptoms are different (looks like they can't see .svc files at all) and none of the solutions work (I have Http Activation for WCF features installed, etc).

MGOwen

OK, I gave up and paid Microsoft $250 for support. With the tech's help, we found the solution, and last night confirmed that it was definitely the solution for all our servers: We disabled SSL altogether for WCF services in the web.config:

<system.serviceModel>
    <bindings>
        <webHttpBinding>
            <binding>
                <security mode="Transport" />

The "Transport" refers to Transport Layer Security (TLS is the new SSL) so HTTPS. Changed that to:

<system.serviceModel>
    <bindings>
        <webHttpBinding>
            <binding>
                <security mode="None" />

Turns out WCF is extremely sensitive to whether you are using HTTP or HTTPS, and if you are using the wrong one you get no helpful errors, just 404.

In my case, both old and new servers were configured to use HTTPS at all times for security. But on the new servers, the SSL (TLS) encryption terminated on the load balancer. In that case encryption only happened between the user's browser and our load balancer, and the traffic between our load balancer and the web servers was unencrypted HTTP.

So the service was listening on HTTPS, and when the request came on HTTP, it just completely ignored it.

(All the other talk about similar issues online focused on uninstalling and reinstalling IIS and ASP.NET and WCF and HTTP Activation and such, so I hope this helps someone. I recommend MS Support if you have a question on the MS stack that SO can't answer in time. It was certainly much cheaper than wasting a few more hours trying to fix it alone).

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 to deploy ASP.Net MVC 5 to IIS 8 Windows Server 2012?

From Dev

When hosting asp.net application on Windows server 2012 using IIS 8 no CSS, Javascript or Jquery works

From Dev

CORS issue IIS 8 Windows Server 2012

From Dev

Publish asp net website on server using IIS

From Dev

IIS 8 in Windows server 2012 R2 to run classic asp and web.config

From Dev

Default GC mode for ASP.NET applications running on IIS 8.5 and Windows Server 2012 R2

From Dev

CSS & JS files not rendered when deploy of ASP.Net MVC application on IIS 8 (Windows 8)

From Dev

Not able to install IIRF on Windows Server 2012 / IIS8

From Dev

IIS 8 error on windows server 2012 insufficient permission

From Dev

IIS 8 error on windows server 2012 insufficient permission

From Dev

Not able to install IIRF on Windows Server 2012 / IIS8

From Dev

Deploy asp.net mvc website to iis 8

From Dev

Windows Server 2012 IIS8 Performance over Server 2003 IIS6, Sporadic slowness with WebService

From Dev

Windows Server 2012 IIS8 Performance over Server 2003 IIS6, Sporadic slowness with WebService

From Dev

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

From Dev

.svc handler for IIS Server

From Dev

Windows Server 2012 R2 Local Policy Editor is missing System Services?

From Dev

Deploying a ASP.NET MVC 5 Application in Windows Server 2012

From Dev

Where is IIS on Windows Server 2012 Essentials

From Dev

Problems publishing asp vnext website on IIS 8

From Dev

How to "Deploy" asp.net MVC 4 to Microsoft Server 2012 IIS7

From Dev

Is it possible to cancel AJAX request sent to a Windows server 2012 / IIS8

From Dev

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

From Dev

Web Services on IIS7 Server for Website on Apache Server

From Dev

Bypass Proxy Server, ASP Website on IIS

From Dev

permissions in IIS for asp.net local website

From Dev

ASP.NET MVC Website: Object Moved to Here

From Dev

.NET Globalization Settings - Double values are comma on Windows Server 2012's IIS

From Dev

Exchange Web Services, ASP.NET with Windows Auth, IIS 8.5 and Impersonation

Related Related

  1. 1

    How to deploy ASP.Net MVC 5 to IIS 8 Windows Server 2012?

  2. 2

    When hosting asp.net application on Windows server 2012 using IIS 8 no CSS, Javascript or Jquery works

  3. 3

    CORS issue IIS 8 Windows Server 2012

  4. 4

    Publish asp net website on server using IIS

  5. 5

    IIS 8 in Windows server 2012 R2 to run classic asp and web.config

  6. 6

    Default GC mode for ASP.NET applications running on IIS 8.5 and Windows Server 2012 R2

  7. 7

    CSS & JS files not rendered when deploy of ASP.Net MVC application on IIS 8 (Windows 8)

  8. 8

    Not able to install IIRF on Windows Server 2012 / IIS8

  9. 9

    IIS 8 error on windows server 2012 insufficient permission

  10. 10

    IIS 8 error on windows server 2012 insufficient permission

  11. 11

    Not able to install IIRF on Windows Server 2012 / IIS8

  12. 12

    Deploy asp.net mvc website to iis 8

  13. 13

    Windows Server 2012 IIS8 Performance over Server 2003 IIS6, Sporadic slowness with WebService

  14. 14

    Windows Server 2012 IIS8 Performance over Server 2003 IIS6, Sporadic slowness with WebService

  15. 15

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

  16. 16

    .svc handler for IIS Server

  17. 17

    Windows Server 2012 R2 Local Policy Editor is missing System Services?

  18. 18

    Deploying a ASP.NET MVC 5 Application in Windows Server 2012

  19. 19

    Where is IIS on Windows Server 2012 Essentials

  20. 20

    Problems publishing asp vnext website on IIS 8

  21. 21

    How to "Deploy" asp.net MVC 4 to Microsoft Server 2012 IIS7

  22. 22

    Is it possible to cancel AJAX request sent to a Windows server 2012 / IIS8

  23. 23

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

  24. 24

    Web Services on IIS7 Server for Website on Apache Server

  25. 25

    Bypass Proxy Server, ASP Website on IIS

  26. 26

    permissions in IIS for asp.net local website

  27. 27

    ASP.NET MVC Website: Object Moved to Here

  28. 28

    .NET Globalization Settings - Double values are comma on Windows Server 2012's IIS

  29. 29

    Exchange Web Services, ASP.NET with Windows Auth, IIS 8.5 and Impersonation

HotTag

Archive