Yes same server.

<cfobject action="create" type=".net" name="test" class="CfTest"
assembly="Test.dll" />

I put the Test.dll in the Assembly cache after it didn't work locally even
with full path.

This is as simple as I could make it. I tried it with namespace also.

But both ways get the same error.

    public class CfTest

    {
        public CfTest()
        {
        }

        public int testMethod()
        {
            int c;
            c = 2;
            return c;
        }

    }


Regards
Dale Fraser

http://learncf.com


-----Original Message-----
From: Antony Sideropoulos [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 22 September 2007 11:13 AM
To: CF-Talk
Subject: Re: Simple .NET Class

I'm not sure - I'm using local system on my pc and it eventually worked for
me.

Your dll is on the same server as CF isn't it? Is it a local drive or
mapped?

On 9/22/07, Dale Fraser <[EMAIL PROTECTED]> wrote:
>
> All CF services are running as Local System
>
> Should they be something else? Administrator?
>
> Regards
> Dale Fraser
>
> http://learncf.com
>
>
> -----Original Message-----
> From: Antony Sideropoulos [mailto:[EMAIL PROTECTED]
> Sent: Friday, 21 September 2007 11:04 PM
> To: CF-Talk
> Subject: Re: Simple .NET Class
>
> Dale
>
> Are you able to connect to standard Windows dlls?
>
> eg, can you run this snippet:
>
> <cfobject type=".NET" name="test" class="System.Environment">
> <cfdump var="#test#">
> <cfdump var="#test.Get_Version().ToString()#"> <!--- 2.0.50727.1318 on
> WinXp
> Sp2 for me; 2.0.50727.312 on vista for me --->
>
> also, what account are your CF services running under? permissions okay?
>
>
> On 9/21/07, Dale Fraser <[EMAIL PROTECTED]> wrote:
> >
> > Having same problem on multiple computers.
> >
> > We must be missing something really obvious I think.
> >
> > It seems not many people have tried this.
> >
> > Regards
> > Dale Fraser
> >
> > http://learncf.com
> >
> > -----Original Message-----
> > From: Davide Campo [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 21 September 2007 1:45 AM
> > To: CF-Talk
> > Subject: Re: Simple .NET Class
> >
> > Then:
> >
> > - i haven't .NET stuff installed (what is it?)
> >
> > - i have only .net 2.0 installed
> >
> > - i tried to stop cf .net service, delete & paste dll, restart cf .net
> > service,
> > execute the sample again ---> guess what? NOTHING, same error
> >
> > only one word: help!
> >
> >
> > tnk u all
> >
> >
> >
> >
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289173
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to