跪求高手,MSDAINITIALIZE
检索 COM 类工厂中 CLSID 为 {2206CDB2-19C1-11D1-89E0-00C04FD7A829} 的组件时失败,原因是出现以下错误: 8007007e。说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.IO.FileNotFoundException: 检索 COM 类工厂中 CLSID 为 {2206CDB2-19C1-11D1-89E0-00C04FD7A829} 的组件时失败,原因是出现以下错误: 8007007e。
源错误:
行 30: str3 = "select top 10 qa_question,qa_answer,qa_username,Format([qa_date],'yyyy年mm月dd日') from Q_A where qa_check=true order by qa_date desc";
行 31: OleDbConnection conn = new OleDbConnection(str);
行 32: conn.Open();
行 33:
行 34: OleDbDataAdapter da;
源文件: e:\WEB 2008\JWC\Default.aspx.cs 行: 32
堆栈跟踪:
[FileNotFoundException: 检索 COM 类工厂中 CLSID 为 {2206CDB2-19C1-11D1-89E0-00C04FD7A829} 的组件时失败,原因是出现以下错误: 8007007e。]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +86
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +230
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +14
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1051
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +111
System.Data.OleDb.OleDbConnectionInternal.CreateInstanceDataLinks() +96
System.Data.OleDb.OleDbConnectionInternal.GetObjectPool() +99
[InvalidOperationException: .Net Framework 数据提供程序要求 Microsoft Data Access Components(MDAC)。请安装 Microsoft Data Access Components(MDAC) 2.6 或更高版本。]
System.Data.OleDb.OleDbConnectionInternal.GetObjectPool() +136
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +58
System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +86
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +29
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +4866464
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
System.Data.OleDb.OleDbConnection.Open() +40
_Default.getData() in e:\WEB 2008\JWC\Default.aspx.cs:32
_Default.Page_Load(Object sender, EventArgs e) in e:\WEB 2008\JWC\Default.aspx.cs:19
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
我查询了CLSID为MSDAINITIALIZE,请教高手解决办法。谢谢@ --------------------编程问答-------------------- 类库没有注册吧。 --------------------编程问答-------------------- 请教zanfeng,注册哪个类库? --------------------编程问答-------------------- 高手来指教啊 --------------------编程问答-------------------- 看看连接字符串
tring ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\myDB.mdb;Persist Security Info=True";
通过组件服务调整权限
还有系统所在盘,与写的注册文件bat里调用的dll路径指向的盘是否一致 --------------------编程问答-------------------- 昨天安装了vfp之后才出现的问题。 --------------------编程问答-------------------- 邦顶 ~~~ --------------------编程问答-------------------- 安装VFP之后导致MDAC版本过低
下载最新版试试
http://www.microsoft.com/downloads/details.aspx?familyid=78CAC895-EFC2-4F8E-A9E0-3A1AFBD5922E&displaylang=zh-cn --------------------编程问答-------------------- 学习了...... --------------------编程问答-------------------- 帮顶。。 --------------------编程问答-------------------- TO herojams:
MDAC无法安装。 --------------------编程问答-------------------- --------------------编程问答-------------------- up..
补充:.NET技术 , ASP.NET