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: [email protected] [mailto:[email protected]] On Behalf Of Justin Clark-Casey Sent: 09 March 2012 03:42 To: [email protected] 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:*[email protected] > [mailto:[email protected]] *On Behalf Of *Dahlia > Trimble > *Sent:* 07 March 2012 23:59 > *To:* [email protected] > *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 <[email protected] <mailto:[email protected]>> 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 > [email protected] <mailto:[email protected]> > https://lists.berlios.de/mailman/listinfo/opensim-dev > > > > _______________________________________________ > Opensim-dev mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/opensim-dev -- Justin Clark-Casey (justincc) http://justincc.org/blog http://twitter.com/justincc _______________________________________________ Opensim-dev mailing list [email protected] https://lists.berlios.de/mailman/listinfo/opensim-dev _______________________________________________ Opensim-dev mailing list [email protected] https://lists.berlios.de/mailman/listinfo/opensim-dev
