tags:

views:

29

answers:

2

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

A: 

Try to register your service model on server.

See this link, it may help you

Imran

IBhadelia
Service model has registered already because as I mentioned service works fine locally.
Morteza
A: 

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

Morteza