I've been working on an ASP.NET MVC3 website under VS2010 and I'm wondering how can I deploy it locally on my Windows 7 pc on IIS7.
2 Answers
You can do it in the same way you do for an ASP.NET web application. There is no significance difference.
Right click on your project and select "Publish" option from the context menu. You can specify what way you want to publish (FTP, File System etc..) Lets select FileSystem and select a folder and Clicking on the publish button will drop the required files to that folder.
You can create a Site/Virtual directory under your IIS and specify the file location as the same folder where we published.

3 Comments
Dude its pretty simple .
Step 1 : Publish it.
Step 2 : Add this as a website
Step 3 : Go and change the current asp.net version as 4.0 of the app pool
Step 4 : Rejoice ! Its done !
Well if not then there is an issue regarding some error is coming then it is due to the .net 4.0 is not registered in iis . So try this :
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir for 32 bit windows
and
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir for 64 bit windows