References

G

Guest

My problem is that I am unable to connect to my DB2 Database in project B,
but am able to connect via Project A.

Problem #1. When I add a reference to my Web Application for the IBM Data
drivers, I navigate to the folder where they reside and select them. I
expect to see a folder for references, but none exists. Where did my
references go?

Problem/Question #2 - If VS Solution A has a Web Site AND a Project in
the same solution. The solution in this project contains all class which
will be used to connect to the Database. If Solution B, creates a reference
to VS Solution A Project, there should be no need for Solution B to have a
reference to those IBM Data Drivers. Isn't that correct? I can see the DLL
for Solution A Project in my solution B (which is in the BIN folder and not
the reference folder), but I see no reference to the IBM Data Drivers.
Should I?

Thanks in advance for your assistance!!!!
 
M

Morten Wennevik [C# MVP]

Hi Jim,

My problem is that I am unable to connect to my DB2 Database in project B,
but am able to connect via Project A.

Problem #1. When I add a reference to my Web Application for the IBM Data
drivers, I navigate to the folder where they reside and select them. I
expect to see a folder for references, but none exists. Where did my
references go?

They will be in the project properties under the References tab
Problem/Question #2 - If VS Solution A has a Web Site AND a Project in
the same solution. The solution in this project contains all class which
will be used to connect to the Database. If Solution B, creates a reference
to VS Solution A Project, there should be no need for Solution B to have a
reference to those IBM Data Drivers. Isn't that correct? I can see the DLL
for Solution A Project in my solution B (which is in the BIN folder and not
the reference folder), but I see no reference to the IBM Data Drivers.
Should I?

Thanks in advance for your assistance!!!!

If WebSite B has a referene to Project A, the dll for A will be found in the bin folder of WebSite B. If Project A refers to something those dlls will be copied along with the A dll to the WebSite B bin folder. There are exceptions to this, most notably if the dll being referred is located in GAC (Global Assembly Cache). If so, it won't be copied to the bin folder. The assembly will be located in %windir%/assembly/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top