By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,053 Members | 1,595 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,053 IT Pros & Developers. It's quick & easy.

Outlook.Application???? Cannot create ActiveX component.

P: n/a
I want to use Outlook.Application, but I donot get further.

Dim objOLApp As Outlook.Application
objOLApp = CreateObject("Outlook.Application")

Everytime I'll get the following error:
Cannot create ActiveX component

I set in the reference the COM from Outlook...
Does someone know how to solve this problem????

Regards,
Wilco Broersen
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Check your permissions. If you are using ASP.NET (which I assume you are,
since you are in these forums) then the user account that aspnet_wp runs
under (MACHINE\ASPNET by default) needs to have permissions on the Outlook
object in order to use it.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"W. Broersen" <wb*******@broersenit.com> wrote in message
news:40*********************@diablo.nl.easynet.net ...
I want to use Outlook.Application, but I donot get further.

Dim objOLApp As Outlook.Application
objOLApp = CreateObject("Outlook.Application")

Everytime I'll get the following error:
Cannot create ActiveX component

I set in the reference the COM from Outlook...
Does someone know how to solve this problem????

Regards,
Wilco Broersen

Nov 18 '05 #2

P: n/a
You're right about ASP.NET + VB. But I checked the permissions of that file,
those were good. But it still won't work

Further I use the Windows XP Prof. for the development and Outlook 2000.

The complete description is.
Cannot create ActiveX component.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Exception: Cannot create ActiveX component.

"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Check your permissions. If you are using ASP.NET (which I assume you are,
since you are in these forums) then the user account that aspnet_wp runs
under (MACHINE\ASPNET by default) needs to have permissions on the Outlook
object in order to use it.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"W. Broersen" <wb*******@broersenit.com> wrote in message
news:40*********************@diablo.nl.easynet.net ...
I want to use Outlook.Application, but I donot get further.

Dim objOLApp As Outlook.Application
objOLApp = CreateObject("Outlook.Application")

Everytime I'll get the following error:
Cannot create ActiveX component

I set in the reference the COM from Outlook...
Does someone know how to solve this problem????

Regards,
Wilco Broersen


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.