Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / WinForms, .Net Framework [игнор отключен] [закрыт для гостей] / Проблема при переходе на VB7 / 2 сообщений из 2, страница 1 из 1
04.11.2003, 12:04
    #32314573
Panov Vitaly
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Проблема при переходе на VB7
Есть небольшая программка которая обращается к access-ой базе через DAO и к SQL Server-у через ADO. Программа изначально была написана на VB6.
Потом ее сконвертировали в VB.Net.
На машине на которой стоит VB.Net новая версия программки работает прекрасно.
Но при установке на другую машину (с установленным .net framework) программа не запускается - вываливается с ошибкой.

Если посмотреть по логам отладчика то не нравится ей объект:
"Friend DAODBEngine_definst As New DAO.DBEngine".
Этот объект при обновлении к 7-ой версии basic-а был создан автоматически, поэтому не понятно в чем дело?

Может кто сталкивался с похожей проблемой?

Ниже приведен лог который выдает отладчик:

Microsoft (R) Common Language Runtime Test Debugger Shell Version 1.0.3705.0
Copyright (C) Microsoft Corporation 1998-2001. All rights reserved.

(cordbg) run ConvertToNamesMDB.exe
Process -391101/0xfffa0843 created.
Warning: couldn't load symbols for c:\windows\microsoft.net\framework\v1.0.3705\mscorlib.dll
[thread 0xfffa064f] Thread created.
Warning: couldn't load symbols for c:\projects\vs_net\converttonamesmdb\bin\adodb.dll
Warning: couldn't load symbols for c:\projects\vs_net\converttonamesmdb\bin\interop.dao.dll
Warning: couldn't load symbols for c:\windows\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll
First chance exception generated: (0x01216f78) <System.Runtime.InteropServices.COMException>
Unhandled exception generated: (0x01216f78) <System.Runtime.InteropServices.COMException>
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message=(0x0121707c) "Exception from HRESULT: 0x80040112."
_innerException=<null>
_helpURL=<null>
_stackTrace=(0x012170d4) array with dims=[12]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0x00000000
_HResult=0x80040112
_source=<null>
_xptrs=0x00000000
_xcode=0xe0434f4d

002: Friend DAODBEngine_definst As New DAO.DBEngine
(cordbg)
177: Public Sub Main()
(cordbg) Warning: couldn't load symbols for c:\windows\assembly\gac\microsoft.visualbasic\7.0.3300.0__b03f5f7f11d50a3a\microsoft.visualbasic.dll
Warning: couldn't load symbols for c:\windows\assembly\gac\system.windows.forms\1.0.3300.0__b77a5c561934e089\system.windows.forms.dll
First chance exception generated: (0x012170ec) <System.TypeInitializationException>
Unhandled exception generated: (0x012170ec) <System.TypeInitializationException>
_typeName=(0x01217130) "ConvertToNamesMDB.UpgradeSupport"
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message=(0x012173bc) "The type initializer for "ConvertToNamesMDB.UpgradeSupport" threw an exception."
_innerException=(0x01216f78) <System.Runtime.InteropServices.COMException>
_helpURL=<null>
_stackTrace=(0x01227708) array with dims=[12]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0x00000000
_HResult=0x80131534
_source=<null>
_xptrs=0x00000000
_xcode=0xe0434f4d

203: DAODBEngine_definst.SystemDB = cWorkgroup
(cordbg) Terminating current process...
Process exited.
...
Рейтинг: 0 / 0
04.11.2003, 12:34
    #32314623
Senin Viktor
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Проблема при переходе на VB7
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
Knowledge Base  

INFO: Microsoft .NET Framework Does Not Support Data Access ObjectPSS ID Number:  311058 

Article Last Modified on  5 / 28 / 2003 


 --------------------------------------------------------------------------------
 
The information in this article applies to:


Microsoft .NET Framework
Microsoft Windows .NET Framework  1 . 1 

 --------------------------------------------------------------------------------
 

This article was previously published under Q311058
SUMMARY
Data Access Object (DAO) libraries, which are mainly built on Component Object 
Model (COM) technology, are not tested with COM Interop in the Microsoft .NET 
Framework. Therefore, Microsoft and Microsoft Product Support Services (PSS) do 
not guarantee the performance of DAO when you use it with the .NET Framework. 

MORE INFORMATION

DAO provides a framework for using code to create and manipulate databases. 
DAO supplies a hierarchical set of objects that use the Microsoft Jet database 
engine to access data and database structure in the following: 

Microsoft Jet databases (.mdb).
Open Database Connectivity (ODBC) data sources by using an ODBC driver.
Installable indexed sequential access method (ISAM) databases that the database 
engine can read directly, such as dBASE, Paradox, and Microsoft Visual FoxPro.

The Microsoft .NET Framework uses Interop to promote interaction with COM 
components, COM+ services, external type libraries, and many operating system 
services. However, DAO is not tested and therefore not supported in the .NET 
Framework with COM Interop.

NOTE: Microsoft recommends that you use Microsoft ActiveX Data Objects (ADO) 
or Microsoft ADO.NET with Microsoft Jet OLE DB Provider to connect to an Access 
database from a Microsoft Visual Studio .NET application. 

REFERENCES
For more information on DAO, refer to the following MSDN documentation: 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dao360/html/dahowdataaccessoverview.asp

For more information on COM Interop, refer to the following MSDN documentation: 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvbdev01/html/vb01i10.asp

For more information on ADO.NET objects and syntax, refer to the following topic 
in the Microsoft .NET Framework Software Development Kit (SDK) documentation: 
Accessing Data with ADO.NET
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconaccessingdatawithadonet.asp

For additional information, click the article number below to view the article in the 
Microsoft Knowledge Base: 
 313590  INFO: Roadmap for ADO.NET 
...
Рейтинг: 0 / 0
Форумы / WinForms, .Net Framework [игнор отключен] [закрыт для гостей] / Проблема при переходе на VB7 / 2 сообщений из 2, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]