# Tuesday, August 10, 2010
Next step in my adventures in deploying to IIS 7

This time I try to access my webservice (MyService.svc).

HTTP Error 404.3 - Not Found

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

The IIS handlers window shows no handler for *.svc.

Solution:
Open a command window as administrator
Go to C:\windows\Microsoft.Net\Framework\v3.0\Windows Communication Foundation
Type ServiceModelReg –i

No need to restart, it just works.


UPDATE .Net 4
Open a command window as administrator
Go to %windir%\Microsoft.NET\Framework\v4.0.30319
Type ServiceModelReg –i -c:httpnamespace

posted on Tuesday, August 10, 2010 9:44:57 AM (Romance Daylight Time, UTC+02:00)  #    Comments [0]
When installing a website built on XP/ IIS6 or the built-in Visual Studio Cassini, you put httpHandlers and httpModules in system.web.
On Windows Server 2008/ IIS7, you use system.webServer, with modules and handlers.

If you use the web.config in the standard Ajax-enabled template, this just works.

If not, it doesn't. IIS7 throws an error page.
Description: This application is running in an application pool that uses the Integrated .NET mode. This is the preferred mode for running ASP.NET applications on the current and future version of IIS.

In this mode, the application should not specify ASP.NET module components in the <system.web>/<httpModules> configuration section. Instead, it should use the <system.webServer>/<modules> configuration section to load ASP.NET module components.


The fix is in that Ajax web.config.
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>

It just turns off the validation, allowing system.web/httpModules etc to exist, but ignores them and uses the system.webServer/modules etc version.

Documentation is here.

Yes, this just happened to me. Doh.

posted on Tuesday, August 10, 2010 8:15:08 AM (Romance Daylight Time, UTC+02:00)  #    Comments [0]
# Monday, August 09, 2010
I had a Windows Server 2008 R2 but no IIS. So how to install it? It isn't obvious.

It's in Administrative Tools/ Server Manager / scroll to Roles then Add Roles.
In the roles wizard is a checkbox for Web Server (IIS)
There are various sub options including Common HTTP Features (static content for your images, css), ASP.Net, Security (Windows authentication), Performance (compression), Management Tools (IIS manager)

Here's the details



posted on Monday, August 09, 2010 11:52:17 AM (Romance Daylight Time, UTC+02:00)  #    Comments [0]