473,404 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

mapi.session and ASP.Net

I am attempting to create a MAPI Session with the
following code on an ASP.net page.

Dim oSess As New MAPI.Session()
oSess.Logon("MS Exchange Settings")
This code works fine in a vb.net environment but when I
attempted to run the same code in an ASP.Net environment I
got the following error.

[Collaboration Data Objects - [MAPI_E_LOGON_FAILED
(80040111)]]

I am aware that the account being used to open this
session is the ASPNET account so I attempted to use
ASP.Net impersonation using my own NT login credentials.

This time I got the following error.

[Collaboration Data Objects - [UNKNOWN_ERROR(80010106)]]

I have search the web for a solution to the issue without
any success. Urgent help required!!!

Regards,

Pat Sinnot MCSD


Nov 17 '05 #1
1 5230
I have worked out what the problem was here.

I added the page directive ASPCOMPAT = true and it worked.
I also used impersonation to impersonate my own NT login
credentials

I can now access all the public folders and their messages
to which I have access through my ASP.NET pages.

Note I use other com components on the page(to access my
business objects which were programmed using VB6) and all
these work faster with ASPCOMPAT set to true.
Regards,

Pat Sinnott MSCD

-----Original Message-----
I am attempting to create a MAPI Session with the
following code on an ASP.net page.

Dim oSess As New MAPI.Session()
oSess.Logon("MS Exchange Settings")
This code works fine in a vb.net environment but when I
attempted to run the same code in an ASP.Net environment Igot the following error.

[Collaboration Data Objects - [MAPI_E_LOGON_FAILED
(80040111)]]

I am aware that the account being used to open this
session is the ASPNET account so I attempted to use
ASP.Net impersonation using my own NT login credentials.

This time I got the following error.

[Collaboration Data Objects - [UNKNOWN_ERROR(80010106)]]

I have search the web for a solution to the issue without
any success. Urgent help required!!!

Regards,

Pat Sinnot MCSD


.

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: V.C.Sekhar | last post by:
Hi there, Can any one please help in getting me Python-Outlook programming issue clarified. I just wanted to do the following using Python: 1)Open a New Oulook Mail Window
1
by: Suganthi | last post by:
Hi, I have a specific problem while using MAPI for sending the emails from my application. My requirement is as follows. My application will be running either as a service or a process in a...
4
by: Kurt | last post by:
Hi I am using CDO 1.21 from C# in order to iterate through the entries in a users outlook address book (as OOM was too slow). Basically I take the Name field from each "message" and insert it into...
7
by: Ottar | last post by:
I've made a program sorting incomming mail in public folder. The function runs every minute by using the form.timer event. In Access XP it runs for weeks, no problem. Access 2003 runs the same...
4
by: Ottar | last post by:
Error: 80040108 after 380 CreateObject("MAPI.Session") Function MAPI_Test2() Dim i As Integer Dim MySession As MAPI.Session i = 0 While (i < 2000) Set MySession =...
2
by: Gerry | last post by:
I am writing a program in C# which accesses data from Exchange. Code snippets have been copied from a VB-program. The VB-program does the following: 'create session and logon objSession =...
0
by: Kevin Quigley | last post by:
Hi, I have a web page that will send emails to various addresses, I've tried using the SmtpMail class but no matter what I try it will not work. I have an asp page that does actually work...
4
by: Brian Hampson | last post by:
I recently upgraded to Outlook 2007 B2TR and have found that I can no longer code against MAPI.DLL It's gone :( Using C#, I used to get the MAPI session, and from that I could change the out of...
1
by: bobh | last post by:
Hi All, I've been using this function which I got from here for some time now in two of my AccessXP multiusers applications and it has worked without issue until lately it has stopped functioning...
15
by: squrel | last post by:
Hi everyone.. i need ur help once more time.... i have a form called reminder..in tht form i have: txtid, txtcaseid, txtreminder, cmbremindby(system or user), txtremindto, dtpreminddt,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.