How to resolve "Unable to start debugging on the web server. The web server is not configured correctly. on iis7 and windows7


I want to make the release of module named "DNNModule1" that I have created on Dotnetnuke module development template using IIS7, Windows-7. But when I click on "Start Debugging" under the debug tab, it shows me an error below:

"Unable to start debugging on the web server. The web server is not configured correctly. See
help for common configuration errors. Running the web page outside of the debugger may provide further information."

So what should I do, Kindly suggest me. Waiting for reply. Thanks


Jerome26 wrote Mar 5, 2014 at 10:08 AM


Ensure before following my followings steps to have your project building in release and debug mode.

In properties, in Web tab, you need to choose Local IIS, set the project URL as:
or without www is possible
check the Override application root URL with the right DNN url.

I just have the same issue and what it works for me is to:
  • Go in menu Tools - Attach to process
  • Check the "Show processes from all users"
  • Attach process w3wp.exe
Best regards,


ransems wrote Jun 24, 2014 at 3:59 PM

This is a great work-around, but is there any chance someone knows the answer to just allow one to click the Debug button?

I assume there are a lot of people who can debug as expected. What would be the difference? Almost every install I do, new laptop, new PC, new server etc. does not allow me to debug. What up?

Troubleshooting help? What to check? Anyone?

ransems wrote Jun 24, 2014 at 4:16 PM

Found another post: changed:

<!-- set debugmode to false for running application -->
<compilation debug="false" strict="false" targetFramework="4.0">
<!-- set debugmode to false for running application -->
<compilation debug="true" strict="false" targetFramework="4.0">
guess what? Can debug as expected.

BrianPT wrote Jul 13, 2014 at 7:25 AM

ransems: Thanks a lot. That worked.

I opened web.config from the C:\sites\DNNDEV.ME directory and modified debug to true.
<compilation debug="true" strict="false" targetFramework="4.0">

Pressed compile in debug mode and voila. That worked. I can now start developing modules. I have run into a series of roadbumps getting to this point. This was the last piece i needed to start developing modules in DNN 7.

Thanks again,


ransems wrote Dec 27, 2014 at 1:13 PM

One more note in case this still does not fix your issue. In your local IIS make sure the DesktopModules and the directory of your application \DesktopModules\MyModuleName is not set as an application. If so right click and remove, you should see the directory but just as a clean regular directory.