Solved

Dll reference in BIN directory - not sure why it works

Posted on 2006-11-27
2
210 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
ID: 18021415
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
ID: 18021431
It will create automatically only if you could build sucessfully. Forgot to mention that.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

24 Experts available now in Live!

Get 1:1 Help Now