views:

258

answers:

2

I'm new to ASP.NET MVC and would like to create and deploy a website using ASP.NET MVC.

I have a few old sites that run classic ASP and the site-structure goes like this:

  • web.root (holds website pages)
  • data.files (holds databases)
  • log.files (log files)

I was wondering if the same structure is used for ASP.NET MVC??

What’s the best practice for storing your Visual Studio project files?

A: 

Saving your project files

Use source control for this, for example, SVN. You can read more about SVN here.

Deploying the application

There are built in deployment functionallity in Visual Studio which lets you deploy the web-project to Local Folder, FTP or IIS. You can read more about Site Deployment here.

Understanding ASP.NET MVC

For this you should visit the ASP.NET MVC Video section on asp.net/learn/

Filip Ekberg
+2  A: 

ASP.NET MVC uses its own structure. There are excellent books on how ASP.NET MVC works, including Professional ASP.NET MVC 1.0 by Wrox. Understanding why ASP.NET MVC differs from ASP.NET and why it does what it does is crucial to utilizing it correctly.

MVC uses its own file structure, as I alluded to before:

Image File Structure

This file structure is 'by default' or as MVC-types call it, "Convention over configuration". If you install Visual Studio 2008, and start a new ASP.NET MVC 1.0 project, you'll find that this structure has been created for you.

With regards to deployment, there are plenty of Stack Overflow questions that deal with that.

George Stocker
Thanks for your reply.I understand that MVC uses it own file structure but when you deploy your site how should you set up your directories on the server.Do you just deploy the site to your web.root folder and point IIS there?
Jemes
@Jemes When you hit 'Publish' Visual Studio takes care of this for you.
George Stocker
Thanks George, I'll check that out.
Jemes