This project is read-only.

how to publish MVC project on my website?

Sep 2, 2010 at 7:46 AM
Edited Sep 2, 2010 at 8:30 AM


It can be run on my local computer, but how to publish it on my real website?(It's on webhosting, I'm just for learning how to publish MVC project on real website now).

Is there any special web hosting requirement for MVC project?  I just simply upload whole project to website, but it doesn't work. (only know this website supports ASP.NET. )




Sep 2, 2010 at 8:32 AM

Your server needs to be running .NET 3.5 SP1 or .NET 4 to run an ASP.NET MVC 2 application. If ASP.NET MVC 2 isn't installed on your server but you have .NET 3.5 SP1 or .NET 4, you can /bin deploy the MVC 2 dependencies.

I wrote blog post about MVC 2 installation options here:

Sep 2, 2010 at 9:24 AM

really thanks,

I did as instruction. After bin deploy. In folder:

[App_Data,bin,Content,Scripts,Views (these are folder name)    Global.asax,Web.config (file name)]

I upload these to my webhosting "Test" folder. It says "directory listing denied" when I browse.  

Sep 2, 2010 at 9:31 AM

What version of IIS is your server running? What version of ASP.NET?

Sep 2, 2010 at 9:59 AM
Edited Sep 3, 2010 at 4:22 AM


Sep 2, 2010 at 10:08 AM
Edited Sep 3, 2010 at 4:13 AM


Sep 3, 2010 at 4:12 AM
Edited Sep 3, 2010 at 4:23 AM

Hi, I set up new website, MVC seems  work, but I got error message. how do I solve this? 

Sorry to keep asking questions,but I'm beginner for this, I really need help.  =) Thanks! 


Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.

Source Error:

[No relevant source lines]

Source File: machine.config    Line: 283

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1