Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Please HELP - MissingMethodException

Posted on 2004-10-19
2
Medium Priority
?
380 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
ryerras earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

688 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