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

  • Home
  • SEARCH
  • 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 8276325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:20:29+00:00 2026-06-08T08:20:29+00:00

On VS C# Express, I get this error when running the code below: ‘myComponent.SettingsComponentAttributes’

  • 0

On VS C# Express, I get this error when running the code below:

‘myComponent.SettingsComponentAttributes’ does not contain a
constructor that takes 1 arguments.

I have tried adding a constructor in the class itself but the same message applied to the new constructor:

public override void CreateAttributes()
{
    m_attributes = new SettingsComponentAttributes(this);
}

public SettingsComponentAttributes(SettingsComponentAttributes obj)
{
}
  • 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-08T08:20:31+00:00Added an answer on June 8, 2026 at 8:20 am

    Your class doesn’t declare any constructors, therefore it’s equivalent to having a single parameterless constructor:

    public SettingsComponentAttributes()
    {
    }
    

    You’re trying to pass an argument (this) into the constructor – which isn’t going to work. You’ll need to either change your constructor call, or declare an appropriate constructor.

    You should also look at the error message carefully and work out why you needed to ask on Stack Overflow. Which bit of the message wasn’t clear to you? Revise that aspect of your C# knowledge. Understanding error messages is a very important part of being a good developer, and this one is fairly clear:

    • You’re trying to use a constructor with 1 argument
    • No such constructor exists
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I push a default express app to heroku I get the following error.
I am running windows 7 and I am trying to get this IDE to
When I run my node app, I get this error message before it quits:
Why do I get this error when trying to open a table for editing:
I am using this class in MSVC++ 2010 Express: http://www.codeproject.com/KB/recipes/HMACSHA1class.aspx . I am running
I'm trying to get a very simple test of Amazon SimpleDB running with Node.js/Express.
I got a problem on my express server app.get('/callback/:nation/:username/?:permalink', function(req, res) { nationurl =
I am using paypal Express Checkout method in my PHP site to get the
In express, I have defined some routes app.post(/api/v1/client, Client.create); app.get(/api/v1/client, Client.get); ... I have
I have the following express node.js app. It's using the 'redis' npm package. app.get(/test,function(req,res){

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.