p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 4.5 : in C# and VB (http://p2p.wrox.com/forumdisplay.php?f=710)
-   -   Ch 18-19 Exception Handling & Deployment (http://p2p.wrox.com/showthread.php?t=93617)

AlanWheeler September 24th, 2014 02:17 PM

Ch 18-19 Exception Handling & Deployment
Hi Imar,

It's been a while. Asking this question in this forum instead of your newer forum since I used the 4.5 book.

Does what was taught in Ch 18-19 apply to MVC Web Application Projects? I didn't find much treatment of these topics in the MVC books I've read so far. Then it occurred to me that I probably learned what I needed to know in your book. Assuming what was taught in this book does apply, does it apply in detail/substance, or do I have to modify what was taught?

Thought you might comment on this for me.


Best Regards,

Imar September 24th, 2014 03:44 PM

Hi Alan,

Yes, things like configuration settings, web deploy, config transformations and error handling all apply to MVC as well.

Is there any topic in particular you wanted to validate?


AlanWheeler September 24th, 2014 06:10 PM

Hi Imar,

The default MVC 5 template sets things up very nicely and takes care of a lot of details like bundling/minimization, user data and authorization, etc. But it doesn't do everything, and obviously can't set configurations for a specific context. So I was trying to make checklist of what needs to be configured just to get the basic site up before I start 'filling it in'.

In response to your post, I guess the topic I'm interested in is making sure I have a checklist to go from the template to a production site. Here's what I came up with:

  Install ELMAH to the project

  In web.config:
  <customErrors> to handle unhandled exceptions
  <mailSettings> to send exception notification & general messaging
  <sectionGroup name="elmah"> to record exceptions
  <connectionStrings> to change the database connections for production

  Run SQL scripts on hosting server to create databases and transfer necessary data (not much)
  Setup the website publishing dialogue in Visual Studio
  Other assorted details like tracing off, etc.

That was my first take after reviewing your book's Ch 18-19. I was concerned that maybe I missed something in the 'more advanced' books, but it just wasn't there, so that's why I came back to the 'beginning' book, which in this case is actually more 'advanced'. [:)]

If you have any comments or suggestions they are most welcome.

Best Regards,

Imar September 27th, 2014 09:20 AM

The parts that deal with global configuration (through appSettings) could be added to that list as well.



All times are GMT -4. The time now is 07:19 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.