.NET Forum / Visual Studio.NET / Setup / November 2004
Help
|
|
Thread rating:  |
Russell Brandl - 12 Oct 2004 04:31 GMT Hello, I get this error when I try to bring an application written in VB 4 into VS 6??
Could not find Data Access Library. Cannot Create reference.
Visual Basic tried to create a reference to the Microsoft DAO Object Library through the Data control, but failed. Verify that all system registry keys are valid and, if they are not, run Visual Basic setup again.
---------------------------------------------------------------------------- ---- Send feedback to MSDN.Look here for MSDN Online resources.
Thanks Russ
Wendy Dong - 12 Oct 2004 10:00 GMT Hi Russ,
Thank you for your post.
Based on my experience, the error message is very likely to occur if the file "DAO350.dll" and "DAO360.dll" are not registered properly.
Please use the command "regsvr32" to register the file to see whether this helps. Should you have any concerns, please feel free to post here.
Regards,
Wendy Dong Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights.
Russell Brandl - 12 Oct 2004 13:37 GMT Hello Wendy, My system could not find the files to register them. I think I need VB6 SP 3? Could not find it on Microsofts site? Thanks Russ
> Hi Russ, > [quoted text clipped - 12 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "as is" with no warranties and confers no rights. Wendy Dong - 13 Oct 2004 04:01 GMT Hi Russ,
Thank you for your response.
As far as I know, by default, the file "DAO350.dll" or "dao360.dll" should be in the folder "C:\Program Files\Common Files\Microsoft Shared\DAO". You may navigate to this path to check whether they exist.
From your description, I understand that you would like to install Visual Studio 6 Service Pack 3. I suggest that you install the latest Service Pack 6 for Visual Studio 6.0. You may download it from the following link.
Service Pack 6 http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp6/default.aspx
Should you have any questions, please feel free to let me know.
Regards,
Wendy Dong Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights.
Russell Brandl - 13 Oct 2004 13:01 GMT Wendy, The files are there but will not register??? Below is the Path Statment:
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\COM MON~ 1\SONICS~1\;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Progr am Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft V isual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin
Thanks Russ
> Hi Russ, > [quoted text clipped - 9 lines] > > Service Pack 6 http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp6/default.aspx
> Should you have any questions, please feel free to let me know. > [quoted text clipped - 4 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "as is" with no warranties and confers no rights. Wendy Dong - 14 Oct 2004 10:51 GMT Hi Russ,
Thank you for your update. However, I do not quite understand your meaning.
I doubt whether you mean you can find "DAO350.dll" and "dao360.dll" under the path:
C:\WINDOWS\system32; C:\WINDOWS; C:\WINDOWS\System32\Wbem; C:\PROGRA~1\COMMON~1\SONICS~1\; C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT; C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin; C:\Program Files\Microsoft Visual Studio\Common\Tools; C:\Program Files\Microsoft Visual Studio\VC98\bin
I also installed Service Pack 6 for Visual Studio 6 on my test machine. I am not able to find so many files.
Currently, I would like to provide some steps to register the file. I hope it will be helpful.
1. Click "Start" => Click "Run" => Type "cmd" in the open blank. 2. In the command Prompt, please type the command: (For example)
regsvr32 "C:\Program Files\Microsoft Visual Studio\Common\Tools"
Note 1: Please do type the command instead of copying and pasting it, since the quotation marks are mangled by the email formatting. They are now invalid for commands. Note 2: Please don't omit the quotation marks in this command. Note 3: Please don't forget the blank after the number 2
3. You should see the dialog box showing "DllRegisterServer in C:\Program Files\Microsoft Visual Studio\Common\Tools"
I hope this is helpful. Thank you!
Regards,
Wendy Dong Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights.
Russell Brandl - 15 Oct 2004 17:59 GMT Wendy, I got the two dao files registered but it still is not happy wants DAO 2.5 Object Library???? See Below: Visual Basic Reference
The project file 'item1' contains invalid 'item2' key value. Valid range is 0 to 'item3' The key value specified in the .VBP file was out of range. This error has the following cause and solution:
a.. The .VBP file contains a key value that is not in the specified range. The file may be corrupt. Install a backup copy of the specified file or modify the file using a text editor to correct the error.
Warning Modifying a Visual Basic file in an editor other than Visual Basic may corrupt the file. This is only recommended for advanced users.
--------------------------------------------------------------------------------
Send feedback to MSDN. Look here for MSDN Online resources.
Visual Basic Reference
Could not find Data Access Library. Cannot Create reference. Visual Basic tried to create a reference to the Microsoft DAO Object Library through the Data control, but failed. Verify that all system registry keys are valid and, if they are not, run Visual Basic setup again.
--------------------------------------------------------------------------------
Send feedback to MSDN.Look here for MSDN Online resources.
object library A file with the .olb extension that provides information to Automation controllers (like Visual Basic) about available objects. You can use the Object Browser to examine the contents of an object library to get information about the objects provided.
--------------------------------------------------------------------------------
Send feedback to MSDN.Look here for MSDN Online resources.
> Hi Russ, > [quoted text clipped - 42 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "as is" with no warranties and confers no rights. "Peter Huang" - 20 Oct 2004 06:26 GMT Hi Russell,
I think you may try to create a new vb6 project and then copy and paste the code from vb4 project to vb6 project to see if that works for you. If this still did not work for you I think there may be something wrong with your machine environment.
You may try to add reference to the Microsoft DAO 2.5/3.5 Compatibiliry Library, which is an tlb file. You may try to use the regtlib.exe to register the Dao2535.tlb which is located in the path below. C:\Program Files\Common Files\Microsoft Shared\DAO\Dao2535.tlb
http://groups.google.com/groups?hl=zh-CN&lr=&c2coff=1&selm=004401c31db3%2411 094ec0%24a001280a%40phx.gbl
Hope this helps.
Best regards,
Peter Huang Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Russell Brandl - 20 Oct 2004 11:14 GMT Peter
I think it is that I only have the exe file and not the original vbp file that has been my problem. It is a 217k file that was left by a DOD worker that I was hoping to save for the Navy. I wish there was a way to get this done. Thanks Russ
> Hi Russell, > [quoted text clipped - 8 lines] > located in the path below. > C:\Program Files\Common Files\Microsoft Shared\DAO\Dao2535.tlb http://groups.google.com/groups?hl=zh-CN&lr=&c2coff=1&selm=004401c31db3%2411
> 094ec0%24a001280a%40phx.gbl > [quoted text clipped - 7 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "AS IS" with no warranties, and confers no rights. "Peter Huang" - 21 Oct 2004 06:32 GMT Hi,
Do you mean you have a project.exe file which is built in vb4.0 and now you want to run it under vb6.0?
To further troubleshooting the problem, I think you may try to usethe regmon and filemon tool to monitor the file and registrykey access status when we run the project.exe to see if there is any notfound or access denied information.
You may get the two tools under the link below.
http://www.sysinternals.com/ntw2k/source/filemon.shtml
http://www.sysinternals.com/ntw2k/source/regmon.shtml
Best regards,
Peter Huang Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Russell Brandl - 22 Oct 2004 03:21 GMT Peter, I would like to convert the VB4.0 to VB6.0 It is about a 217k exe file thar access a mdb database... Thanks Russ
> Hi, > [quoted text clipped - 19 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "AS IS" with no warranties, and confers no rights. "Peter Huang" - 22 Oct 2004 10:36 GMT Hi Russell,
I have some confusion with your scenario. Now I have to confirm you with some information.
1. Do you have the VB4.0 Project file or you just have the compiled EXE file?
2. If you just have the exe file, I think we can not open it with VB6.0 ide and then recompiled it into exe file.
3. Now your problem is that when you run the compiled exe file, you get the error that some dll can not be found, am I right?
4. If so, I think you may to use the regmon and filemon tool to see if there is any registry or file permission missing as I suggest you in the last reply?
If I have any misunderstanding, please feel free to post here.
Best regards,
Peter Huang Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Russell Brandl - 23 Oct 2004 01:53 GMT Peter,
You are right! I just have the exe file and it opens a dao data base in Access 2.0 as the place to store the records. I was hoping to save the source after a decompile and recompile as a VB 6 Application. It ran in Win 98 Access 97 machines but time has moved on and it needs work. Do I also need to convert it to Access ADO file type?
Thanks Russ
> Hi Russell, > [quoted text clipped - 26 lines] > This posting is provided "AS IS" with no warranties, and confers no > rights. "Peter Huang" - 25 Oct 2004 02:28 GMT Hi Russell,
Once we have compiled a VB application into binary mode(EXE file), we can not convert it back into VB source file(.frm, .vbp and so on) We can only convert it into assembly language which is more related with low level and computer related. That is different from the advaced language such as VB.
That is why every software will care its source code, because with source code every one can change and compile a new build for sale. Because it is almost impossible to redeisgn a software based on it binary format(exe format).
I think you may have to contact the original software development engineer or company to see if they have any available source code for the software.
Best regards,
Peter Huang Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Russell Brandl - 25 Oct 2004 10:10 GMT Peter, I have tried to contact the original programer no luck. I need to register DAO 2.5 in VB 6 how is that done? Thanks Russ
> Hi Russell, > [quoted text clipped - 18 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "AS IS" with no warranties, and confers no rights. Russell Brandl - 25 Oct 2004 10:29 GMT Peter, It says: and I answer Yes The project file QATS.vbw contains invalid key 'Module1', continue loading project? Yes The project file QATS.vbw contains invalid key 'frmAbout', continue loading project? Yes The project file QATS.vbw contains invalid key 'frmMain', continue loading project? Yes The project file QATS.vbw contains invalid key 'frmSecurity', continue loading project? Yes The project file QATS.vbw contains invalid key 'frmSelect', continue loading project? Yes The project file QATS.vbw contains invalid key 'frmMonitor', continue loading project? Yes The project file QATS.vbw contains invalid key 'Monitor', continue loading project? Yes The project file QATS.vbw contains invalid key 'frmFiles', continue loading project? Yes It then tells me this project was developed in a previous version of VB, If the code in this project declares variables of data access objects, such as Database or Dynaset, the project must now reference to the Microsoft DAO 2.5 Object Library. Choose Add to add this library reference now. I then choose Add and it says Could not find Data Access Library. Cannot Create reference????? How do I add this Data Access Library so it can be found?
> Hi Russell, > [quoted text clipped - 18 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "AS IS" with no warranties, and confers no rights. "Peter Huang" - 26 Oct 2004 08:52 GMT Hi Russell,
As I said in my former post, VB6 support DAO2.5 by using the Dao2535.tlb
You may try to add reference to the Microsoft DAO 2.5/3.5 Compatibiliry Library, which is an tlb file. You may try to use the regtlib.exe to register the Dao2535.tlb which is located in the path below. C:\Program Files\Common Files\Microsoft Shared\DAO\Dao2535.tlb
Also it is strange that the project.exe file will popup the message as you said. Are you sure that exe file is the compiled VB4 executive file? Can you send me the file for me to have a reproduce test?
Best regards,
Peter Huang Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Russell Brandl - 26 Oct 2004 11:35 GMT Peter, Windows can not find regtlib.exe??? Yes I can send you the file?/ Thanks Russ
> Hi Russell, > [quoted text clipped - 18 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "AS IS" with no warranties, and confers no rights. Russell Brandl - 26 Oct 2004 11:49 GMT Peter I get this error now from the cmd line.. LoadTypeLib of dao2535.tlb failed : 00029c4a
Thanks Russ
> Hi Russell, > [quoted text clipped - 18 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "AS IS" with no warranties, and confers no rights. "Peter Huang" - 27 Oct 2004 05:01 GMT Hi
Commonly we can find the tool in the path below if we have ever installed vs6 sp2....
c:\WINDOWS\REGTLIB.EXE
Visual Studio 6.0 SP2 30,720 3/24/1998 vs6sp2_3.cab Visual Studio 6.0 SP3 30,720 1/28/1999 Visual Studio 6.0 SP4 30,720 6/1/1999 Visual Studio 6.0 SP5 30,720 7/15/2000
Also are you running the tool under the administrator account which has the enough permission to do the job. You may send mail to me by removing the "Online" from my email address.
Best regards,
Peter Huang Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Russell Brandl - 27 Oct 2004 13:54 GMT Peter, I sent the exe file and then thougt maybe mail blockers may cut it out? I will be off line till Nov 2 Thanks Russ
> Hi > [quoted text clipped - 19 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "AS IS" with no warranties, and confers no rights. "Peter Huang" - 28 Oct 2004 07:41 GMT Hi Russell,
Since the attachment has been removed by our mail server, can you resend it?
Best regards,
Peter Huang Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Russell Brandl - 05 Nov 2004 13:19 GMT Peter, Did you get the zip file ok?? Thanks Russ
> Hi Russell, > [quoted text clipped - 8 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "AS IS" with no warranties, and confers no rights. "Peter Huang" - 08 Nov 2004 02:00 GMT Hi Russel,
I am sorry for delay responding.
The project can not run on my machine, and I get a different error. Run-time error '336':
Object server not correctly registered
Without source code it is hard to guess what had happened.
Which is different from what you provide before.
How do you deploy you vb4 project to vb6? As I said before without source code we can not just deploy a vb4 exe to the vb6 ide and compile.
In vb, if we need to deploy an application we need a setup project. for simple project, maybe we can do it by just copy the exe file, but for complex one we do need the setup project, because just copy will not work without some additional operation by setup project.
So far the only approach is to call your software develop vendor, or you had to run the project on the original machine which will work.
Thanks for you understanding!
Best regards,
Peter Huang Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Russell Brandl - 08 Nov 2004 13:54 GMT Peter, Do you know Kevin he was helping me aalso in a different news group? see below: Some Win2000 Pro machines do this to me also, runs on WinXPro.
Kevin, DAO 25 and it happens when I try to Load the project.A series of key associations problems happen first then the error. Thanks Russ
> Hi Russ, > [quoted text clipped - 9 lines] > "This posting is provided "AS IS" with no warranties, and confers no > rights."
> Hi Russel, > [quoted text clipped - 30 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "AS IS" with no warranties, and confers no rights. "Peter Huang" - 09 Nov 2004 06:40 GMT Hi Russell,
Yes, I know that Kevin had ever given some suggestion to you. And that is why he redirect you to this thread.
As I said before, how do you deploy the project onto another machine? Do you have the deployment setup program?
Do you mean some windows 2000 and windows xp machine will OK to run the program? Then what is the different between the two machines(some windows 2000 will work. and some will not)? Are you using the same setup project to deploy the program?
Best regards,
Peter Huang Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Russell Brandl - 11 Nov 2004 11:01 GMT Peter, I just copy the files to a folder named Qats. At work it runs from a Win 2000 server. Right now I have two machine's at home running Win XP it runs on one but not the other? One has VB 4 and the broken one runs VS 6??? I suspect the problem lies in the drivers for access but not sure at this time? This is why I need to update the source to VS 6 to end the madness..... If I pull the TFS MDB file into access 2000 I have to run a module to convert the MDB file to access 20 in order for the VB 4 Qats program to use the MDB file.... in the other newsgroup Matt said there was a decompiler for VB4 but the site is down??? Sorry this is so much of a deal. Thanks Russ
> Hi Russell, > [quoted text clipped - 17 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "AS IS" with no warranties, and confers no rights. "Peter Huang" - 12 Nov 2004 01:57 GMT Hi
Thank you for you input. From vb4-vb5-vb6, some controls has been changed and introduced new feature. Since we have no the source code it is hard to guess what control has caused the problem.
Also we have official vb decompiler to do the decompilek, so far I think you have to run the application on windows 2000 or as I said it is important to contact your software development team for the original source code so that we can try to recompile it in vb6, or if your software development do not want to provide source code, you may try to ask them for a version for vb6.
Thanks.
Best regards,
Peter Huang Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Russell Brandl - 12 Nov 2004 16:06 GMT Peter, I have taken on this project for my office. The person who wrote the software is gone?? If there is an official VB decompiler as you state how do I get this call Mr. Gates? Do you have a contact at Microsoft, that I can call on this problem, so that I can get this resolved? You have been a great help but I am a one man team on this now. So I guess I may have to recommend to the Navy to just drop this application? Thanks Russ
> Hi > [quoted text clipped - 19 lines] > Get Secure! - www.microsoft.com/security > This posting is provided "AS IS" with no warranties, and confers no rights. "Peter Huang" - 15 Nov 2004 08:02 GMT Hi Russell,
Since the vb4 is a very old product, it may have some incompatibillity with the current newly control/library/OS. And we have no source code, it is hard to convert it into the vb6 version.
Also I think you may try to contact MSPSS, but I am afraid that may not give your further suggestion. Anyway you may have a try and you can reach MSPSS via the link below. http://support.microsoft.com
So far I think the alternative approach is to run the application on the original machine or you can build a virual machine image to run the application.
Hope this helps.
Best regards,
Peter Huang Microsoft Online Partner Support
 Signature Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.
Yan-Hong Huang[MSFT] - 16 Nov 2004 01:56 GMT Hi Russ,
I also reviewed the whole issue thread.
First of all, I don't think there is any official VB decomplier.
Second, since you have no source code and we can't contact the original programmer now, we are lack of enough information to fix this problem on a newer OS and VB 6.0. As Peter suggested, the best way should be build a VPC Win9X image and run your application on that. In this way, you can still work on a newer OS and run this appplication.
You can also contact Microsoft PSS (Product Support Service) by contacting us at 1-(800)936-5800 or by choosing one of the options listed at http://support.microsoft.com/default.aspx?scid=sz;en-us;top.
Thanks very much.
Best regards, Yanhong Huang Microsoft Community Support
Get Secure! ¨C www.microsoft.com/security Register to Access MSDN Managed Newsgroups! -http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as p&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.
Russell Brandl - 18 Nov 2004 12:38 GMT Hello Yes, I will just have to write the application from start to finish. Thanks all for your help... I do like the Virtual machine idea but DOD will not like it... Later Russ
> Hi Russ, > [quoted text clipped - 24 lines] > > This posting is provided "AS IS" with no warranties, and confers no rights. Yan-Hong Huang[MSFT] - 19 Nov 2004 03:21 GMT Hi Russ,
It is our pleasure to be of assistance. If you met any problem when writing this application, please feel free to post here and we are here to support you at your convenience. :)
Thanks very much for participating the community.
Best regards, Yanhong Huang Microsoft Community Support
Get Secure! ¨C www.microsoft.com/security Register to Access MSDN Managed Newsgroups! -http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as p&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.
Free MagazinesGet these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...
|
|
|