Re: .NET DLL driving me nuts....
We've decided to pursue another solution as the CF/.NET integrations proves to be too time consuming. Thanks for you answers. You'll need to restart CF and the .NET service. Dave Watts, CTO, Fig Leaf Software Sent from my Droid On Sep 21, 2010 3:30 AM, Michael Christensen mich...@strib.dk wrote: We were able to determine, that the calls to sample functions that don't work on our development server, does in fact work on our pre-production server. So far so good I guess, but now I am facing a new problem - it seems that CF caches the functions in the DLLs, so that it doesn't reflect the changes when I change a function and (re)call it. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337305 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: .NET DLL driving me nuts....
We were able to determine, that the calls to sample functions that don't work on our development server, does in fact work on our pre-production server. So far so good I guess, but now I am facing a new problem - it seems that CF caches the functions in the DLLs, so that it doesn't reflect the changes when I change a function and (re)call it. Can you elaborate on goes awry ie What is the actual error message? Example: cfset obj = createObject(.net, MyLibrary.TestClass, ExpandPath('. /MyLibrary.dll')) / cfset result = obj.getValue(Foo) / cfoutput#result#/cfoutput TestClass.cs = using System; using System.Collections.Generic; using System.Text; namespace MyLibrary { public class TestClass { public string getValue(string Value) { return You entered: + Value; } } } ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337251 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: .NET DLL driving me nuts....
You'll need to restart CF and the .NET service. Dave Watts, CTO, Fig Leaf Software Sent from my Droid On Sep 21, 2010 3:30 AM, Michael Christensen mich...@strib.dk wrote: We were able to determine, that the calls to sample functions that don't work on our development server, does in fact work on our pre-production server. So far so good I guess, but now I am facing a new problem - it seems that CF caches the functions in the DLLs, so that it doesn't reflect the changes when I change a function and (re)call it. Can you elaborate on goes awry ie What is the actual error message? Example: cfset obj = createObject(.net, MyLibrary.TestClass, ExpandPath('. /MyLibrary.dll')) / cfset result = obj.getValue(Foo) / cfoutput#result#/cfoutput TestClass.cs = using System; using System.Collections.Generic; using System.Text; namespace MyLibrary { public class TestClass { public string getValue(string Value) { return You entered: + Value; } } } ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337261 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: .NET DLL driving me nuts....
Are you using a 32 bit or 64bit ColdFusion version, and how are you compiling this in the VS IDE? Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Michael Christensen [mailto:mich...@strib.dk] Sent: Monday, 20 September 2010 5:48 PM To: cf-talk Subject: .NET DLL driving me nuts Could anyone provide a working example of; 1) a working C# DLL file (the source obviously) that returns a string (just make it really, really simple) 2) a cfml that uses said DLL file and outputs the returned string I'm about at the end of my wits on this one... ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337227 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: .NET DLL driving me nuts....
The thing is, that I can initiate the object, but as soon as I call any methods on it, everything goes awry. Are you using a 32 bit or 64bit ColdFusion version, and how are you compiling this in the VS IDE? Regards, Andrew Scott http://www.andyscott.id.au/ Could anyone provide a working example of; 1) a working C# DLL file (the source obviously) that returns a string (just make it really, really simple) 2) a cfml that uses said DLL file and outputs the returned string I'm about at the end of my wits on this one... ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337228 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: .NET DLL driving me nuts....
Can you elaborate on goes awry ie What is the actual error message? Example: cfset obj = createObject(.net, MyLibrary.TestClass, ExpandPath('./MyLibrary.dll')) / cfset result = obj.getValue(Foo) / cfoutput#result#/cfoutput TestClass.cs = using System; using System.Collections.Generic; using System.Text; namespace MyLibrary { public class TestClass { public string getValue(string Value) { return You entered: + Value; } } } ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337230 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm