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
5
votes
1 answer

Catching runtime exceptions in IoC container

I'm using Spring.NET with Caliburn 2 and getting some exceptions from these frameworks at runtime (e.g. NoSuchObjectDefinitionException and UnsatisfiedDependencyException in Spring.NET, NullReferenceException in Caliburn). These exceptions are being…
Nick W.
  • 1,050
  • 2
  • 9
  • 21
5
votes
3 answers

ASP.NET MVC and Spring.NET

Starting a new project and would like to use one of the MVC framworks. ASP.NET MVC is still in preview but Spring.net is in production and has a history with Java. I'd like to know the general lowdown between the two. Current questions.. What are…
jason saldo
  • 9,804
  • 5
  • 34
  • 41
5
votes
1 answer

Spring.net with NHibernate and the "No Hibernate Session bound to thread error"

I am attempting to use spring.net and nihibernate for my data layer. I have a simple DAO object that includes the following code: [Transaction] public long Save(Request entity) { return (long)CurrentSession.Save(entity); } Whenever this code…
iasksillyquestions
  • 5,558
  • 12
  • 53
  • 75
5
votes
2 answers

feeding dependencies to a factory class via IoC?

I have a factory class that decides which of four available subclasses it should instantiate and return. As you would expect, all subclasses implement the same interface: public static class FooFactory{ public IFoo CreateFoo(FooEnum enum){ …
Mitch A
  • 2,050
  • 1
  • 21
  • 41
5
votes
3 answers

Replace Spring.Net IoC with another Container (e.g. Ninject)

I'm curious to know if it's possible to replace Spring.Net's built-in IoC container with Ninject. We use Ninject on my team for IoC in our other projects so I would like to continue using that container if possible. Is this possible? Has anyone…
5
votes
2 answers

Injecting dependency into MVC controller with Spring .NET

The object in the controller is not getting injected at run time. Web.config:
Jun Zheng
  • 677
  • 1
  • 15
  • 31
5
votes
1 answer

Unable to open database (sqlite) in asp.net mvc3 app using spring.net

I am writing an asp.net mvc3 web application. I want to use a sqlite database. Unfortunatly I get an SqliteException saying "unable to open database". Spring-Version: 1.3.2 NHibernate-Version: 3.2 DbProvider/Connectionstring:
Tobias
  • 2,945
  • 5
  • 41
  • 59
4
votes
1 answer

Spring.NET - Object reference not set to an instance of an object

I am new in .NET. I have used Spring Framework and Hibernate before in Java, but this is my first in .NET. To develop my application I am using Spring.Northwind solution as example. The hibernate mapping is:
Tapas Bose
  • 28,796
  • 74
  • 215
  • 331
4
votes
6 answers

Why am I getting an exception raised from Spring.NET on the call to ContextRegistry.GetContext()?

Even though the solution is so obvious I should have never have posted this, I'm leaving it up as a reminder and a useful point of reference to others. I've got the following in my app.config file:
ChrisF
  • 134,786
  • 31
  • 255
  • 325
4
votes
2 answers

Can we create a WCF service which publishes events?

I want to create a push web application. The service layer is built on WCF. The presentation layer is built on Asp.net 4 The service listens to events and updates its static property (a shared collection list) from the data layer. I am polling in my…
InfoLearner
  • 14,952
  • 20
  • 76
  • 124
4
votes
1 answer

Configure an Envers RevisionListener via DI

To add an audit trail to our application we decided to use NHibernate.Envers. To allow app specific tracking of revisions, the DefaultRevisionEntity was extended with user specific data. public virtual void NewRevision( object revisionEntity ) { …
Andreas
  • 5,251
  • 30
  • 43
4
votes
2 answers

How can I spring.net inject in to methods?

I posted to following on the spring.net forum but also hoped I may get some value views here: I am looking at some advice as to how I might achieve the following requirement. Firstly some background - I am using Spring.NET to achieve IOC depdenecny…
amateur
  • 43,371
  • 65
  • 192
  • 320
4
votes
3 answers

Weird error: [ArgumentOutOfRangeException: 'count' must be non-negative

I have a site which runs in ASP.NET 3.5, NHibernate 2.2 and Sprint .NET for Dependency Injection. On our test server a rather strange error occurrs, and also almost everytime there are multiple users online. After the problem has occurred, this…
Mattias
  • 684
  • 3
  • 7
  • 16
4
votes
2 answers

is spring.net being actively maintained/developed/documented?

In the course of evaluating .net IoC frameworks, I gave spring.net a try first, seeing as how much I liked spring in java. However, I'm rapidly getting the feeling that it is a stale/stalled/dead project. The forums have almost no activity; the…
balazs
  • 520
  • 4
  • 16
4
votes
1 answer

How to schedule a job in Quartz that repeats forever?

Is it possible to repeat a job in Quartz forever in a serial way? Now, if I don't set RepeatInterval I get an error saying that RepeatInterval cannot be zero. Is it possible to configure this using Spring.NET? What I have now is this:
Lieven Cardoen
  • 25,140
  • 52
  • 153
  • 244
1 2
3
42 43