Solved

Please HELP - MissingMethodException

Posted on 2004-10-19
2
374 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

930 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now