I've got a few websites in classic ASP, and a bunch I did in webforms/vb.net. I decided it was time for me to try MVC and figured I should go ahead and learn C# at the same time.
Unfortunately, these aren't small systems that can be easily moved to new platforms. Some of them have hundreds of pages and a few hours outage could cost millions of dollars.
It has been EXCELLENT. I had all the ASP code separated with values passed down to the primary page. However, I have some questions about stability.
WebApi appears to be all one "program". I've already had several times where something worked on my dev box, then when I published it, everything went to crap. (dependancies, etc...)
When I started my testing with the API model, it was before WebApi even existed. I was using generic handlers (ashx) to produce Json for my ajax calls.
What I like about the handler thing is that, if you have 100 pages, and you put in a dumb fix on some little sub-page, publish it, then nobody is really effected except people who are trying to load that page. Even better, the result, if you're using ajax, is that it won't populate the page. No evil bad error.
I'd like to know if perhaps I'm doing something wrong with my WebApi. If I publish a controller with a bug, will the entire site crap out? These are internal ERP systems, so if the part where the warehouse picks products goes down, I have hundreds of people just standing around. Obviously, that will have to be tested and QA'd carefully. I've got other parts where the CIO does analysis on sales of certain products, sometimes calling for modifications in real time. Sometimes the page is jacked up or whatever, he doesn't care and it doesn't affect business.
So, if a failure in a controller to compile is going to blow the entire site, I'm going to have to make a couple CORS data servers on the same box. Maybe one for each module. --yuck.
Do the entire thing in Generic Handlers.... which would be easy, but ... yuck.
Is there a way that the WebAPI controllers can be run somewhat independantly?
Am I just a complete Nubie (which I am) and somehow I've configured this new toy incorrectly and it will be perfectly find to have a bug in one controller while the others run along perfectly
I hope it's the latter, but if not, I'd love some recommendations!