解决System.Runtime.Interopservices.COMException问题
来源:互联网 发布:js图片旋转,收缩 编辑:程序博客网 时间:2024/05/18 21:06
以前用的是Windows XP的操作系统,创建了一个ASP.NET项目,运行的好好的。这段时间换了Windows Server 2008操作系统,再用VS打开该项目时,发现项目无法打开,并出现了以下错误提示:System.Runtime.Interopservices.COMException。
查阅一些资料后,发现是由于IIS服务器的问题造成的,Windows XP系统是IIS6.0,而Windows Server 2008用的是IIS7.0,而项目不能兼容这两种IIS,当时,计算机没有安装IIS6配置兼容性组件(IIS 6 metabase and IIS 6 Configuration Compatiblity ASP.NET) ,所以不能打开项目。
目前有两种解决方法:
方法1:用记事本打开Web项目的的项目文件,将如下配置节点<UseIIS>True</UseIIS> 修改为<UseIIS>False</UseIIS> ,这样就可以让VS 内置WebServer来打开项目,而不是IIS打开项目。这种情况下,IIS不会自动为项目创建虚拟目录。
方法2:在Windows Server 2008操作系统的“服务器管理器”中安装【IIS6配置兼容性组件(IIS 6 metabase and IIS 6 Configuration Compatiblity ASP.NET)】。
0 0
- 解决System.Runtime.Interopservices.COMException问题
- 解决System.Runtime.Interopservices.COMException问题
- “System.Runtime.InteropServices.COMException”解决之道
- System.Runtime.InteropServices.COMException解决办法
- System.Runtime.InteropServices.COMException (0x80010105): 服务器出现意外情况 问题的解决
- 关于system.runtime.interopservices.comexception(0x800A1066)的问题
- System.Runtime.InteropServices.COMException 6/2
- Visual Studio 2008 System.Runtime.InteropServices.COMException
- 错误:system.runtime.interopservices.comexception (0x80040154)
- System.Runtime.InteropServices.COMException (0x80028018):
- System.Runtime.InteropServices.COMException (0x800A03EC)
- win7+VS2008 System.Runtime.InteropServices.COMException
- 关于System.Runtime.InteropServices.COMException (0x80070006): 句柄无效的问题
- 水晶报表"System.Runtime.InteropServices.COMException 拒绝访问" 解决办法
- VS 2008 打开 WebApplication 报 System.Runtime.InteropServices.COMException 错误
- Visual Studio 2008项目System.Runtime.InteropServices.COMException解决方法
- VS 2008 打开 WebApplication 报 System.Runtime.InteropServices.COMException 错误
- VS 2008 打开 WebApplication 报 System.Runtime.InteropServices.COMException 错误
- 关于cocos2d中的坐标系
- 最大和
- 筛法求素数
- cocos2dx 3.x 模态对话框实现中易出现问题解决方法
- uva 11572 - Unique Snowflakes(与书上方法略有不同)
- 解决System.Runtime.Interopservices.COMException问题
- 标准IO库缓冲区buffer
- chrome浏览器使用技巧
- mystrtok, strspn, strcspn
- Uva 573 The Snail
- 纯文本抽出程序库DMC TEXT FILTER
- <!DOCTYPE html>很重要
- log4cpp-c++日志库
- c编译原理