473,466 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to Distribute Interop.ADOX.dll?

I am including a reference to ADOX in a C# project by doing the
following:

In Solution Explorer, right-click the References node and select Add
Reference.
On the COM tab, select Microsoft ADO Ext. 2.7 for DDL and Security,
click Select to add it to the Selected Components, and then click OK.

This creates a dll in my debug and release directory named
Interop.ADOX.dll.

However if the executable is placed in a different path it requires
this dll.

If I copy the Interop.ADOX.dll to the same path where the executable
resides all is fine.

The question is what must be done during an installation?
Can the file Interop.ADOX.dll just be copied to a directory or is there
some type of registration that must take place?

Thanks in advance for any help,
Scott

Nov 17 '05 #1
3 9428
>The question is what must be done during an installation?
Can the file Interop.ADOX.dll just be copied to a directory or is there
some type of registration that must take place?


No registration needed, just copy it to the app directory.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 17 '05 #2
No need to register your interop you need to just copy it

"Sc*******@hotmail.com" wrote:
I am including a reference to ADOX in a C# project by doing the
following:

In Solution Explorer, right-click the References node and select Add
Reference.
On the COM tab, select Microsoft ADO Ext. 2.7 for DDL and Security,
click Select to add it to the Selected Components, and then click OK.

This creates a dll in my debug and release directory named
Interop.ADOX.dll.

However if the executable is placed in a different path it requires
this dll.

If I copy the Interop.ADOX.dll to the same path where the executable
resides all is fine.

The question is what must be done during an installation?
Can the file Interop.ADOX.dll just be copied to a directory or is there
some type of registration that must take place?

Thanks in advance for any help,
Scott

Nov 17 '05 #3
The Interop DLL is only the .NET wrapper around the COM object itself, so
you'll also have to make sure the COM object is on the target computer and
registered properly in order for the interop DLL to work properly...

<Sc*******@hotmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
I am including a reference to ADOX in a C# project by doing the
following:

In Solution Explorer, right-click the References node and select Add
Reference.
On the COM tab, select Microsoft ADO Ext. 2.7 for DDL and Security,
click Select to add it to the Selected Components, and then click OK.

This creates a dll in my debug and release directory named
Interop.ADOX.dll.

However if the executable is placed in a different path it requires
this dll.

If I copy the Interop.ADOX.dll to the same path where the executable
resides all is fine.

The question is what must be done during an installation?
Can the file Interop.ADOX.dll just be copied to a directory or is there
some type of registration that must take place?

Thanks in advance for any help,
Scott

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: KemperR | last post by:
Hello Experts outhere, may be someone can tell me whats going wrong with my ADOX trial. I have an Access 2002 database with some tables and queries (views) The code listed below works well up...
1
by: Wiktor Zychla | last post by:
is it legal to distribute axshdocvw, shdocvw and mshtml.dll with my application? is it legal to distribute Microsoft.mshtml.dll from 'Primary Interop Assemblies' folder (I assume it comes with...
2
by: Laszlo Szijarto | last post by:
I am using third-party controls for image display. It's the COM version of LeadTools. Depending on what I need, it may create various interop .dlls. These Interop .dlls, however don't seem to...
2
by: Randy | last post by:
I am trying to relink some Oracle tables in an Access database via VB.NET and ADOX. I receive the following error when executing the cat.ActiveConnection link "Arguments are of the wrong type,...
5
by: Wayne Wengert | last post by:
I am getting an error that "object no longer valid" at the point indicated in the code below - I am trying to build a table in an Access 2000 database using ADOX. Any thoughts on what might cause...
3
by: gaffar | last post by:
Sir, Using ADOX I am developing an application in vb.net and the backend database is ms-access. i have created ms-access databse and tables and assigned primary keys to the tables through the...
1
by: Hexman | last post by:
I'm creating a new Access table using ADOX. I can add columns and indexes, but I'm baffled on how to change field properties. Can someone give me a hand? Want to change properties such as:...
3
by: Miro | last post by:
Something weird I have run into when trying to add a boolean field to an Access table by code. -Just wondering if anyone else has run into this. ( vb.net 2005 express ) If I add any other...
0
parshupooja
by: parshupooja | last post by:
Hey all, I have Arraylist where I have stored names of Tables.I have two datasources one is SQL and one is Access, they have equal number of tabels. I am trying to find Access databse column and...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.