7
Answers

Error to read outlook mail from IIS

talha karkun

talha karkun

14y
4.5k
1
Hello Friends,

I have created one application in C# which read unread mails from outlook and Stored in SQL Database.

My application is running perfectly in Visual Studio , but when i have placed on IIS then it gives me error at the time of outlook object created like.

objoutlook = new Outlook.Application

Error: Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005.

Please give me some solution.

Its Very Urgent

Hope u will understood my problem

Thank You,

Talha Karkun
Answers (7)
0
Suthish Nair

Suthish Nair

NA 31.7k 4.6m 13y
0
Suthish Nair

Suthish Nair

NA 31.7k 4.6m 13y
Do not use MSOffice integration with web sites. Outlook gives no full support for web applications like excel/word does. You need to create an windows/console application and schedule it for retrieving and saving the mails.
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 13y
Are you sure that there is not an instance of Outlook still executing in the system? That could happen if your application executes but does not do a quit. It seems that that is not likely in this situation but it could happen.

Are you sure that Outlook is installed and executes successfuly in the server? Is the IIS system the same system as the one you are using VS with?

All of that however might be irrelevant. Look at Considerations for server-side Automation of Office.
0
Ankur Gupta

Ankur Gupta

NA 2k 982k 14y

Are these dlls in Publsh folder?
and please write names of dll which you are using and placed in bin folder.
0
Abhimanyu K Vatsa

Abhimanyu K Vatsa

NA 50.9k 12.4m 14y
take a look at IIS directory working process..........because you only have IIS prob....
0
talha karkun

talha karkun

NA 11 0 14y
i have already placed both dlls in bin folder.

my problem is that application run in Visual Studio perfactly

but not worked in IIS Vertual Ditrectory..

pls help me
0
Ankur Gupta

Ankur Gupta

NA 2k 982k 14y
put outlook and office dll in application bin folder.