Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8172037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:39:20+00:00 2026-06-06T21:39:20+00:00

Just created a .dll file that has some methods. And I have a another

  • 0

Just created a .dll file that has some methods. And I have a another project with a class library and client application that reference between each other and work fine.

The problem is that I reference the .dll I just created in the class library but cant use the methods that are available in the .dll. (I can see them in the object browser and everything looks fine).

Like when I try:

Cache cache = new Cache("blabla");

I get:

The reference i made.Cache’ is a namespace but is used like a ‘type’.

But when I add reference in the client application (which is a console app). Then I get no problems and can use the methods easily. Why Does is give my problems in the class library ??

any suggestions

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:39:22+00:00Added an answer on June 6, 2026 at 9:39 pm

    This is simply a naming conflict with a namespace that is in scope and features the word Cache in it, likely at the end (something like namespace MyCompany.MyNamespace.Cache { }).

    You need to fully qualify the type in-line or untangle the namespaces and use using statements at the top:

    MyNamespace.Cache cache = new MyNamespace.Cache("");
    

    Try to follow the namespace naming guidelines to avoid this situation:

    Do not use the same name for a namespace and a class. For example, do
    not provide both a Debug namespace and a Debug class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a certain database that has some employee information, and I just wrote
I just created a PHP page that spits outs some data from my database
I have a working c++ dll that works in one c# project that I
I am working on a class library (DLL) project in Visual Studio 2008; programming
I have created a simple XNA Windows Class Library with XNA 4.0 called NivekGameEngine.
I have a .NET dll which has some interfaces\classes which are exposed to com.
Background: I have a DLL I created that includes 2 c files. These c
I am just learning Blend/Silverlight/VS2010/.net/etc. I have a simple project that resides on a
I am having a problem with a 32-bit ATL dll that I have created---whenever
Just created a WSS site with a some custom web-parts. But I get an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.