Thanks Vince.

The problem lies in calling a DLL, and you are right it's not my DLL that's
the problem, just any DLL.

This generates the same error, be interested if others try this and see if
it works, it doesn't even require you to install a dll

<cfobject type=".Net" name="myObj"
class="System.DirectoryServices.DirectoryEntry"
assembly="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.DirectoryServ
ices.dll" >
<cfdump var="#myObj#">

Regards
Dale Fraser

http://learncf.com


-----Original Message-----
From: Vince Bonfanti [mailto:[EMAIL PROTECTED] 
Sent: Monday, 24 September 2007 12:55 PM
To: CF-Talk
Subject: Re: CF8 &amp; .NET HELP!!!

I downloaded your DLL and ran it successfully on BlueDragon.NET, including
the following:

    <cfoutput>#math.Add( 2, 2 )#</cfoutput>

This at least tells you that your DLL is built properly, and the problem's
somewhere else.

Vince Bonfanti
New Atlanta Communications, LLC

>Following on from the Simple .NET example. It just doesn't work.
>
> 
>
>I've cooked it so many ways, others are having the same problem.
>
> 
>
>So can some people please try this to see how many people have this
problem.
>
> 
>
>The example was found here.
>
> 
>
>http://www.mikehuntington.com/techblog/index.php/2007/08/10/my-first-attemp
t
>-at-calling-net-assemblies-with-coldfusion-8/
>
> 
>
>C# Code here
>
> 
>
>using System;
>
>using System.Collections.Generic;
>
>using System.Text;
>
> 
>
>namespace MathExample
>
>{
>
>    public class MathClass
>
>    {
>
>        public static int Add(int a, int b)
>
>        {
>
>            return (a + b);
>
>        }
>
>    }
>
>}
>
> 
>
>CF Code here
>
> 
>
><cfobject type=".net" name="math" class="MathExample.MathClass"
>assembly="#expandPath('.\MathClass.dll')#" />
>
><cfdump var="#test#" />
>
> 
>
>DLL available at http://code.fraser.id.au/MathClass.zip in case you can't
>compile C# code.
>
> 
>
>I (and others) get the exception
>
> 
>
>
>ClassName
>
>MathExample.MathClass 
>
>
>Detail
>
>The assembly that contains the class must be provided to the assembly
>attribute. 
>
>
>Message
>
>Class MathExample.MathClass not found in the specified assembly list. 
>
> 
>
>And in my dotnet.log
>
> 
>
>"Error","jrpp-1914","09/24/07","10:57:24",,"Error in retrieving the
>referenced assembly"
>
>"Error","jrpp-1914","09/24/07","10:57:26",,"Aborting proxy generation as no
>classes were found in dependent class list. This might mean that the class
>MathExample.MathClass was not present in the assembly"
>
> 
>
>So someone needs to be able to answer as to why this is happening?
>
> 
>
>Regards
>
>Dale Fraser
>
> 
>
>http://learncf.com 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289264
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