Click here to Skip to main content
15,913,854 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Update dotNET framework ? Pin
Matt Philmon4-Dec-03 7:38
Matt Philmon4-Dec-03 7:38 
GeneralVB.Net Pin
MonsterHilux23-Nov-03 19:56
MonsterHilux23-Nov-03 19:56 
GeneralRe: VB.Net Pin
Colin Angus Mackay26-Nov-03 12:57
Colin Angus Mackay26-Nov-03 12:57 
QuestionHow to fake services on .NET hosts ? Pin
Jerry Evans21-Nov-03 9:23
Jerry Evans21-Nov-03 9:23 
AnswerRe: How to fake services on .NET hosts ? Pin
Daniel Turini21-Nov-03 10:03
Daniel Turini21-Nov-03 10:03 
GeneralHelp!! About VScrollBar control in .NET Framework Pin
newhzh21-Nov-03 0:14
newhzh21-Nov-03 0:14 
QuestionCould anybody tell me the parameter of CryptUIDlgSelectCertificate API of cryptui.dll? Pin
zhang_hao20-Nov-03 18:03
zhang_hao20-Nov-03 18:03 
GeneralProble while sending mail through windows service using MSMAPI Pin
alexander13219-Nov-03 20:32
alexander13219-Nov-03 20:32 
Hi Friends,
when i call a MSMAPI object from a standalone exe in VB .NET, i am able to send a mail. But when i spawn this exe as a process from a windows service, i get an error message while signing on using the MAPI session SignOn() method. I tried using windows service logon as both local system and using my NT logon too. The error message thrown is

System.Runtime.InteropServices.COMException (0x800A7D1A): Not supported
at MSMAPI.MAPISessionClass.SignOn()
at ProcTryMail.tryMail.Pr_SendMail() in D:\Projects\Ems\Backup_Nov17OutSeq\ProcTryMail\tryMail.vb:line 20

My feeling was that some security access is required.

The code i have used is:

Public Class tryMail
Private objMapiSession As MSMAPI.MAPISession
Private objMapiMsgs As MSMAPI.MAPIMessages
Private i As Boolean
Public Sub Pr_SendMail()
Try

objMapiSession = New MSMAPI.MAPISession()
objMapiMsgs = New MSMAPI.MAPIMessages()
objMapiSession.SignOn()
objMapiMsgs.SessionID = objMapiSession.SessionID
objMapiMsgs.Compose()
objMapiMsgs.RecipDisplayName = "--give some mail id here--"
objMapiMsgs.MsgSubject = "From .NET MAPI"
objMapiMsgs.Send()
objMapiSession.SignOff()
Catch
End Try
End Sub
End class

Will be grateful if anyone of u is able to find out the problem.

Thanks
Alex
GeneralPictureBox StretchImage problem Pin
Msftone19-Nov-03 13:53
Msftone19-Nov-03 13:53 
QuestionWhat about pipes? Pin
Noodnik19-Nov-03 11:39
Noodnik19-Nov-03 11:39 
AnswerRe: What about pipes? Pin
Jeff Varszegi19-Nov-03 11:50
professionalJeff Varszegi19-Nov-03 11:50 
GeneralRe: What about pipes? Pin
Noodnik19-Nov-03 17:59
Noodnik19-Nov-03 17:59 
General.NET on Terminal Server Pin
O c t a v i e19-Nov-03 3:35
O c t a v i e19-Nov-03 3:35 
GeneralRe: .NET on Terminal Server Pin
Pauwll23-Nov-03 0:28
Pauwll23-Nov-03 0:28 
GeneralRe: .NET on Terminal Server SOLVED! Pin
O c t a v i e23-Nov-03 23:52
O c t a v i e23-Nov-03 23:52 
GeneralDatabase communication Pin
Moonspellwizard17-Nov-03 23:31
Moonspellwizard17-Nov-03 23:31 
GeneralRe: Database communication Pin
Colin Angus Mackay18-Nov-03 0:14
Colin Angus Mackay18-Nov-03 0:14 
General5 Steps to Rapid Development Pin
smars17-Nov-03 23:01
smars17-Nov-03 23:01 
QuestionHow to compare Word files Pin
Ali-imran15-Nov-03 2:24
Ali-imran15-Nov-03 2:24 
AnswerRe: How to compare Word files Pin
Nick Parker16-Nov-03 9:51
protectorNick Parker16-Nov-03 9:51 
GeneralRe: How to compare Word files Pin
Heath Stewart16-Nov-03 16:34
protectorHeath Stewart16-Nov-03 16:34 
GeneralRe: How to compare Word files Pin
Nick Parker16-Nov-03 17:07
protectorNick Parker16-Nov-03 17:07 
GeneralRe: How to compare Word files Pin
Heath Stewart17-Nov-03 2:33
protectorHeath Stewart17-Nov-03 2:33 
AnswerRe: How to compare Word files Pin
Nick Parker16-Nov-03 17:22
protectorNick Parker16-Nov-03 17:22 
QuestionIs Framework 1.1 redistributatble enough for all .Net developments? Pin
Pauwll14-Nov-03 20:57
Pauwll14-Nov-03 20:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.