Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS Express Error http 404.17 – not found running a WCF service

I just created a WCF Service Application in VS2013 with framework 3.5. for exposing some methods I have in a class library project.

Everything went fine but when I tried to see if the service runs, it doesn't. Instead I got the next error.

HTTP Error 404.17 - Not Found The requested content appears to be script and will not be served by the static file handler.

Most likely causes: The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.

Things you can try: If you want to serve this content as a static file, add an explicit MIME map.

I have dealt with it on IIS, but now in IIS Expres I'm kinda lost.

I don't have IIS installed on this machine since I'm using a remote one, but I need to debug some things and I'm stuck. Thanks for any help.

I also did run servicesmodelreg -i with visual command prompt, but error persists.

UPDATE

It may be usefull to clarfy it only happens in IIS Express so it is impacting development. I have VS2013 updated to the latest patch running on Win 8.1 64bit

like image 773
Ricker Silva Avatar asked Mar 05 '14 15:03

Ricker Silva


People also ask

How do I fix HTTP Error 404.17 not found?

To resolve this issue, configure the Application Pool hosting the application to meet all of the pre-conditions set for the Handler. Expand the computer name and click Application Pools in the left pane.

How do I browse an SVC file in IIS?

Solution: Open IIS Manager (Start > Run > search "inetmgr"). Browse from the top level server to Sites and expand the Default Web Site. Select each of the Revit Server applications, and in the Content View, right click on the SVC file and select Browse.


1 Answers

Seems WCF mapping are not registered with IIS.

To solve the above error:

  • Navigate to "

    %SYSTEMROOT%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation

" at the Visual Studio command prompt.

  • Execute "servicemodelreg -i" to install the mappings manually.

For more details refer :ServiceModel Registration Tool (ServiceModelReg.exe) on MSDN.

-

Alternatively,

enable HTTP Activation for WCF services in Windows features.

  1. Click the Start button, and then click Control Panel.
  2. Click Programs, and then click Programs and Features.
  3. On the Tasks menu, click Turn Windows features on or off.
  4. Select the WCF Non-Http Activation Components box and save the setting.

enter image description here

Source :

http://msdn.microsoft.com/en-us/library/ms732012(v=vs.110).aspx

like image 65
Pranav Singh Avatar answered Nov 15 '22 23:11

Pranav Singh