Hosting ASP.NET MVC 3 Razor Engine Site - asp.net-mvc

I am working on a ASP.NET MVC 3 beta Razor engine website. Its a small project. I would like to know if its possible to deploy Razor engine site to normal hosting provider. I assume I would need to copy relevant dll's to my site bin folder. Will this work or I would need to do something more than this to successfully deploy my site to shared hosting.

Yes, it is definitely possible to deploy an ASP.NET MVC 3 app to a web hoster that doesn't have it installed. The link that tshao posted is a great start. The only requirement is that the hoster is running ASP.NET 4.

yes it is possible to run MVC 3.0 with web pages inside shared hosting. please refer this article of mine;
http://www.tugberkugurlu.com/archive/deployment-of-asp-net-mvc-3-rc-2-application-on-a-shared-hosting-environment-without-begging-the-hosting-company

Related

Is it possible to migrate from ASP.NET Core MVC to ASP.NET MVC architecture?

I have an application running on ASP.NET Core MVC. I am trying to deploy the application on Godaddy Windows based shared server, however it seems that ASP.NET Core applications cannot run straight away.
So I tried to upload a sample ASP.NET MVC project to Godaddy and it worked fine. I was wondering if I can migrate from ASP.NET Core MVC to ASP.NET MVC structure to deploy and run my existing application. Or if there is any workaround that can be done to run the core application itself.
Any help would be much appreciated.
Asp.net core application can run on Godaddy server. You did not mention what type of hosting it is. On shared hosting they install .net core as discussed here: https://uk.godaddy.com/community/Plesk-Hosting/Does-asp-net-core-is-supported-by-godaddy-on-shared-hosting/td-p/131238
If it is a VPS hosting then you can install it by yourself (download from Microsoft's site).
Moving from Asp.net core to MVC will be a backward move.

Deploying MVC 3 application in MVC 4 hosted IIS

I have created MVC 3 application, everything is working fine.
Now we moved for deployment. However the IIS 7 got already installed with MVC 4 and running other MVC 4 application.
Can I simply host my MVC 3 application? Or do I need to do any changes in web.config, or global.asax etc? Any breakdown will happen?
I developed MVC 3 with Razor.
You can install MVC3 and and MVC4 side by side, but you may need to follow the advice here
If you don't want to install MVC3 on the server, simply BIN deploy it and make the changes in the attached link. That way you'll risk no knock on effects to other apps.

self hosting asp.net mvc

Is it possible to self host asp.net mvc inside another application ie. console, windows forms, service etc etc.
I'd like to build an app that offers a web interface to control it and I'd like to use asp.net mvc for the web part of it.
I did take a quick look at Nancy which looks like it would work, though its not asp.net mvc it did support razor although it doesn't have quite the same level of support for it as asp.net (eg. strongly typed views)
I did also find this question but it doesn't really go into much depth
Possible to use ASPNET MVC2 without IIS?
You can use "IIS 7.0 Hostable Web Core" and host the web server as part of any user process, even a console application. The benefit is that it is very similar to full blown IIS (incl config etc) but the web server itself is running in your process.
Have a look at the following articles:
Host your own Web Server in your application using IIS 7.0 Hostable Web Core
Creating Hosted Web Core Applications
Please have a look at http://cassinidev.codeplex.com/
It has many advantages for example
No need IIS 7 on client machine
Support MVC (I have tested myself)
Work well with Windows Form and Web Browser Control for packaging as Windows App
Cross Win OS platform ( Windows XP, Vista, 7) I have test XP with .NET 4 installed
Hope this helps.
I know this question is old, but it is still relevant, so with the .NET Core 1.0 + ASP.NET MVC 6 you can self-host your MVC application easily. You can even combine MVC and WebAPI applications into one, and you can decide later if you want to use IIS, IIS Express or the self-hosting feature of the .NET Core.
You can try it if you follow the Yeoman approach from this post:
https://stackoverflow.com/a/30314393/980247

ASP.NET MVC and host problems

Hi,
I have done the following :
Start Visual Studio 2010
New Project > ASP.NET MVC
Default ASP.NET MVC project generated by VS2010
Add a couple off simple buttons on the first page
Start local IIS manager, Create a web application and point it to the ASP.NET MVC project
Set correct right on the ASP.NET MVC project folder(to the user running the thread pool in IIS7)
Browse site (http://localhost/MyTestSight/) and the first page is shown
Upload site to www.test.figurspel.net
Host sets the site to be runned on .NET 4.0
Browse www.test.figurspel.net and the site is not working?
The host has checked that tha Active Server Page is set to allow
Host has installed up to MVC 3
I could turn on the Browsable to see the file structure but this will not help to get the site running.
How do I get this asp.NET MVC web site running?
BestRegards
Is the application pool running in integrated mode the IIS site running under that application pool?
It's my understanding that if this isn't the case, the MVC site will not run.
Alternatively, have you tried this?
+1 Unicorn power HooooooO!!!!! Also I've always when hosting a site published the project to a different folder then setup the site via IIS from that folder hope this helps.

Does asp.net MVC need to be compiled before it’s deployed onto a web server?

I can’t get a basic MVC site to work on my web server unless I’ve compiled it first in Visual Web Developer. If it doesn’t have a dll in the Bin, it says the Namespace can’t be found.
In classic asp.net I could just upload the files and the server would compile it at first run. Is this not the case in MVC? Essentially I’d like to build an MVC site without using Visual Web Developer.
That's cause ASP.NET MVC is not based on the Website model that many ASP.NET Web Forms apps were. It is based on the Web application model.
You can read about Web Application Projects here.
I've read about people migrating the Web Application to the Web site model in ASP.NET MVC but I don't recommended it.
Yes, you do need to compile an MVC site and deploy some DLLs in a bin folder when you deploy an MVC site
You can build MVC without Visual web developer... but why?

Resources