Questions tagged [spring.net]

Spring.NET is an open source application framework for developing .NET enterprise applications.

Spring.NET is an open source application framework for developing .NET enterprise applications, inspired by the popular Spring for Java. It provides infrastructural support to make best practices easy practices. Spring.NET consists of several modules, most notably:

For information on additional modules and other background information, see the overview page on the Spring.NET website. Technical documentation is also available on this site.

Related tags

632 questions
0
votes
2 answers

Spring.Net \ DI \ How to read system environment variable

In my dependency injection configuration file - I don't know (and can't find an example) on how to set into a member some predefined environment variable file. Can't tell how to do it in Spring.Net - your help will be appreciated.
user1025852
  • 2,684
  • 11
  • 36
  • 58
0
votes
2 answers

Spring.net + Nhibernate Integration Tests Pass When They Should Not

I'm using Spring.net with NHiberante (HibernateTemplate) to implement my DAO's. I also have some integration tests, that extend from 'AbstractTransactionalDbProviderSpringContextTests '. DI is working fine, and all test pass BUT sometimes they pass…
Pablo Fernandez
  • 103,170
  • 56
  • 192
  • 232
0
votes
1 answer

Spring.Net Cannot instantiate a class

error :: Cannot instantiate a class that does not have a no-argument constructor [ClassLibrary2.Class1]. I created a test project. i got the error source in Spring src. ////////////// ConstructorInfo constructor =…
user1682718
  • 47
  • 1
  • 8
0
votes
1 answer

Spring.NET - using ContextRegistry.GetContext is not advised?

I'm building an MVC 3 site, and want to use Spring to provide run-time injection of my web service adapters, so that I can stub in mock service calls instead of calling the real deal. var ctx = ContextRegistry.GetContext(); var serviceAdapter =…
Duncan
  • 10,218
  • 14
  • 64
  • 96
0
votes
1 answer

Dependency injection failed to inject for second service contract

We are having problem with Spring.Net Dependency Injection when we added a second service contract. Here's the setup: One WCF project with two Service Contract (SVC file) Service1 and Service2 Here's the Web.config
Jun Zheng
  • 677
  • 1
  • 15
  • 31
0
votes
2 answers

How to create and manage two separate session factory with Spring.net and NHibernate?

My application is interacting with two separate database. I want to inject session factory with spring.net as usually. when I am creating 2 session factory with two separate dbProviders , it is showing error. Is there any way to accomplish this…
Kavi
  • 176
  • 1
  • 12
0
votes
1 answer

Configure Spring.Web.Services.WebServiceProxyFactory for SOAP MTOM

I create proxy object for WCF servise with Spring.NEt frwm - Spring.Web.Services.WebServiceProxyFactory. WCF service use SOAP MTOM. Configuration is here:
whyme
  • 51
  • 3
  • 9
0
votes
2 answers

Spring.NET - Application Context - Create Object - Shared Instance

I'm using Spring.NET to create my Command objects (with attached Advice) and run these in an MVC web application. However I observed that the object I get back from IApplicationContext ctx = ContextRegistry.GetContext(); MyObject obj = (MyObject)…
Duncan
  • 10,218
  • 14
  • 64
  • 96
0
votes
1 answer

Can springframework.net be used in a windows mobile applciation?

Can springframework.net be used in developing windows mobile applications? (Mainly the AOP and IoC bits)
leeand00
  • 25,510
  • 39
  • 140
  • 297
0
votes
1 answer

How do I instantiate a string array object into a Spring.Net container?

What I'm getting at, logically, is something like this: foo bar Any ideas?
theiterator
  • 335
  • 5
  • 12
0
votes
1 answer

ASP.net MVC3 & Spring.net

What is practical difference between ASP.net MVC3 & Spring.Net. What would you suggest to use for a new application. Does Spring.net is actively developed and supported? And whether both are compatible with each other and can be used together? Any…
Krunal
  • 2,967
  • 8
  • 45
  • 101
0
votes
1 answer

How do inject a property with Spring Framework .NET on a web service?

I have a web service with a property that I would like injected by Spring Framework .NET. There is no error message, and yet no injecting. What am I doing wrong? Here is what I have for the xml file:
Greg Finzer
  • 6,714
  • 21
  • 80
  • 125
0
votes
2 answers

Hosted WCF Service Hangs after the weekend

We have a WCF service hosted in a windows service which hangs after long periods of inactivity: ie after the weekend. This behavior happens at different locations. The service uses WSHttpBinding which is set to use transport security a Custom…
tomasat
  • 578
  • 8
  • 11
0
votes
0 answers

Spring.NET creates new MvcApplicationContext for each hit when using ASP.NET MVC 4

I've been playing with Spring.NET 2.0.0M1's support for ASP.NET MVC4. While promising, I think I've run into a critical issue: a new MvcApplicationContext is created for each hit (when using MVC4's WebApi). While I believe the purpose of this is to…
TTar
  • 905
  • 1
  • 8
  • 12
0
votes
1 answer

Configuration Spring.Http.Client.WebClientHttpRequestFactory

I'm creating an application to post files on Dropbox service with spring-net-social-dropbox library. Is it possible to change/configure properties of WebClientHttpRequestFactory class? I'd like to change Timeout property.
Alexey
  • 1,826
  • 3
  • 17
  • 20