RE: Using ADODB in a Windows Form

From: genojoe (genojoe_at_discussions.microsoft.com)
Date: 06/21/04


Date: Mon, 21 Jun 2004 05:37:01 -0700

Problem is solved. I needed to copy the ADODB.DLL to the laptop and place it in the same folder as the exe. I guess I thought that the .DLL would have been part of the installation of Framework 1.1 on the laptop. It is not.

"genojoe" wrote:

> I am trying to use ADO in a Windows form. It works as expected from the development computer running from Visual Studio. When I copy the exe to another computer, I get an error. Can someone either confirm this behavior or give me a way to solve problem. I posted this question before but got an answer that did not solve problem. Below are the exact steps that I performed from start of project to receipt of error.
>
> (1) Open new Windows Application project in VS 1.1 on a development computer with XP Professional; (2) Add reference for C:\Program Files\Microsoft.NET\Primary Interop Assemblies\ADODB.dll; (3) Add line of code: Dim adoConn As New ADODB.Connection in the Declarations section of Form1.vb; (4) Compile in Release configuration; (4) Copy only file in bin folder (..\bin\winapp1.exe) from development computer to a laptop that contains Framework 1.1 and XP Home edition only; (5) launch the .exe on laptop. At this point I get "Application has generated...." error.
>
> If I remark out the line of code in step #3 and repeat steps 4, 5, and 6, the form opens as expected on the laptop. Laptop is very new. Only preparation for executing .NET code was to download Framework 1.1. No other prep was performed on it.
>



Relevant Pages

  • Re: C-Drive stem folders with duplicate website info???
    ... and my laptop running Windows XP with IE 7. ... there would be fewer problems when I moved my .pub file for my website ... publisher webpage, and how to make it work? ... I then loaded the index_files into a folder, ...
    (microsoft.public.publisher.webdesign)
  • Re: How do I find Outlook Express
    ... Then copy all the DBX files from the the main computer to that Mail folder on the Desktop, and once that's done, right click the DBX files and clear the Read-Only attribute on the Properties. ... Then open Outlook Express on the laptop, click File/Import/Messages, selecting OE6 and From a Store Folder and point it to the Mail folder on the laptop's Desktop. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Home network:can access files on desktop to laptop, but not vi
    ... the following folders are not acessible by other PC's over a network for security reasons: ... ..pst files between my laptop and desktop. ... this folder private" check box and ultimately messed everything up. ... I can access the .pst file for my desktop ...
    (microsoft.public.windowsxp.network_web)
  • Re: Windows XP crash
    ... much rather just copying the Document and Setting folder to the USB ... Second, if I get one of these boot CDs, and can get to the DOS ... a Windows password on the machine but no boot password. ... I hurriedly turned off my laptop manually because I ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Mei Chan [MSFT]
    ... The laptop or the desktop or both? ... I started with the Documents folder (This is the Shared ... cannot be edited, renamed, or deleted UNTIL I reboot. ... rename, edit, delete from EITHER the laptop OR the Desktop. ...
    (microsoft.public.windowsxp.network_web)