Re: Using windsor with a service in ASP.net App_Code

2016-05-16 Thread hammett
It's been a long time since I did any asp.net... But AFAIK the app_code is for code supposed to be used by view code, so kinda of ephemeral in a way (although the official guideline dont state this https://msdn.microsoft.com/en-us/library/ex526337.aspx). What you have is a domain type, that gets

Re: Using windsor with a service in ASP.net App_Code

2016-05-16 Thread John Strzempa
Reading that any change in App_Code, bin, or web.config will force an app recycle. The weird thing is that when I change the web.config and it recompiles I don't get the error. When I change any App_Code file, I get the error until I re-save windor.config, or if I change the App_Code file the

Re: Using windsor with a service in ASP.net App_Code

2016-05-16 Thread John Strzempa
I don't think that's true. Adding something to the bin folder, recompiles the site just like changing something in App_Code. The site spins for a few seconds as it recompiles. When I change the config file and save it, there is no pause when I visit the site. Plus, if I change the config file

Re: Using windsor with a service in ASP.net App_Code

2016-05-16 Thread hammett
Changing the config or anything in the bin folder, restarts the app. That's why it works. On Mon, May 16, 2016 at 11:11 AM, John Strzempa wrote: > It probably doesn't force the app-pool to recycle but then why does it work > when I re-save the .config file? > > On Friday,

Re: Using windsor with a service in ASP.net App_Code

2016-05-16 Thread John Strzempa
It probably doesn't force the app-pool to recycle but then why does it work when I re-save the .config file? On Friday, May 13, 2016 at 2:28:01 PM UTC-5, hammett wrote: > > Does the recompilation force a recycle of the appdomain? given the > error you posted, looks like it doesnt, hence the

Re: Using windsor with a service in ASP.net App_Code

2016-05-13 Thread hammett
Does the recompilation force a recycle of the appdomain? given the error you posted, looks like it doesnt, hence the problem. On Fri, May 13, 2016 at 4:25 PM, John Strzempa wrote: > I'm working on a site that is an ASP.net webforms site and I have my service > code in