Click here to Skip to main content
15,568,965 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
just i am creating class file in aspnet.4.0.but i got error "no overload for method takes 1 arguments"..plz solve my problems..
Posted

1 solution

From that little, we can't be specific, as we don't have your code.

But this is pretty simple for you to work out what the problems is: look at the error and double click the message. That will take you to the line that causes the problem.
Look at it code of that line: it will be calling a method, or constructing an object and callign it with one parameter:
C#
myMethod("the parameter");
MyClass mc = new MyClass("A parameter");

Right click the underlined method name - That will take you to (hopefully) the only overload of that name. Check the number of parameters, and either correct the call, or add a second overload with the correct number of parameters.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900