昨天做项目的时候突然遇到下面的错误:
---------------------------
Microsoft 开发环境
---------------------------
试图运行项目时发生错误。
---------------------------
确定
---------------------------
我就在网上搜索一下。然后解决方法如下:
打开“开始”-》“所有程序”-》“Microsoft Visual Studio .NET 2003”-》“Visual Studio .NET 工具”-》“Visual Studio .NET 2003 命令提示”
然后在这个dos窗口输入“aspnet_regiis -u”,卸载结束之后再敲入“aspnet_regiis -i”安装一下。
最后重启iis。
可是再调试的时候又出现下面的错误:
---------------------------
Microsoft 开发环境
---------------------------
试图运行项目时出错: 无法在 Web 服务器上启动调试。未能启动 ASP.NET 或 ATL Server 调试。
验证服务器上是否正确安装了<script type="text/javascript">google_ad_client = "pub-2048279401139630";google_ad_slot = "8856771542";google_ad_width = 728;google_ad_height = 90;document.write("<s"+"cript type='text/javascript' s"+"rc='http://pagead2.googlesyndication.com/pagead/show_ads"+"."+"js'></scr"+"ipt>");</script>"");
想想百思不得其解,最后在一个同事的帮助下,终于知道解决方法了。
解决方法如下:
打开IIS,然后点击左边的“Web 服务扩展”,然后把右边“ASP.NET v1.1 .4322”设置为“允许”。
最后打开IIS的你调试的网站属性,在弹出的对话框里,选择&ld<script type="text/javascript">google_ad_client = "pub-2048279401139630";google_ad_slot = "8856771542";google_ad_width = 728;google_ad_height = 90;document.write("<s"+"cript type='text/javascript' s"+"rc='http://pagead2.googlesyndication.com/pagead/show_ads"+"."+"js'></scr"+"ipt>");</script>oogle_ad_client = "pub-2048279401139630";google_ad_slot = "8856771542";google_ad_width = 728;google_ad_height = 90;document.write("");