Solved

Please HELP - MissingMethodException

Posted on 2004-10-19
2
375 Views
Last Modified: 2008-02-01
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
0
Comment
Question by:MargusLehiste
2 Comments
 
LVL 6

Accepted Solution

by:
ryerras earned 500 total points
ID: 12352182
Hmm, if it showing in the intellisense, the reference probably got added properly. May be you might want to kill the aspnet_wp.exe process and rebuild and run again. to kill the aspnet_wp process go open TaskManager --> go to Process tab --> right click on aspnet_wp under Image Name and click on End Process Tree. Dont worry it would still show up in it, now rebuild and run again. Also, try to restart the IIS and see. To restart IIS go to  Start--> Open --> Run --> type IISRESET.exe

Also, make sure you have the referenced dll in the bin folder of your application, I assume you do
0
 
LVL 1

Author Comment

by:MargusLehiste
ID: 12353038
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...

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get the web content with different encodings 2 45
Message not shown 5 50
Open MVC5 View in new Window (not Tab) using HTML.ActionLink 6 29
Expression Evaluater 3 26
Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question