Monday, May 31, 2010

ASP.net and ATL Server debugging - IIS 7

Cause:
Error while trying to run project: Unable to start debugging on the web server. The server does not support debugging of ASP.NET or ATL Server applications. Run setup to install the Visual Studio .NET server components. If setup has been run, verify that a valid URL has been specified.


You may also want to refer to the ASP.NET and ATL Server debugging topic in the online documentation. Would you like to disable future attempts to debug ASP.NET pages for this project?
Posible reson is to have in-compatile web.config after converting asp.net 3.5 application to asp.net 4.0 application.

Example: having modules and httpModules in the same web.config

<configuration>
  ...
  <system.web>
    ...
    <httpModules>
      <add name="SEOModule"
         type="WebSphere.Ngate.SEOModule.SEOModule, WebSphere.Ngate.SEOModule" />
    </httpModules>
  </system.web>
  <system.webServer>
    <modules>
      <add name="SEOModule" preCondition="managedHandler"
         type="WebSphere.Ngate.SEOModule.SEOModule, WebSphere.Ngate.SEOModule" />
    </modules>
    ...
  </system.webServer>
</configuration>

Removing httpModules section will resolve the problem

<configuration>
  ...
  <system.web>
    ...
  </system.web>
  <system.webServer>
    <modules>
      <add name="SEOModule" preCondition="managedHandler"
         type="WebSphere.Ngate.SEOModule.SEOModule, WebSphere.Ngate.SEOModule" />
    </modules>
    ...
  </system.webServer>
</configuration>

1 comment:

.Net Developer said...

Very attention-grabbing site you have. I come right here typically to see what new articles you could have written.

iPhone Launch Screen Sizes

iPhone Portrait iOS 8 Retina HT 5.5 = 1242 X 2208 Retna HD 4.7 = 750 X 1134 iPhone Landscape iOS 8 Retina HD 5.5  2208 X 1242 iPho...