Click here to Skip to main content
11,638,881 members (75,016 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Outlook
I am using one ASP.NET Application.

While i am reading the outlook mail from the client machine, then i am getting the below error.

pls. give me the solution for this.

Error :

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Tue, 26 Jun 2012 13:09:31 UTC


Message: Sys.WebForms.PageRequestManagerServerErrorException: Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
Line: 939
Char: 13
Code: 0
URI: http://sipsv0039/Applications/ResumeParser/ScriptResource.axd?d=Y5t8k5fazW46Gmt8lKzy68zrIAfEh1s5myElPEtbTCbeKoDRpgw8Xnp1knNXkWAS4-nQ7BX1VCaFzWDSIQHwwQ2&t=ffffffff823b7694
Posted 26-Jun-12 3:26am
gani77871.3K
Comments
Aravindbpanchu at 25-Jul-12 5:39am
   
i call the outlook from vb.net it show the below error when my project in the IIS

Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
If my program in local drive it works well and also it call the outlook with all field are filled up. pls reply me

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I see a couple issues here. First, and most directly, the error states that access has been denied. That means you have a permissions issue. Since you are running on a web server, look to see if the user that IIS is running under has rights to what you are attempting to access.

However, in the bigger picture, I see a design issue. It sounds like you are trying to access Outlook on the client's machine from an ASP.NET page. This won't work. ASP.NET is a server technology. It should never have access to the client machine, except under very limited conditions (file upload, for instance). If you are attempting to access email, the best bet would be to go to the email server and get the mail that way. You won't get the offline email from the client, but you wouldn't this way anyway.
  Permalink  
Comments
gani7787 at 27-Jun-12 2:24am
   
what will be the next solution.?

I have already configured in IIS.

Do we have any other option with client Outlook and IIS Server...?
Tim Corey at 27-Jun-12 8:39am
   
If you mean "can I still connect to Outlook on the client from ASP.NET", the answer is no, there is no option for that. Even if it were possible, and it isn't as far as I know, that would be an awful design. A web page should not be reliant on things on the users' computers. What would happen if they browsed there using Mac/Linux/Mobile? As far as design alternatives, you need to look at reading the users' email from the server (POP3, Exchange, etc.) instead. This will be feasible and it will be a much better design.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 314
1 Suvendu Shekhar Giri 240
2 stibee 213
3 Mika Wendelius 208
4 Richard Deeming 190
0 OriginalGriff 9,061
1 Sergey Alexandrovich Kryukov 8,773
2 Mika Wendelius 7,027
3 Suvendu Shekhar Giri 2,494
4 F-ES Sitecore 2,438


Advertise | Privacy | Mobile
Web01 | 2.8.150728.1 | Last Updated 26 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100