All Questions
Tagged with castle asp.net-mvc
18 questions
0
votes
0
answers
32
views
ASP.NET 4.6 - Castle Project MVC - Web site problem, sometimes when users request same resource the server swap users responses
Sometime when users access same web site resource they get swapped responses.
What should happen:
User A request: site.com/getOrderList => User A get: User A content data response
User B request: ...
1
vote
2
answers
209
views
Looking for way to pass Windsor lifestyle into a library
We have a web api project which references a library that in turn is shared between many different systems.
The library exposes a "RegisterDependancies(IWindsorContainer container)" function that ...
0
votes
2
answers
1k
views
Could not convert string 'Log4netFactory' to a type
I recently updated ABP packages in my project with this line of code in NuGet console:
ForEach($project in get-project -all) {
ForEach($package in Get-Package -ProjectName $project.ProjectName | ?{ ...
2
votes
1
answer
2k
views
Castle Windsor Multiple Implementation For Same Inteface in MVC
If I have multiple implementations of the same interface eg: IRule, how would I be able to resolve it in my controller?
private readonly IRule[] _rules;
public HomeController(IRule[] rules)
{
...
1
vote
1
answer
864
views
How to avoid Service locator / Implement Service locator with CastleWindsor in ASP.NET MVC
I'm using CastleWindsor as my dependency injection framework and it all works well when you're in a Controller, because we can make use of constructor injection with the controllerfactory.
But there ...
2
votes
1
answer
579
views
windsor nHibernate ISession
I have a MVC5 application and set my hibernate stuff up like that:
public class PersistenceInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfigurationStore ...
0
votes
0
answers
580
views
Specify the instance of a PerWebRequest component at runtime in castle windsor
I currently work in a asp.net MVC Web Api project using castle 3.1.
I registered a component with a lifestyle 'PerWebRequest'.
I would like to manually tell castle which instance to use instead of ...
0
votes
2
answers
822
views
Can't instantiate Controller with Castle using webapi as well
I'm working in a project that uses both ApiControllers and Controllers (not webapi) with Castle (from Nuget)
internal class WebWindsorInstaller : IWindsorInstaller
{
public void Install(...
0
votes
2
answers
275
views
JavaScript in C# ASP MVC issue
We have a web project that takes data from an MS SQL database and uses the Google Visualisation API to display these charts on the web view.
Recently we have added castle windsor so we can configure ...
0
votes
1
answer
320
views
WCF Castle Client Proxy leaving Channel Open
I am using Castle WCF Facility to initialise a client proxy using the following configuration:
<component
id="ComponentID"
type="SomeType, SomeType"
wcfEndpointConfiguration="WCFConfig"
...
3
votes
1
answer
1k
views
ASP.NET MVC JSON over Fluent Nhibernate Model
I am trying to return JsonResult using MVC controller standard Json(object) method. My object of type Model1 is built by Fluent NHibernate.
Model1 has property of type Model2. In debug mode I see ...
0
votes
2
answers
596
views
ASP MVC + Castle + nHibernate how to connect?
What is the best way to connect asp mvc + castle windsor + nhibernate?
I have repository which is injected into my controller constructor.
Is this a good and correct way of doing this :
Component....
0
votes
1
answer
119
views
asp.net mvc test project cannot find windsor file
Hi there Im using windsor as a DI container,
my code is below
public static class ContainerBuilder
{
public static IWindsorContainer Build()
{
var container = new ...
0
votes
1
answer
467
views
architectural question asp.net mvc, nhibernate, castle
I have implemented a service which uses a DAOFactory and a NHibernate Helper for the sessions and transactions. The following code is very much simplified:
public interface IService
{
IList<...
1
vote
1
answer
384
views
ASP.Net MVC 2.0 Client Validation with Castle Validators
Im trying to implement a client and server validation for my webapplication using castle valitors.Has anyone got any examples of how to use Castle Validators with ASP.net mvc v2 Client validation.
11
votes
6
answers
3k
views
Using MVC and fluent Nhibernate, how do I validate unique fields on my ViewModel before I bind them to my Domain Object and Save them?
I have a website where I allow users to create new Part records. I'm trying to figure out the best way to validate specific fields for uniqueness. I want to make sure that somebody doesn't try to ...
2
votes
2
answers
284
views
CastleWindsor filling the class fields too
I am a beginner using castle windsor; and kinda introduced to it with Apress Pro Mvc book. In the project that I am working at; I use castlewindsor controller factory instead of mvc controller factory;...
4
votes
2
answers
875
views
Is there an equivalent to Monorail view components for the ASP.Net MVC Framework?
I make heavy use of View Components in some of the larger applications I've built in Monorail - What is the equivalent approach in ASP.Net MVC for a view component, that can support sections etc.?