PDA

View Full Version : Spring.NET 1.1 RC_2 on Mono 1.2.5 Examples don't work


bellmann29
10-16-2007, 11:29 PM
Hi all,

today i give Spring.NET a try. But the examples don't run.
I tried the famous "MovieFinder" example, the 2005_sln.
1. Logging does not work, I only see "Hit return ....", so i put a "Console.WriteLine" in the "catch-Block"
2. the message was: The context name passed to the GetContext method cannot be null or empty.
3. i tried the following: IApplicationContext ctx = ContextRegistry.GetContext("spring/objects"), seems a little better but then i got the following message: Object reference not set to an instance of an object
4. next i tried this, as i read in an thread in this forum: IApplicationContext ctx = ConfigurationSettings.GetConfig("spring/objects") as IApplicationContext; but this is obsolete, i got the following from the compiler : [Task:File=/home/joerg/downloads/Spring.NET-RC2/Spring.NET-1.1-RC2/examples/Spring/Spring.IoCQuickStart.MovieFinder/src/MovieFinder/Program.cs, Line=63, Column=81, Type=Warning, Priority=Normal, Description=`This method is obsolete, it has been replaced by System.Configuration!System.Configuration.Configur ationManager.GetSection'(CS0618: `System.Configuration.ConfigurationSettings.GetCon fig(string)' is obsolete)],
but when i try to use this class "ConfigurationManager" there is no such class a mentioned in the compilermessage


My System: OpenSUSE 10.3, Mono 1.2.5, MonoDevelop 0.15

I didn't change anything in the solution (References, Resources), only the CodeLine for creating ApplicationContext as shown above.

Can anyone help?

Thanks
Joerg

Mark Pollack
10-17-2007, 12:20 AM
Hi,

I don't have an answer, but all I can add at this point is that I do know that people have gotten the examples and spring.net working on mono before. The example apps do work out of the box using standard .net on windows as that is something I test before the release. Lets wait and see if someone else has a quick answer before investigating futher...

Cheers,
Mark