I've done many searches and have done the suggestions that I've found, but nothing seems to be working. The most simple C# DLL file that returns a number:
namespace TestClass
{
public class Class1
{
public int tester()
{
return 5;
}
}
}
the coldfusion code:
<cfobject type=".NET" name="myDLL" class="TestClass.Class1" assembly="d:/path/to/dll/TestClass.dll">
All of my attempts have lead me to this error:
Class TestClass.Class12 not found in the specified assembly list.
The assembly that contains the class must be provided to the assembly attribute.
I have no clue where the problem could be. Any help would be greatly appreciated.
Also, the code below does work:
<cfobject type=".NET" name="seClass" class="System.Environment">
<cfoutput>#seClass.Get_Version().ToString()#</cfoutput>
This can be some tricky trial and error to get this right. But the error is referring to an assembly list that is probably a part of the JNBDOtNetSide.exe.config file which can be found in the jnbridge directory (the path to this directory varies depending on how you set up your server).
Within the file you will find a commented out xml node under
<jnibridge>
that looks like this.You can try putting your path there and restarting the service. Other things to try - adding your assembly to the global cache and (last resort) deleting the core proxy jar file that is instnatiated in Web-INF. If you search my blog (coldfusionmuse.com) for ".NET Integration" you will find some additional clues that might get you started. Lot's of trial and error here though in my experience.