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_stude nt.signUpI Dtry().
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.MissingMethodExcept ion: Method not found: Int32 ML_DataAccess.signUp_stude nt.signUpI Dtry().
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_stude nt.signUpI Dtry().]
StudentSignUp.SharedFtry.B utton1_Cli ck(Object sender, EventArgs e) +0
System.Web.UI.WebControls. Button.OnC lick(Event Args e) +108
System.Web.UI.WebControls. Button.Sys tem.Web.UI .IPostBack EventHandl er.RaisePo stBackEven t(String eventArgument) +57
System.Web.UI.Page.RaisePo stBackEven t(IPostBac kEventHand ler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePo stBackEven t(NameValu eCollectio n postData) +33
System.Web.UI.Page.Process RequestMai n() +1277
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Method not found: Int32 ML_DataAccess.signUp_stude
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.MissingMethodExcept
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_stude
StudentSignUp.SharedFtry.B
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.Page.RaisePo
System.Web.UI.Page.RaisePo
System.Web.UI.Page.Process
--------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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...