troubleshooting Question

Using/Import statement in code doesn't see reference of dll just added.

Avatar of David L. Hansen
David L. HansenFlag for United States of America asked on
* dllC#.NET ProgrammingVisual Basic.NET
3 Comments1 Solution140 ViewsLast Modified:
I add DLL's to my projects all the time (in C# and in VB). After employing the IDE to get the library into the project, I just type the normal "using theDLLsNameSpace" (or "Imports the DLLsNameSpace") to begin coding with that library. Nothing surprising there.

The issue I'm having today is that after adding the DLL to the project (successfully and without error) I type this:
using System.Data.SqlClient;
using System.IO;
using System.Windows.Forms;
using theDLLsNameSpace; //The problem is here

namespace XYZ
.
.
The good-old red underline appears with the following error (on line 4):
The type of namespace name 'theDLLsNameSpace' could not be found (are you missing a using directive or an assembly reference?)
By the way, I compiled the code myself (someone else's original code) in x86. The x86 is just because we've avoided some bugs doing it that way.

Any idea why this is happening or how to fix it?
ASKER CERTIFIED SOLUTION
Elvio Lujan
.Net Senior Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros