473,511 Members | 15,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
2 5530
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5931
by: Chuck Farah | last post by:
I am unsuccessfullly trying to display an outlook email from a vb web forms (.net) outlook 2002 #1. is it possible to use outlook client email from a web form using the outlook object model...
2
3951
by: Blake | last post by:
I'm using late binding to create Outlook email from an Access2K database. I am not referencing the Microsoft Office 9.0 Object Library nor the Microsoft Outlook 9.0 Object Library. Instead, I have...
1
9205
by: Blake | last post by:
I'm using late binding to create Outlook email from an Access2K database. I am not referencing the Microsoft Office 9.0 Object Library nor the Microsoft Outlook 9.0 Object Library. Instead, I have...
3
1783
by: Ben Taylor | last post by:
Hi I am trying to build, more for a learning project than anything, an ASP.NET web application in C# that will run on my local machine, which has now successully got IIS installed on it (XP pro)....
2
2647
by: HvG | last post by:
I'm sure this is a trivial question, but I cannot create an Outlook Object from a WebForm app, but can from a console app. or a Windows app. My COM knowledge is very poor sorry. ...
7
3019
by: John | last post by:
Having a problem sending emails through vb.net. Our inhouse software automatically sends an email to the programming staff whenever an error is encountered. This code works just fine on machines...
0
10103
by: mammucion | last post by:
Trying to automate processing 80,000 data sets through 15 web pages. Application URL creates a new IE instance in which runs first a login form and then runs the rest of the pages in the new...
3
8265
by: wizzbangca | last post by:
Hi everyone. Having problems with a utility I am writing for work. The previous IT Director thoughtfully allowed 3 (2000, xp, 2003) versions of outlook to be installed rather than 1. Now I need...
3
2821
by: Siv | last post by:
Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and...
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.