Skip to main content
Participant
April 30, 2009
Question

CF 8 and .NET

  • April 30, 2009
  • 2 replies
  • 508 views

At this point I'm just trying out the CF8 .NET service and I can't get it to find even the base system classes.

<cfscript>
  objEnv = CreateObject("dotnet","System.Environment");  
</cfscript>

The above code fails with the generic java.lang.ClassNotFound exception along with any other class I try to access. The CF .Net service IS running. Can someone point me in the right direction to trouble shoot this please.

Thanks

This topic has been closed for replies.

2 replies

Participant
May 5, 2009

I am running multiple CF8 instances and was missing the dotnet_coreproxy.config file in the Jrun4\servers\{CFinstance}\cfusion.ear\cfusion.war\WEB-INF\cfusion\lib directory

all is well now.

Inspiring
May 1, 2009

I have to admin I haven't done too much in terms of consuming .NET resources in CF, but we used to use a lot of COM objects.  I noticed the documentation had the CreateObject type as ".NET" instead of ".dotnet" - thought maybe that might be causing a problem.  You could also try type of "COM".