This project is read-only.

Error when deploying on production server win 2003 iis6 - could not load type...

Topics: ASP.NET 2.0
Jun 28, 2009 at 6:45 AM



I have created virtual directory in IIS 6 called Blog under my primary production site and keep getting the error:

Parser Error Message: Could not load type 'Microsoft.Web.Services.BridgeModule'. (web.config line 128)

Source Error:

Line 126:			<add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpHandlers>
Line 127:		<httpModules>
Line 128:			<add name="BridgeModule" type="Microsoft.Web.Services.BridgeModule"/>
Line 129:			<add name="WebResourceCompression" type="Microsoft.Web.Services.WebResourceCompressionModule"/>
Line 130:		</httpModules>


Deploying version 1.5 final, converted to .net 3.5 in VS 2008. I have tried with .net 2.0 and got the same error.

What is weird is that it works with no problem when I create virtual directory under Default Web Site in IIS on the same Win 2003 server.


Please help.





Jun 28, 2009 at 8:29 AM

That line adding BridgeModule is either in your web.config file, or in the web.config file of the parent application.

If it's in your web.config file, then just remove that line.  If it's in the parent application's web.config file, then you'll want to remove the instruction to load that module in your application.  For this case, in your web.config file (not in the parent application's web.config file), add the line below in the <httpModules> section:

    <remove name="BridgeModule"/>
    .... existing modules ....

Jun 28, 2009 at 9:26 AM

Thanks, it worked.