views:

86

answers:

0

I recently moved a few intranet ASP.NET web sites from Windows Server 2003 to Windows Server 2008. I soon learned that the system.web/httpHandlers web.config section was replaced with system.webServer/handlers and that there is a separate API for IIS7.

When I try to use the IIS7 Microsoft.Web.Administration API I get the following error:

Unable to load DLL 'nativerd.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Here's the line where it throws the exception:

WebConfigurationManager.GetSection(@"system.webServer/handlers");

I've tried referencing nativerd.dll and registering it, but it doesn't help. What am I doing wrong?