[Opensim-dev] Problem registering region module
Olli Aro
olli_aro at yahoo.co.uk
Fri Mar 9 10:14:53 UTC 2012
Thanks both for your help.
Got it all working in the end with changing by project to .Net framework
3.5.
Regards,
Olli
-----Original Message-----
From: opensim-dev-bounces at lists.berlios.de
[mailto:opensim-dev-bounces at lists.berlios.de] On Behalf Of Justin
Clark-Casey
Sent: 09 March 2012 03:42
To: opensim-dev at lists.berlios.de
Subject: Re: [Opensim-dev] Problem registering region module
At this point you always need to keep the AddinDependency at 0.5 - this
version number is completely separate to the OpenSimulator version number
(confusingly).
On 08/03/12 12:08, Olli Aro wrote:
> It seems to be this line:
>
> [assembly: AddinDependency("OpenSim", "0.7")]
>
> If I keep it as above or remove it completely the dll is ignored. If I
change it to:
>
> [assembly: AddinDependency("OpenSim", "0.5")]
>
> OpenSim does pick it up at start up, but then crashes with:
>
> 12:06:23 - [PLUGINS]: Plugin Loaded: MyModule
>
> 12:06:23 - [APPLICATION]:
>
> APPLICATION EXCEPTION DETECTED: System.UnhandledExceptionEventArgs
>
> Exception: System.BadImageFormatException: Could not load file or
> assembly 'file
>
> :///C:\opensim\bin\MyModule.dll' or one of its dependencies. This a
>
> ssembly is built by a runtime newer than the currently loaded runtime
> and cannot
>
> be loaded.
>
> Which I assume is because it has gone to some kind of OpenSim 0.5 mode and
I have compiled with DLL with 0.7.3 libraries.
>
> Any ideas what might be going wrong here?
>
> Regards,
>
> Olli
>
> *From:*opensim-dev-bounces at lists.berlios.de
> [mailto:opensim-dev-bounces at lists.berlios.de] *On Behalf Of *Dahlia
> Trimble
> *Sent:* 07 March 2012 23:59
> *To:* opensim-dev at lists.berlios.de
> *Subject:* Re: [Opensim-dev] Problem registering region module
>
> Do you have a "using Mono.Addins;" statement and a reference to the
> Mono.Addins dll? That's the only difference I see between yours and a
region module of mine that works.
>
> On Wed, Mar 7, 2012 at 7:31 AM, Olli Aro <olli_aro at yahoo.co.uk
<mailto:olli_aro at yahoo.co.uk>> wrote:
>
> Hi all,
>
> I am migrating my old region modules to the latest OpenSim and have
> problems registering the module with OpenSim. I have added the following
lines in my code:
>
> [assembly: Addin("MyModule", "0.1")]
>
> [assembly: AddinDependency("OpenSim", "0.7")]
>
> .
>
> [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule",
> Id = "MySharedModule")]
>
> public class MyModule : ISharedRegionModule
>
> But when I drop this to OpenSim bin directory and start up OpenSim,
> the module is not picked up. At the moment I have only the following line
in the initialise method:
>
> m_log.Error("[MYMODULE]: hello hello hello");
>
> Any pointers why my module might not be picked up? For example are the
> modules still put into bin/ or now to some other directory?
>
> Regards,
>
> Olli
>
>
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de <mailto:Opensim-dev at lists.berlios.de>
> https://lists.berlios.de/mailman/listinfo/opensim-dev
>
>
>
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
--
Justin Clark-Casey (justincc)
http://justincc.org/blog
http://twitter.com/justincc
_______________________________________________
Opensim-dev mailing list
Opensim-dev at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-dev
More information about the Opensim-dev
mailing list