Re: CreateObject referencing a .NET assembly on Network Storage

2011-09-19 Thread Andrey Baranov

by default it uses the SYSTEM account like all other CF services, so
you may need to change this as well.




Good catch, the .NET service was not using this account. Unfortunately, I'm 
still getting the error. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347514
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CreateObject referencing a .NET assembly on Network Storage

2011-09-19 Thread Russ Michaels

it may be then that the request is running under the application pool identity.
try changing that, or trying impersonating another user.


On Mon, Sep 19, 2011 at 2:31 PM, Andrey Baranov
andrey.bara...@dmv.ny.gov wrote:

by default it uses the SYSTEM account like all other CF services, so
you may need to change this as well.




 Good catch, the .NET service was not using this account. Unfortunately, I'm 
 still getting the error.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347515
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CreateObject referencing a .NET assembly on Network Storage

2011-09-19 Thread Mike Chabot

Have you tried making sure your code works in a development
environment with the DLL available locally?

-Mike Chabot

On Wed, Sep 14, 2011 at 2:21 PM, Andrey Baranov
andrey.bara...@dmv.ny.gov wrote:

 The main issue is that the dll is not being found. I am getting the error:

 Class FMSMQ.MSMQWriter not found in the specified assembly list.

 The assembly that contains the class must be provided to the assembly 
 attribute.

 The IIS virtual directory is serving up content from the same root level 
 directory on the Network Storage.

 The page I'm calling, is trying to create the class object, and then call a 
 single method.

 cfscript

    variables.assemblyPath = 
 \\NETWORK_STORAGE_DRV\PRD\DMV\Assemblies\Feeds\FMSMQ.dll;

    objVar = CreateObject(.NET, FMSMQ.MSMQWriter, variables.assemblyPath);

    rc = FMSMQ.Write(variables.INPUTXML);
    //WriteOutput(rc);

 /cfscript

 So, both IIS and Coldfusion are installed on the same server, but the actual 
 web content resides elsewhere. Coldfusion is running under a local account 
 that's synced to an account for the Network Storage, so it has access to the 
 pages it needs. As far as I can see, there should be no problem accessing 
 assembly, since it resides under the same share.



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347525
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CreateObject referencing a .NET assembly on Network Storage

2011-09-16 Thread Jochem van Dieten

On Wed, Sep 14, 2011 at 8:21 PM, Andrey Baranov wrote:
 So, both IIS and Coldfusion are installed on the same server, but the actual 
 web content resides elsewhere. Coldfusion is running under a local account 
 that's synced to an account for the Network Storage, so it has access to the 
 pages it needs.

But what account is the ColdFusion .NET Service using?

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347493
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CreateObject referencing a .NET assembly on Network Storage

2011-09-16 Thread Russ Michaels

by default it uses the SYSTEM account like all other CF services, so
you may need to change this as well.

On Fri, Sep 16, 2011 at 8:56 AM, Jochem van Dieten joch...@gmail.com wrote:

 On Wed, Sep 14, 2011 at 8:21 PM, Andrey Baranov wrote:
 So, both IIS and Coldfusion are installed on the same server, but the actual 
 web content resides elsewhere. Coldfusion is running under a local account 
 that's synced to an account for the Network Storage, so it has access to the 
 pages it needs.

 But what account is the ColdFusion .NET Service using?

 Jochem

 --
 Jochem van Dieten
 http://jochem.vandieten.net/

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347494
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CreateObject referencing a .NET assembly on Network Storage

2011-09-14 Thread Andrey Baranov

The main issue is that the dll is not being found. I am getting the error: 

Class FMSMQ.MSMQWriter not found in the specified assembly list.

The assembly that contains the class must be provided to the assembly 
attribute.

The IIS virtual directory is serving up content from the same root level 
directory on the Network Storage. 

The page I'm calling, is trying to create the class object, and then call a 
single method. 

cfscript

variables.assemblyPath = 
\\NETWORK_STORAGE_DRV\PRD\DMV\Assemblies\Feeds\FMSMQ.dll;

objVar = CreateObject(.NET, FMSMQ.MSMQWriter, variables.assemblyPath);

rc = FMSMQ.Write(variables.INPUTXML);
//WriteOutput(rc);

/cfscript

So, both IIS and Coldfusion are installed on the same server, but the actual 
web content resides elsewhere. Coldfusion is running under a local account 
that's synced to an account for the Network Storage, so it has access to the 
pages it needs. As far as I can see, there should be no problem accessing 
assembly, since it resides under the same share.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347462
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm