I have a MVC 4 application and runs well on my local machine. What do I have to do further in Visual Studio 2012 to run my website in web server? Do I have to make some files by VS 2012 to deploy a website in web server?
you can right click your project and click on build deployment package watch in your log where it's made (in obj folder within your project) open the zip file go thru the directories of the zip until you get to your web stuff (usually when you come into
a folder where a web.config is or the global.asax) from there extract the files to ur webhost and it should be working without publishing your code files on the webhost
anyway not every hosting has mvc installed so it might be possible you have to add deployable dependencies (right click your project).
NiceStepUp
Member
1 Points
7 Posts
How to run MVC 4 of VS 2012 on web server?
Jan 17, 2013 11:38 AM|LINK
I have a MVC 4 application and runs well on my local machine. What do I have to do further in Visual Studio 2012 to run my website in web server? Do I have to make some files by VS 2012 to deploy a website in web server?
Thanks.
ignatandrei
All-Star
137649 Points
22143 Posts
Moderator
MVP
Re: How to run MVC 4 of VS 2012 on web server?
Jan 17, 2013 12:04 PM|LINK
xcopy the files on the server ( and make sure Suystem.Web.MVC have "copy local" to true)
NiceStepUp
Member
1 Points
7 Posts
Re: How to run MVC 4 of VS 2012 on web server?
Jan 18, 2013 06:21 AM|LINK
ignatandrei
All-Star
137649 Points
22143 Posts
Moderator
MVP
Re: How to run MVC 4 of VS 2012 on web server?
Jan 18, 2013 06:51 AM|LINK
All files.
sp00k
Participant
1916 Points
435 Posts
Re: How to run MVC 4 of VS 2012 on web server?
Jan 18, 2013 12:19 PM|LINK
you can right click your project and click on build deployment package watch in your log where it's made (in obj folder within your project) open the zip file go thru the directories of the zip until you get to your web stuff (usually when you come into a folder where a web.config is or the global.asax) from there extract the files to ur webhost and it should be working without publishing your code files on the webhost
anyway not every hosting has mvc installed so it might be possible you have to add deployable dependencies (right click your project).
NiceStepUp
Member
1 Points
7 Posts
Re: How to run MVC 4 of VS 2012 on web server?
Jan 19, 2013 01:38 AM|LINK
Should I copy three folders created by VS 2012 and file of Microsoft Visual Studio Solution?
NiceStepUp
Member
1 Points
7 Posts
Re: How to run MVC 4 of VS 2012 on web server?
Jan 19, 2013 01:41 AM|LINK
ignatandrei
All-Star
137649 Points
22143 Posts
Moderator
MVP
Re: How to run MVC 4 of VS 2012 on web server?
Jan 19, 2013 07:12 AM|LINK
does not harm. You can delete later.