Hi....
I have a class having different methods with different parameters now I want to overload a method by increasing the one extra parameter like bellow..
public void Uper_PermonentMethod(string comm, long code, string itemname, string length, string collar, string neck, string chest, string waist, string cuff, string elbow, string hip, string ShoulderShape, string sleeves, string loosing, string armhole)
{
}
public void Uper_PermonentMethod(string comm, long code, string itemname, string length, string collar, string neck, string chest, string waist, string cuff, string elbow, string hip, string ShoulderShape, string sleeves, string loosing, string armhole,string OrderType)
{
}
bold method is overloaded method with OrderType Field...
But when I perform event in my application that exception is happening that
Method Not Found...
please help me...
Loading

Sam HobbsRank #108 · 20.5K reputationPosted May 30, 2011, 10:15 PM EDT
Kanhialal kkRank #8,477 · 221 reputationPosted May 30, 2011, 10:23 PM EDT
following is the code which i have used for above method...
this.command = "insert into Perm_UperMeasurment(CCode,ItemName,Length,Collar,Neck,Chest,Waist,Cuff,Elbow,Hip,ShoulderShape,Sleeves,Loosing,Armhole,OrderType) values (@CCode,@ItemName,@Length,@Collar,@Neck,@Chest,@Waist,@Cuff,@Elbow,@Hip,@ShoulderShape,@Sleeves,@Loosing,@Armhole,@OrderType) ";
this.obj_two.Uper_PermonentMethod(this.command, this.code, this.itemname, this.length, this.collar, this.neck, this.chest, this.waist, this.cuff, this.elbow, this.hip, this.ShoulderShape, this.sleeves, this.loosing, this.armhole,this.OrderType);
I am initializing that class like...below
private ElegantWEBIFF6 obj = ((ElegantWEBIFF6)Activator.GetObject(typeof(ElegantWEBIFF6), "tcp://" + ServerName.server + ":8082/WEBIIF"));
Posted May 30, 2011, 10:25 PM EDT
If you're having multiple projects in a single solution , please setup proper Project Build Order. This will avoid this kind of issues.
Hope this helps you.
Kanhialal kkRank #8,477 · 221 reputationPosted May 30, 2011, 10:28 PM EDT
sir this is not a dll file just a class is added in my project and nor it is used in any other project...
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted May 30, 2011, 10:38 PM EDT
Have a look at derived class: No of parameters of the method might be less or higher than parent class
method signature.
VulpesRank #55 · 29.2K reputationPosted May 31, 2011, 7:48 AM EDT