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
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.
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.
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.
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.
Source :
http://msdn.microsoft.com/en-us/library/ms732012(v=vs.110).aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With