viernes 26 de septiembre de 2008

"HTTP Error 404 - File or Directory not found" hacienda deploy de servicios WCF

Gente,

Haciendo deploy de unos servicios, me apareció un error 404 y en función de ello me puse a investigar que podía estar pasando.

Comparto aquí la solución que si bien es muy simple y no muy novedosa, es un pequeño detalle que esta bueno tener en cuenta como punto de partida si nos enfrentamos al mismo error en un escenario similar:

El error aparece descripto aquí:

http://support.microsoft.com/kb/315122/en-us

SYMPTOMS

When you request dynamic content such as an Active Server Pages (ASP) page, an ASP.NET page, an Internet Services API (ISAPI) application, or a Common Gateway Interface (CGI) application on a Microsoft Windows Server 2003 server that is running Internet Information Services (IIS) 6.0, you may receive one of the following error messages:

Error message 1

HTTP Error 404 - File Not Found

Error message 2

HTTP Error 404- File or Directory not found

Back to the top

CAUSE

By default, when IIS is installed on any version of the Windows Server 2003 family, IIS only serves static content (HTML).


 

RESOLUTION


Enable a Pre-existing Web Service Extension in IIS 6.0

To permit IIS to serve content that requires a specific ISAPI or CGI extension that is already listed in the Web service extensions list, follow these steps:

1.

Open IIS Manager, expand the master server node (that is, the Servername node), and then select the Web service extensions node.

2.

In the right pane of IIS Manager, right-click the extension that you want to enable. In this example, this is ASP.NET v2.0.50727.

3.

Click to select the Allow check box.


 

Ejemplo: