MissingMethodException exception: entry point '#21 ' in a PInvokeDLL 'cemapi .dll '

  • Thread starter Thread starter =?ISO-8859-1?Q?Jacobo_Rodr=EDguez_Villar?=
  • Start date Start date
?

=?ISO-8859-1?Q?Jacobo_Rodr=EDguez_Villar?=

Hello,

I'm trying to send EmailMessages with VB.NET and compact framework v2.0,
using Visual Studio 2005, but during runtime, the constructor call,
causes the exception that appears in the subject of this mail. The code
is fairy simple.

Imports Microsoft.WindowsMobile.PocketOutlook
Imports System.IO

Public Class MailSender
Private mail As EmailMessage
Private destination As String
Private subject As String
Private originFolder As String
Private destinationFolder As String

Public Sub New(ByVal dest As String, ByVal subj As String, ByVal
originF As String, ByVal destinationF As String)
Try
mail = New EmailMessage()
destination = dest
subject = subj
originFolder = originF
destinationFolder = destinationF

Catch e As Exception
InformationLog.WriteLine("Error: en la creacion de
EmailMessage (" + e.Message + ")")
End Try
End Sub

There are more code but isn't related with this issue. The exception is
launched in the line "mail = New EmailMessage()", and I'm really lost.
I've checked for PocketOutlook.dll in the PDA and is there. I really
appreciate any light in this matter.

Thanks,
Jacobo.
 
Which devices are you running it on? Microsoft.WindowsMobile.PocketOutlook
is only supported on WM 5.0. It won't work on WM 2003 or Windows CE or
desktop.


--
Best regards,

Ilya

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

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
It was my fault. I've sorted the problem. I was trying to use WM5 with
pocketpc2003 project...
 
Back
Top