Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Comments
Aravindbpanchu 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

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.
 
Share this answer
 
Comments
gani7787 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 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900