First Web site ported over to ASP.NET MVC 2
On Saturday (when I'm actually writing this, but I can't have 3 posts on one day, after my posting history the last handful of months) I finally ported a Web site over to ASP.NET MVC.
The existing Web site was for a client who just needs a simple, static, Web site, with a half dozen areas for content. However, if they were given the ability to directly post content to the site - news, specials, etcetera - I believe they might. There's also a weekly update that I perform that I wanted to simplify - not that it takes much time now - but that I didn't really do in this port, but now at least can.
There were perhaps 6 or 7 static HTML files, each of which, save one, was in its own sub-directory. On IIS 7.5, the application pool serving the site used approximately 6188 K of memory. Approximately. I used a mix of Visual Studio 2008 and Notepad to update the site, with Visual Studio 2010 being swapped in for the former the day after the final release. FTP was used to move the changed files to the production server.
I used Visual Studio 2010 to create the new site, and the Web publish functionality to, at the moment, publish it locally for FTPing it to the server. This might change, or I might just push the one View and two or four files that I need to push. I'll probably see what happens when I make that update.
Memory usage on the server for the application pool is now approximately 22348 K, with it jumping below that every so often.
For converting the static site over, it wasn't all that bad. I did have some repository cleanup to do as well, so I believe it took me just short of 2 hours, including some time researching on whether I could redirect a request to another Web site entirely using routing. I seem to recall Scott Hanselman had mentioned this in one of his videos, but it may have just been on redirecting to a Web forms page instead.
Overall, I'm pretty happy with the move, although now that I know memory usage jumped 16 M with ASP.NET MVC 2 being used (without any login functionality, by the way), I'm not sure I would have switched this particular site over so quickly. But there's only two others that I could have moved over, and one is going to be a pain, and the other is going to involve a level of complexity that this one did not.
I've known since October that I really wanted to work almost exclusively in ASP.NET MVC for the Web; I'm glad I'm finally able to start moving in that direction.
- Review: Cooler Master CK550 Gaming Mechanical Keyboard
- Review: Fisher-Price Rock-a-Stack & Baby's First Blocks Bundle [Amazon Exclusive]
- Review: Summer Infant 3DPac Stroller
- Review: Sony SRS-XB31 Portable Wireless Bluetooth Speaker (SRSXB31/Ll)
- Review: Under Armour Vacuum Insulated Stainless Steel 18 Ounce Tumbler
Support This Site
If my blog was helpful to you, then please consider visiting my Amazon Wishlist.