PDA

View Full Version : Spring.net + Windows Control Library example


yw_lau
09-22-2007, 03:30 PM
Hi,

Is there any Windows Control Library example which incorporates spring.net IOC ? Specifically, I would like to know if there is any extra steps in creating IApplicationContext in windows control.

I were unable to create IApplicationContext in Windows Control Library with ContextRegistry.GetContext() or new IApplicationContext("assembly://MyAssembly/MyNamespace/MyAppContext.xml")

I had verified both my "App.config" and "MyAppContext.xml" with windows/ console app.

Any help is appreciated !

Bruno Baia
09-24-2007, 10:12 AM
Hi,

Take a look to the Spring.NET Rich Client project by Harald Radi for examples :
http://forum.springframework.net/showthread.php?t=3072

Anyway, basic configuration for Console application should work for windows forms too. Only Web application configuration files are different.
Plz share your configuration file if you want some help.

- Bruno

yw_lau
09-26-2007, 06:11 AM
Hi Bruno,

The problem reported earlier is only happens in VS UserControl TestContainer.
I'm able to run my control in windows form application.

Thanks.

YW Lau