Solved

Please HELP - MissingMethodException

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
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 …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

11 Experts available now in Live!

Get 1:1 Help Now