how to publish MVC project on my website?

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

Hi,

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. )

 

Thanks,

 

Coordinator
Sep 2, 2010 at 7: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: http://weblogs.asp.net/jgalloway/archive/2010/07/13/server-installation-options-for-asp-net-mvc-2.aspx

Sep 2, 2010 at 8: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.  

Coordinator
Sep 2, 2010 at 8:31 AM

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

Sep 2, 2010 at 8:59 AM
Edited Sep 3, 2010 at 3:22 AM

***

Sep 2, 2010 at 9:08 AM
Edited Sep 3, 2010 at 3:13 AM

***

Sep 3, 2010 at 3:12 AM
Edited Sep 3, 2010 at 3: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