[Official Thread] RFXCOM Plugin Support Thread

Message
Author
Automate
Posts: 1691
Joined: Sat Dec 11, 2010 1:44 pm
Location: US

Re: [Official Thread] RFXCOM Plugin Support Thread

#91 Post by Automate » Tue Nov 12, 2013 9:06 am

One of the References in the RFXCOM project is OSAE.API. When you compile your plugin it needs to compile against a version of OSAE.API that is compatible with the version you are running. Probably the easiest way to resolve this is to point the Reference in the RFXCOM plugin project to c:\Program Files\OSA\OSAE.API.dll

Make sense?

amz4u2nv
Posts: 115
Joined: Mon Sep 03, 2012 3:12 am

Re: [Official Thread] RFXCOM Plugin Support Thread

#92 Post by amz4u2nv » Tue Nov 12, 2013 9:35 am

Yup makes sense, but I've done that, as without it wouldn't compile. But it does seem like an issue with dependency

Automate
Posts: 1691
Joined: Sat Dec 11, 2010 1:44 pm
Location: US

Re: [Official Thread] RFXCOM Plugin Support Thread

#93 Post by Automate » Sat Nov 23, 2013 11:53 am

Can you post the code and I will see if compiles and the plugin loads for me?

amz4u2nv
Posts: 115
Joined: Mon Sep 03, 2012 3:12 am

Re: [Official Thread] RFXCOM Plugin Support Thread

#94 Post by amz4u2nv » Wed Nov 27, 2013 3:19 am

Hi Automate,
Thanks for helping me out..
I've attached the source code. this compiles ok for me, and the dll file is also attached, which I copy and paste into the plugin directory.
Any help, much appreciated.

Cheers
Attachments
RFXCOM.zip
dll file
(18.94 KiB) Downloaded 55 times
RFXCOM2.txt
sourcecode.
(227.19 KiB) Downloaded 63 times

Automate
Posts: 1691
Joined: Sat Dec 11, 2010 1:44 pm
Location: US

Re: [Official Thread] RFXCOM Plugin Support Thread

#95 Post by Automate » Wed Nov 27, 2013 4:06 am

Try this one
Attachments
OSAE.RFXCOM.dll.zip
(18.98 KiB) Downloaded 54 times

amz4u2nv
Posts: 115
Joined: Mon Sep 03, 2012 3:12 am

Re: [Official Thread] RFXCOM Plugin Support Thread

#96 Post by amz4u2nv » Wed Nov 27, 2013 8:42 am

Hi,
Tried that dll file but got the following errors -

11/27/2013 04:40:24.916 PM - checked: RFXCOM
11/27/2013 04:40:24.922 PM - Sending message: ENABLEPLUGIN|RFXCOM|True
11/27/2013 04:40:24.954 PM - Error messaging host: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
11/27/2013 04:40:29.238 PM - Error messaging host: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
11/27/2013 04:40:59.252 PM - Error messaging host: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.

amz4u2nv
Posts: 115
Joined: Mon Sep 03, 2012 3:12 am

Re: [Official Thread] RFXCOM Plugin Support Thread

#97 Post by amz4u2nv » Wed Nov 27, 2013 8:51 am

some more info -
11/27/2013 04:47:49.362 PM - DLL Found while loading Plugins:C:\Program Files\OSA\\Plugins\RFXCOM\OSAE.RFXCOM.dll
11/27/2013 04:47:49.385 PM - Found a not .NET assembly:C:\Program Files\OSA\\Plugins\RFXCOM\OSAE.RFXCOM.dll
11/27/2013 04:47:49.392 PM - DLL Found while loading Plugins:C:\Program Files\OSA\\Plugins\Script Processor\OSAE.ScriptProcessor.dll
11/27/2013 04:47:49.402 PM - Exposed Type: OSAE.ScriptProcessor.ScriptProcessor
11/27/2013 04:47:49.409 PM - DLL Found while loading Plugins:C:\Program Files\OSA\\Plugins\Speech\OSAE.Speech.dll
11/27/2013 04:47:49.417 PM - Exposed Type: OSAE.Speech.SPEECH

Automate
Posts: 1691
Joined: Sat Dec 11, 2010 1:44 pm
Location: US

Re: [Official Thread] RFXCOM Plugin Support Thread

#98 Post by Automate » Wed Nov 27, 2013 9:06 am

The plugin loads on my computer.

What version of OSA Service and OSA API DLL are you using? Compiled from latest source or from the OSA 0.4.3 install?

amz4u2nv
Posts: 115
Joined: Mon Sep 03, 2012 3:12 am

Re: [Official Thread] RFXCOM Plugin Support Thread

#99 Post by amz4u2nv » Wed Nov 27, 2013 9:14 am

found this in the plugin finder cs..
foreach (var file in Directory.GetFiles(Common.ApiPath + "\\" + PluginPath, "*.dll", SearchOption.AllDirectories))

{

+ Logging.GetLogger("Plugin Loader").AddToLog("DLL Found while loading Plugins:" + file, false);

+

try

{

var assembly = Assembly.LoadFrom(file);



foreach (var type in assembly.GetExportedTypes())

{

+ Logging.GetLogger("Plugin Loader").AddToLog("Exposed Type: " + type, false);

+

if (!type.Equals(_pluginBaseType) &&

_pluginBaseType.IsAssignableFrom(type))

{

@@ -73,7 +77,8 @@ public IEnumerable<TypeLocator> Find()

}

catch (Exception)

{

- // Ignore DLLs that are not .NET assemblies.

+ // This method is called in its own App Domain so will not have access to the calling logger

+ Logging.GetLogger("Plugin Loader").AddToLog("Found a not .NET assembly:" + file, false);

}

But i have no idea what it means..


file version of osa api dll - 1.0.1.0
osa service 0.4.0.0
installed from OSA 0.4.3 install

Automate
Posts: 1691
Joined: Sat Dec 11, 2010 1:44 pm
Location: US

Re: [Official Thread] RFXCOM Plugin Support Thread

#100 Post by Automate » Wed Nov 27, 2013 9:48 am

amz4u2nv wrote:file version of osa api dll - 1.0.1.0
osa service 0.4.0.0
installed from OSA 0.4.3 install
That's an issue we have. The files have not been properly versioned so it's impossible to know what code they were compiled from.

Post Reply