Windows 7 如何解决;无法在web服务器上启动调试";

Windows 7 如何解决;无法在web服务器上启动调试";,windows-7,iis-7,module,dotnetnuke,Windows 7,Iis 7,Module,Dotnetnuke,我正在Dotnetnuke项目模板上创建一个模块,我想发布该模块。但当我从dropdownlist中选择“release”后,点击debug按钮。我在iis7和windows7上发现一个错误 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 ou

我正在Dotnetnuke项目模板上创建一个模块,我想发布该模块。但当我从dropdownlist中选择“release”后,点击debug按钮。我在iis7和windows7上发现一个错误

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.

我不明白它为什么会出现。

如果您试图调试,您不应该从下拉列表中选择RELEASE,这将以RELEASE模式而不是DEBUG模式构建模块

您还应该检查是否已在DNN开发站点的web.config中启用调试

更新:
如果要打包模块,请在从下拉列表中选择“发布”后,在visual studio中选择“生成而不是调试”选项。

另一个注意事项是确保将web.config编译节点设置为DEBUG=“true”。如果您将此设置配置为一个单独的文件,这一点尤其重要。

我想发布该模块,那么我应该怎么做。