realbasic-nug
[Top] [All Lists]

Re: OLEAutomation + ServiceApplication

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: OLEAutomation + ServiceApplication
From: "Alex Cassol" <alexcassol at gmail dot com>
Date: Wed, 27 Sep 2006 17:42:17 -0300
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=OaExRBARvuphee/fI9iim/L6caC6bMAgbQjFi5mlApmP34OGG8aWDOg1/iO5QkUx58CJDGCdMU4BDHsGtCNLeD8x2khIw/ToF8rH9hMIyWSp9zJ8xB1YCMmE4zUXCs7shzdp/z7cy86NizrUluYAiWUIJ0o/wnraVSTHUR0bAO4=
References: <a82417ea0609271158q6cb3d3b9w7c59a50cc984dbb7 at mail dot gmail dot com> <bb01ce98d235209fcd306c42d00650cd at realsoftware dot com>
Yes, I think the same, but the user is administrator.

2006/9/27, William Yu <william at realsoftware dot com>:

Are you executing the process as super user (admin)?  If not, then it's
possible that the service may not have access to that part of registry.
  I'm no expert on this, but MS recommends service apps avoid using OLE
Automation (among other things).

~William


On Sep 27, 2006, at 1:58 PM, Alex Cassol wrote:

> Sorry about my english...
>
> Well... I have an app that run as a service application.
> I have de follow lines on run method:
>  dim rs As OLEObject
>  rs = new OLEObject( "ADODB.RecordSet" )
>
> If I run app via console, runs pretty. If I start the service, occurs
> the
> error:"Invalid class string" in line rs = new OLEObject(
> "ADODB.RecordSet"
> ).
>
> Thank's.
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>




--
 Alex Cassol de Vasconcelos
 alexcassol at gmail.com
 MCSD
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>