Solved

Dll reference in BIN directory - not sure why it works

Posted on 2006-11-27
2
207 Views
Last Modified: 2010-04-23
I have a DAL, BAL and the UI.
In my DAL and BAL, i have a reference to IBM.Data.DB2.iSeries dll.
I also use SQLClient.
I use this code for my DAL (changed it to VB.Net): http://aspalliance.com/837_Implementing_a_Data_Access_Layer_in_C
Users can choose either between IBM connection or SQL connection.
I copied the entire code to another server.
I brought up the site and chose "SQL" connection but got an error about the IBM dll.
*** I copied the IBM.Data.Db2.iSeries.dll to the BIN directory of the UI folder and it works..., i didnt get the IBM error... ***

Why is that? When I chose SQL, why was it looking for the IBM dll?? So now when we give the application to a client who has SQL2000, we have to give them the IBM dll as well??
0
Comment
Question by:Camillia
  • 2
2 Comments
 
LVL 6

Accepted Solution

by:
riyazthad earned 500 total points
Comment Utility
You dont have to copy manually IBM.Dll to Bin folder. If you are refering to project by 'Add Reference' option it will copy automatically to bin folder. There by you can avoid any errors while installation. so better to refere IBM.dll by using 'Add Reference'.

I hope this makes clear.
0
 
LVL 6

Expert Comment

by:riyazthad
Comment Utility
It will create automatically only if you could build sucessfully. Forgot to mention that.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now