Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 13th, 2006, 08:20 AM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default CreateObject error

I have an activex object that contains the code "CreateObject("Outlook.Application)". This code works fine if run locally, but when I put it on our development server, I get an Err 429: ActiveX can't create object error. The server has the same version of outlook, etc. Also, I put that same code into a standard exe and it runs fine on the server. The activex component is being called from an asp page (asp 3.0).

any ideas on how to troubleshoot this would be appreciated.

Thanks!

psames

 
Old October 13th, 2006, 09:26 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

IF you are trying for Server Side Automation, Please read the article below

http://support.microsoft.com/default...b;EN-US;257757

Cheers
Shasur:)

http://www.vbadud.blogspot.com
 
Old October 13th, 2006, 02:53 PM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you, Shasur! This is exactly what I was looking for, even though I had searched microsoft repeatedly and hadn't found this article.

Quote:
quote:Originally posted by plsames
 I have an activex object that contains the code "CreateObject("Outlook.Application)". This code works fine if run locally, but when I put it on our development server, I get an Err 429: ActiveX can't create object error. The server has the same version of outlook, etc. Also, I put that same code into a standard exe and it runs fine on the server. The activex component is being called from an asp page (asp 3.0).

any ideas on how to troubleshoot this would be appreciated.

Thanks!

psames

 
Old October 14th, 2006, 07:20 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Try the following

Add the identity to the webconfig file

<identity impersonate="true"/>

Impersonation provides ASP.net to execute the process with the privileges of another user for a session.

Also make sure that ASPNET (if IIS5.0) or NetworkService is included in the list of users with required privileges

Cheers
Shasur

http://www.vbadud.blogspot.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in WScript.CreateObject pankaj.talk Pro VB.NET 2002/2003 1 June 5th, 2006 03:34 PM
CreateObject Type mismatch error Deepmala Classic ASP Professional 1 February 7th, 2006 04:28 AM
Type Miss match error for Server.CreateObject Deepmala Classic ASP Components 0 December 6th, 2005 02:50 AM
error when createobject excel.application vovo Classic ASP Professional 0 February 3rd, 2005 12:29 AM
CreateObject error on IIS 4 but not IIS 5 timtom Classic ASP XML 1 December 5th, 2003 01:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.