Skip to main content
May 18, 2010
Question

CF8 .NET Assembly integration issue.

  • May 18, 2010
  • 1 reply
  • 1292 views

Hello,

I am having an issue with a .Net Assembly called Zoom.Net.dll (a z39.50 .net assembly), the dll is in the

path \coldfusion8\wwwroot\WEB-INF\cfclasses\dotNetProxy\ when I try to instanciate the assembly using

<cfobject type=".NET" class= "Zoom.Net" name="zoomInstance" assembly="Zoom.Net.dll">

I get the following Error:

Class Zoom.Net not found in the specified assembly list. The assembly that contains the class must be provided to the assembly attribute.

I can get System.IO.Directory assembly to work just fine. Have cycled the .Net service, and now at a loss. If I open the .dll in vs.net I see this, so I know it is a valid .net assembly (ignore the H:\ path stuff it is in \dotNetProxy cf dir)

Assembly Zoom.Net Member of Custom Component Set H:\My Z3950\Zoom.Net-1.0.2400.win32.Net2.0.50727\Zoom.Net-1.0.2400.win32.Net2.0.50727\bin\Release\Zoom.Net.dll

Attributes: [System.Reflection.AssemblyDelaySignAttribute(false), System.Runtime.CompilerServices.RuntimeCompatibilityAttribute, System.Reflection.AssemblyKeyNameAttribute(""), System.Reflection.AssemblyKeyFileAttribute(""), System.Reflection.AssemblyTrademarkAttribute(""), System.Reflection.AssemblyCopyrightAttribute("©2005 All Rights Reserved, please see LICENSE.Zoom.Net"), System.Reflection.AssemblyProductAttribute("Zoom.Net"), System.Reflection.AssemblyCompanyAttribute("Talis PLC"), System.Reflection.AssemblyConfigurationAttribute(""), System.Reflection.AssemblyDescriptionAttribute("Zoom.Net provides the interfaces, enums and exceptions for .Net implementations of the Zoom.Net specification"), System.Reflection.AssemblyTitleAttribute("Zoom.Net"), System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)]

What do next ? Could this be a .NET vs Coldfusion .NET service version issue ?  Kinda at a loss.

Thanks for any insight.

Thanks, Bob Bell

    This topic has been closed for replies.

    1 reply

    May 18, 2010

    Opps..  Zoom.Net is a namespace not a class, using one of the classes in namespace works

    just fine.   Whoo Hooo !!   Watch out z39.50 in coldfusion here I come, libraries be warned...

    May 18, 2010

    Ok, this is driving me bonkers.   I am attempting to use the Zoom.net project

    dlls to access the .net classes in coldfusion 8, and it is not going so well. 

    http://sourceforge.net/projects/zoomdotnet/

    I can get the cfobject create to work, dump the object and see all the methods,

    but I cannot call the get_ or set_ methods.   I keep getting the following error:

    The Set_xxxxxxxxx method was not found.

    Either there are no methods with the specified method name and argument types, or the Set_QueryString method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that matched the provided arguments. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity.

    So, I embark upon look at what my cf server thinks is there with:

    <cffunction name="GetDotNetVersion" returntype="string">
        <cfset var seClass="">
        <cfobject type=".NET" name="seClass" class="System.Environment">
        <cfreturn seClass.Get_Version().ToString()>
    </cffunction>

    I get:


    function GetDotNetVersion
    Arguments:none
    ReturnType:string
    Roles:
    Access:public
    Output:
    DisplayName:
    Hint:
    Description:

    Any advice appreciated.  A working Zoom.net call using

    coldfusion with  z39.50 query would even be better..