ColdFusion .Net class not found -
when running following code:
<cfobject type=".net" name="test" class="gocardlesssdk.gocardless" assembly="#expandpath("../gocardlesssdk.dll")#"> <cfdump var="#test#">
i receive error:
the assembly contains class must provided assembly attribute. message class gocardlesssdk.gocardless not found in specified assembly list.
the c# code class trying call show here.
things have done:
- checked correct version of .net (3.5) installed dll targeting
- checked coldfusion .net service running
- check namespace class (i think doing bit correctly happily corrected)
i have tried following code:
<cfobject type=".net" name="proc" class="system.diagnostics.process"> <cfdump var="#proc#">
which did work expected @ least shows .net service running.
any overcome appreciated. thanks!
problem solved. needed included supporting dlls:
<cfobject type=".net" name="gocardless" class="gocardlesssdk.gocardless" assembly="#expandpath("../gocardlesssdk.dll")#,#expandpath("../newtonsoft.json.dll")#,#expandpath("../restsharp.dll")#">
Comments
Post a Comment