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-attempt
>-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 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

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

Reply via email to