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 9021681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:18:47+00:00 2026-06-16T05:18:47+00:00

I have a class library I’ve built for a coworker to use that, after

  • 0

I have a class library I’ve built for a coworker to use that, after giving her the .dll file, I cannot get to work. The name of the .dll file is “BatchDashboard.” The name of the namespace is “BatchDashboard,” and the name of the class (there is only one) is “BatchDashboard.” Is it a problem to have all three similarly named? Visual Studio is able to add the reference just fine. However, this statement:

using BatchDashboard;

spits out the following error:

The type or namespace name 'BatchDashboard' could not be found (are you missing a using directive or an assembly reference?

Likewise, I cannot instantiate a new ‘BatchDashboard’ object.

Could someone tell me what I am doing wrong?

Thx!

EDIT

I have tried adding the reference to another test project on my computer and receive the same results.

SECOND EDIT

Changing the access modifier to public for the “BatchDashboard” class fixed the issue with the using statement. However, when I try to instantiate an object like so:

BatchDashboard batch = new BatchDashboard();

I got the following error:

'BatchDashboard' is a namespace but is used like a 'type'

It was necessary for me to have different class and namespace names to work. Thank you!

  • 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-16T05:18:48+00:00Added an answer on June 16, 2026 at 5:18 am

    I think, I know what problem you have. When you created your class file, you probably didn’t change access to your class to “public”. In .Net, unless you have public members in the assembly, the namespace wouldn’t be found in “using” directive.
    Basically, check if the class you have is a “public class”

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

Sidebar

Related Questions

I have a class library project that references the version 4.1 Microsoft.Practices.Common dll. I
I have a class library that I use to hold the Entity Framework Data
I have a class library file that is not is not getting picked up
I have a class library that has settings within an app.config. I know that
My Scenario I have a class library that is going to be called from
I have a class library that has it's own model and connectionstring to the
I have created a class library (assembly) that provides messaging, email and sms. This
I have a Class Library that has an AssemblyVersion of 1.0.0.0 and has to
I have a class library in C# which is compiled into a dll. Is
I am used to Visual studio, I have class library projects that I reference

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.