Link to home
Start Free TrialLog in
Avatar of MargusLehiste
MargusLehiste

asked on

Please HELP - MissingMethodException

I get the following error message (the function which this page is trying to access is in web control library project - reference is added - and the function is there <it shows up in intellisense and object browser> however when accessing page there is runtime error) :

Method not found: Int32 ML_DataAccess.signUp_student.signUpIDtry().
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.MissingMethodException: Method not found: Int32 ML_DataAccess.signUp_student.signUpIDtry().

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[MissingMethodException: Method not found: Int32 ML_DataAccess.signUp_student.signUpIDtry().]
   StudentSignUp.SharedFtry.Button1_Click(Object sender, EventArgs e) +0
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain() +1277

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
ASKER CERTIFIED SOLUTION
Avatar of ryerras
ryerras

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MargusLehiste
MargusLehiste

ASKER

It was really stupid error (thanks Microsoft again) - it looks like it had several issues:

First of all i separated code to modules (data access, bizLogic etc) - so debuggin suffered.

One thing - I needed to rebuild first the web control library and then original project (and even then it gave me hard time).
Also - it will not hurt to check & recheck the signatures of the functions.
But i think what helped was that I recreated the functions in the new file...