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

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

When viewing the wcf service (.svc) locally, all things are in order, but when viewing with the full domain URL, it received an error.

the local address is as follows: http: //localhost/MyService.svc

and domain address: http://MySite.ir/MyService.svc

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

any idea would be appreciated

Here is the detailed error:




HTTP Error 404.3 - Not Found

The requested page could not be completed due to the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME card. Error Details

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

Login Method: Anonymous

Login User Anonymous

+45
wcf
Jul 18 '10 at 6:07
source share
6 answers

OK, here is the answer:

Go to handler mappings | Add handler manager → 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

+22
Jul 19 '10 at 11:34
source

Please make sure you activate WCF components from here .

Or an alternative and simple way - go to the control panel → Enable or disable the Windows function → and make sure that you have all the options checked as shown in the picture below.

enter image description here

+126
Aug 12 '14 at 11:13
source

If anyone has this problem on Windows Server 2012, Bill Moon answers here , solved this for me:

“For Windows Server 2012 ... In the Server Manager, select“ Add Roles and Features, ”select the appropriate server and select“ Features. ”In the“ .NET Framework 4.5 Features ”section, you will see WCF services and you will find HTTP activation."

+7
May 23 '14 at 17:25
source

If you are using .Net 4.x, PublicKeyToken is set to 31bf3856ad364e35.

However, after this message about installing WCF services properly in IIS, a handler was configured for me.

0
Nov 22 '13 at 10:00
source

I wanted to add this as a comment on the answer, but did not have a sufficient reputation for it. I tried running ServiceModelReg and aspnet_regiis.exe with various flags and added an HTTP activation function, but it still didn't work. Even using the handler mapping user interface in IIS did not help, as I could not find System.ServiceModel.Activation.HttpHandler. She ended up working on adding a Mori handler manually to my web.config file.

<system.webServer> <handlers> <add name="svc-Integrated" path="*.svc" verb="GET,HEAD,POST,DEBUG" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" /> 

My project ran .Net 3.5 and IIS 7.5 for Windows 7 and IIS 7.0 on Win Server 2008 R2.

0
Mar 12 '15 at 15:48
source

Try disabling WCF HTTP activation from the "Enable or Disable Windows" window ( see here ) and reinstall by selecting

 %windir%\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\ 

and execute ServiceModelReg -i

0
Dec 23 '15 at 6:54
source



All Articles