mapi.session and ASP.Net

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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




    Pat Sinnott Guest

  2. Similar Questions and Discussions

    1. Using MAPI with Coldfusion
      Hi, I have successfully tried cfpop and cf_imap before. In some cases companies doesn?t allow either one. The only thing supported is MAPI. So far...
    2. Mapi object failure on remote machine
      "mattb" <mattb@discussions.microsoft.com> wrote in message news:9A459725-43E7-466E-9202-5C11730BC551@microsoft.com... Please don't multi-post. ...
    3. Win32::OLE MAPI Session missing something?
      I am trying to use Win32::OLE to send email using MAPI, only I receive the following error : Win32::OLE(0.1403) error 0x800401f3: "Invalid...
    4. Win32::MAPI - where to find
      hi! wondering if somebody could help me.... does anybody know where to find the win32::mapi module? I dried hard to find it on the internat, but...
    5. POP3 Access via MAPI in ASP?
      Hello, Actually i am makin a website using ASP with which i want to fetch mails from a POP3 server, but i cant figure out the any of the thid party...
  3. #2

    Default mapi.session and ASP.Net

    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
    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
    >
    >
    >
    >
    >.
    >
    Pat Sinnott Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139