Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP Error 404.3 - Not Found" while browsing wcf service on Windows Server 2008(64bit)

Tags:

wcf

I am developing an application based on .Net Framework 3.5 sp1 and hosted on windows server 2008(64bit).

While browsing wcf service (.svc) locally every things is ok but while browsing with full domain URL, it got an error.

local address is like this: http://localhost/MyService.svc

and domain address is like this: http://MySite.ir/MyService.svc

by the way pages (.aspx) and other files work correctly both on localhost and with domain address.

any Idea would be appreciated

Here is detailed error:


HTTP Error 404.3 - Not Found

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map. Detailed Error Information

Module: StaticFileModule

Notification: ExecuteRequestHandler

Handler: StaticFile

Error Code: 0x80070032

Requested URL: http://MySite.ir:80/MyService.svc

Physical Path: D:\inetpub\vhosts\MySite.ir\httpdocs\MyService.svc

Logon Method: Anonymous

Logon User Anonymous

like image 267
Mori Avatar asked Jul 18 '10 06:07

Mori


3 Answers

Please make sure you've activated WCF components from here.

Or alternate and easy way is, go to control panel -> Turn Windows feature on or off -> and make sure you've all the options ticked as mentioned in below screenshot.

enter image description here

You might need to activate each box and accept in case you get errors when activating all features at once

like image 77
Nirav Mehta Avatar answered Oct 11 '22 19:10

Nirav Mehta


OK, here is the answer:

Go to Handler Mappings | Add Handler Manager --> And then add below information

Request Path: *.svc

Type: System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Name: svc-Integrated

like image 27
Mori Avatar answered Oct 11 '22 21:10

Mori


If anyone has this issue on Windows Server 2012, Bill Moon's answer here solved it for me:

"For Windows Server 2012... From the Server Manager, click on Add roles and features, select the appropriate server, then select Features. Under .NET Framework 4.5 Features, you'll see WCF Services, and under that, you'll find HTTP Activation."

like image 11
Will Avatar answered Oct 11 '22 19:10

Will