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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:17:35+00:00 2026-05-20T07:17:35+00:00

In one namespace (Ventosa.Graphics) I have a public class named Model namespace Ventosa.Graphics {

  • 0

In one namespace (Ventosa.Graphics) I have a public class named Model

namespace Ventosa.Graphics
{
   public class Model : GraphicsResource
   {
       public Model(...)
       {
           ...
       }
       ...
   }
}

Then in another project I try to access this class

Model player = new Model(...);

But this line creates an error. C# recognizes that Model exists, but claims that it isn’t accessible due to it’s protection level. Shouldn’t making it public mean it’s accessible from everywhere?

And yes, the base class GraphicsResource is public.

This happens in a few other places in my project too, all with classes that are derived.

EDIT:
The exact error message is (in German):
Der Zugriff auf “Ventosa.Graphics.Model” ist aufgrund der Sicherheitsebene nicht möglich. Translated to English, it says: “Ventosa.Graphics.Model” is inaccessible due to its protection level.

  • 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-05-20T07:17:35+00:00Added an answer on May 20, 2026 at 7:17 am

    You describe something that clearly should not be. I’d suggest that you try to reproduce the problem in the simplest way possible. You probably won’t be able to. Then add to your sample, making it more and more like your production code, until you trigger the problem.

    Remove the reference to the superclass GraphicResource. Make sure there’s only one constructor defined. Try to instantiate that class from the same namespace, using full namespace references (not using statements) and that single, explicit constructor. It’ll probably work.

    If it doesn’t work, step back a bit and define a new type entirely (Ventosa.Graphics.ModelTest or something). Make sure that works.

    Now, add pieces back in. Inherit from GraphicResource, try that. Remove the namespace qualifications; use using instead. Move the instantiation to a different namespace, then a different assembly.

    You’ve verified that the definition of the GraphicResource class is public. What about any of its superclasses?

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

Sidebar

Related Questions

In one class I have a library project with a file class1 with namespace
I have three projects under another project of which each contains one namespace. Now
Why one project (exe) does not see the namespace of another project (dll) in
Which one is more acceptable (best-practice)?: namespace NP public static class IO public static
If I have namespace with two classes. I want to use class from one
I am attempting to move a highly referenced class from one namespace to another.
I have a very simple XAML form, that has one namespace definition. For some
How do I call a function in one Clojure namespace, bene-csv.core from another namespace,
I have the following in one namespace say shapes : (derive ::rect ::shape) (derive
According to the developer documentation jquery plugins are supposed to have only one namespace

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.