MissingMethodException

S

saima

Hi,
I am having this MissingMethodException from a managed dll
which i am callign from a VB.NET application.
The thing is that One of the classes of the dll is working
fine.It gives no error while calling the methods .That
means i am placing the dll in right location.
But when i call the methods of a different class of the
dll it gives this MissingMethodException. The problem is
that my dll is a third party dll so i can not see the code
in it. What could be the solution to this problem.
I get no error on compile time so this means that the
mehtod names and paramters are the right type.Even if i
call the methods which take no parameters, this exception
occurs. Can anybody plz help!.
regards,Saima.
 
C

Chris Tacke, eMVP

Are you sure the names aren't decorated? Are they publicly expoted? Have
you run depends.exe to see what exactly the DLL is expecting?
 
G

Geoff Schwab [MSFT]

Hi Saima,

The following FAQ entry provides some common mistakes that can cause this
exception:

6.15. Why do I get a MissingMethodException when I call a function from a
native DLL?
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx#6.15

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

saima ashraf

ok o, i got it working now. The dll whhich i was calling had some
dependency dlls which the thrid party forgot to send me ... so now i
have got them and they are working fien now.. thanks a lot for the
replies, Cris and geoff.
Saima.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Debugging PInvoke DLL not found on Device Emulator 4
LoadLibrary 2
strange behvaiour for poom 1
Phone API in OpenNETCF 4
MissingMethodException - Calling C code from C# app 2
DllImport Help 6
DLL import 3
DLL 1

Top