2014年7月1日 星期二

執行階段錯誤'713

http://www.debugease.com/vb/3273832.html

具体:
我做好一程序后,存盘打包,在本机安装可以运行,然后去没能VB的其它电脑上
安装,安装没问题,但运行时却出现色下情况:
执行阶段错误"713"
物件类别没有注册
寻找具有下列CLSID的物件 {000000010-0000-0010-8000-00AA006D2EA4}  就这样,请问我该如何解决???
解决方案 »
用是不是用了第三方组件(就是不是VB自带的组件)?如果是的话,要将第三方组件复制过去,再注册,或在VB打包程序中打包时打进去,因为VB打包程序只会将自带的组件打包

时会打进去,还有什么ACCESS、EXCEL文件等都必须手动打包打进去,我试过都没问题,还有就是注意权限问题,关于数据库要可读写才行。

这是VB的一个BUG(安装SP5也没用),原因是打包时VB没能够将一个必要的动态链接库(Data Report的运行时间文件(Msdbrptr.dll))打包进去,解决方法如下:  1、打开你的工

程,包括对Msdbrptr.dll文件的引用。在引用对话框中,这个文件被列为Microsoft Data Report Designer v6.0。你可能看到Microsoft Data Report Designer v6.0被列出多次

。确保这个应用相关联的文件是Msdbrptr.dll。一旦确定引用了这个文件,重新运行向导制作安装包。 2、在使用Package and Deployment Wizard (PDW)制作安装盘时手工加入

Msdbrptr.dll。当运行PDW时,在Included Files对话框中添加这个文件并重新建立安装包。


http://support.microsoft.com/kb/248055/zh-tw

若要解決這個問題,請使用下列方法之一:
開啟您的專案,並包含 Msdbrptr.dll 檔案的參考。這個檔案會列為 [參考] 對話方塊中的Microsoft 資料報表設計師 6.0 。您可能會看到一次以上列出的Microsoft 資料報表設

計師 6.0 。請確定與參考相關聯的檔案是 Msdbrptr.dll。一旦經過驗證的參考,請重建您的安裝套件。

-或者-
以手動方式將 Msdbrptr.dll 檔案納入 「 封裝暨部署精靈 」 (PDW)。您可以手動加入該檔案中包含的檔案對話方塊的視窗執行 PDW 時再重新建立安裝套件。
在安裝之後,下列檔案應該存在於指定的資料夾中的目標系統上:
< windows 系統 > \Msdbrptr.dll
< 程式檔案 > \Common Files\Designers\Msderun.dll
< windows 系統 > \Msstdfmt.dll
Msdbrptr.dll (和其相依的檔案) 包含通常用來更正這個問題。如果您仍然遇到問題,請確定下列檔案會包含在套件中:
Msdatrep.ocx
Msbind.dll
資料報表不直接依賴這些檔案。不過,如果檔案遺失,這可能會影響您的報表由資料環境。

附註: 如果您的應用程式必須具有 Msdatsrc.tlb 檔案,不要明確包含這個檔案因為 Msdatsrc.tlb 安裝 Microsoft 資料存取元件 (MDAC) 升級的一部份。


http://tlcheng.twbbs.org/myinfobox/zdisqvb6p2/post014972.htm

執行階段錯誤'713':
物件類別沒有註冊。
尋找具有下列CLSID物件:{00000010-0000-0010-8000-00AA006D2EA4}
-
請問出現這樣是我封裝時出了什麼錯誤嗎??

使用到的物件要一併封裝進去!!!
你遺漏的物件是: DAO.DBEngine

原始網頁:http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q209805&ID=KB;EN-US;Q209805&

CAUSE

ISAM drivers are used by Access to update file formats other than its own. If the path to the ISAM driver in your Windows Registry is not valid, or if the ISAM driver does not exist, you may receive the following error messages:

Could not find installable ISAM
-or-
The wizard is unable to access information in the file ''. Please check that the file exists and that the file is in the correct format. 

RESOLUTION

To correct the problem, you can try to register the file manually or you must correct path name errors in the Windows Registry, and then install or replace the problem file.

In the case of the first error message, the file name is directly related to the attempted operation.

In the case of the second error message, the file name is mentioned in the text of the message.

1.Locate the relevant file in the following table:File Name Import/Export ISAM for: Windows Registry
Msexcl40.dll Microsoft Excel HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Excel
Msexch40.dll Microsoft Exchange HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Exchange
Msrd2x40.dll Microsoft Jet 2.x HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Jet 2.x
Msrd3x40.dll Microsoft Jet 3.x HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Jet 3.x
Msltus40.dll Lotus 1-2-3 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Lotus
Mspbde40.dll Imprise Paradox HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Paradox
Mstext40.dll Text HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Text
Msxbde40.dll dBase HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Xbase

2.Use Microsoft Windows Explorer to search for the file.

3.If the file is found, record the path name for the file. If the file is not found, go to step 13.
4.Open the Windows Registry Editor.

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

5.Move to the registry subkey that is described in the table, and then check the path name against the actual path name. If the registry key does not exist, go to step 8.

6.Correct the path name if it is incorrect. Continue with these steps if it is correct.

7.Close Registry Editor. If you changed the path name, repeat the process that produced the original error.

8.If the error persists, try to manually register the file by using the Regsvr32.exe utility. Regsvr32.exe is an application that is used to register dynamic-link libraries (DLLs) and ActiveX controls in the Windows registry. You can use this file to stop the issue of mismatched .dll files. To start to re-register your .dll files by using Regsvr32.exe go to the next step.

9.Verify that the Regsvr32.exe file is in the system folder where Windows is installed, for example:
C:\Windows\System
-or-
C:\Winnt\System32

10.Click Start, and then click Run.

11.In the Run dialog box, type the following command in the Open list.

NOTE: The path to Regsvr32.exe and the name and the path of the DLL may be different on your computer. The following example command registers the Excel ISAM:

Regsvr32 c:\winnt\system32\msexcl40.dllNOTE: Another method of registering DLLs is to use Windows Explorer to find the DLL. Double-click the DLL. In the Open With dialog box click to select Regsvr32.exe and then click OK. This creates a permanent association of all DLLs with Regsvr32.exe. You can easily register other unregistered DLLs by double-clicking them.

For additional information about how to obtain this file, click the article number below to view the article in the Microsoft Knowledge Base:
267279 ACC2000: Regsv32a.exe Available in Download Center

12.If the error persists, or if the path name was correct in step 5, rename the file.

13.Start the Add/Remove Programs tool, start the Office 2000 Setup program, and then click to select the Repair Office option.

沒有留言: