|
-
Nov 8th, 2002, 01:05 PM
#1
Thread Starter
Addicted Member
Services in VB.nET
I created a service in VB 6.0 which logs into exchange and does some processing on Emails.
I'm trying to recreate that service in VB.NET. Unfortunately it hasn't been cooperating.
The problem seems to stem from the fact that it's a service in the first place. Almost as though it isn't initializing the classes correctly or something. It's rather strange.
The first actual task I perform is to log into the mapi.session object and then go to get the inbox. (Because of a bug in Mapi).
But when I do this in .NET it just hangs. I put the object into my watch window... and noticed that right after...
objSession= New Mapi.Session()
Most of the properties of the Session object in the watch window say: <error: an exception of type:{System.Runtime.InteropServices.COMException} occurred>
I had a similar problem occur with my configuration class. All the public variables were errors, even though the private variables were fine....
Anyone know what the heck is going on with this? The program (and MAPI) works fine as an application... it seems just be with a service that it freaks out.
Eiredrake
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|