ASP.NET MVC in "web site project" - asp.net-mvc

I know that can co-exists with web form no problem as Hanselman mention here. However, we current have a "Web Site" project. I am just wondering if MVC would work in this kind of project instead of web application.

Even though I never did it and will recommend it, I find an interesting post here. It seems doable.

Related

IIS saying "Under Construction" for MVC site

I have created the route as described in http://www.asp.net/mvc/tutorials/older-versions/deployment/using-asp-net-mvc-with-different-versions-of-iis-vb; however, my site still doesn't show up. Instead, it displays, "Under construction The site you are trying to view does not currently have a default page. It may be in the process of being upgraded and configured. Please try this site again later. If you still experience the problem, try contacting the Web site administrator."
How can I fix this so that my MVC site shows up?
There's alot of things that could be wrong when trying to run MVC on IIS 6, but Phil Haack has 2 great blog posts about this, a general version and one if you're running .NET 4.0
There are a couple thing I'd start with though, did you uncheck the box like the image below? Like he mentions in his blog, it's easy to miss and will prevent the system from working.

WebMatrix social authentication MVC integration

Is there any article or ideas how to use/move/intergrate social authentication from WebMatrix 2 to MVC 4. I've googled internet but didn't found any info about possibility to add references to WebMatrix namespaces/libraries to MVC project. I've read following article http://www.asp.net/webmatrix/tutorials/the-top-features-in-web-pages-2-developer-preview#oauthsetup and want to use WebMatrix.Security in MVC project
If you're looking to upgrade your project from simple ASP.NET Razor pages to a full MVC 4 project, I recommend moving from WebMatrix to Visual Web Developer:
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-web-developer-express
Everything you're trying to do here with the social auth libraries should work perfectly well in VS, and there are even a few NuGet packages that can make it easy. WebMatrix is meant to get you running with ASP.NET and Razor, but VS is going to give you a fuller experience.
Happy Coding!
here you will find a step by step solution to migrate webmatrix-webpages apps into asp.net mvc. check that you can find the login area - were you will figure out the social auth login too - in order to migrate it to mvc too.
information:
The Web Pages page-centric programming model supported by WebMatrix is a great way to get Web apps up and running. If you later decide that embracing ASP.NET MVC would give you more flexibility, you're covered. We’ll explain why you might choose to migrate and show you how to do it.
read the article: http://msdn.microsoft.com/en-us/magazine/hh148144.aspx
download code: http://archive.msdn.microsoft.com/mag201105ASPNET/Release/ProjectReleases.aspx?ReleaseId=5601
OAuth authentication on website now built-in, question closed

How to put an ASP.Net website inside MVC website?

I have an ASP.Net website and I want to put this website inside a MVC website I recently did, so this ASP.Net website will be part from the MVC website.
Is there a standard or a known way to do so?
Ask me if you want to know more information, I am not sure what info could help.
this shows merging an existing asp.net site into a new MVC3 site. The same applies for merging existing into existing. Just get a merge tool and merge them!
http://www.hanselman.com/blog/IntegratingASPNETMVC3IntoExistingUpgradedASPNET4WebFormsApplications.aspx
Could you put your MVC project into the webforms one? If so, this nuget will help with that: http://www.nuget.org/Tags/WebForms

How to integrate YAF in N2-based ASP.NET MVC site?

I'm building an N2-based ASP.NET MVC site, which is part of a larger Windows Azure solution. The problem I am stuck with is integrating in my project N2's own forum add-on, which is basically YAF (Yet Another Forum).
I've been wrestling with the forum for the last couple of days and after re-compiling the add-on to remove the dependency on N2.Templates.dll and following all of the steps in the Installation.txt file (part of the documentation of the add-on) I'm stuck with the forum not showing up. When I navigate to the forum I get a "403.14 - Forbidden" error.
From what I could find out it seems the problem is in the fact that the forum is based on WebForms and the containing application is MVC-based. The site is part of a Windows Azure solution and some of the things I read suggest the local IIS may not be correctly configured. However, right-clicking on the Forum.aspx page and selecting "View in browser" shows the page just fine, including navigating to subsequent pages from the YAF installation wizard. Running pure WebForms apps on the local IIS also goes without problems, so I think IIS is not the cause for YAF not showing up.
Please, if someone has any idea for solving this problem, or has done similar integration of YAF in an MVC site, let me know.
Thanks!

Setting a under construction page for IIS6

I have an .NET 1.1 web app and I am upgrading to ASP.NET MVC 1.0 app in IIS6.
How do I put up a under construction page so uses see it?
And secondly how can I install the new site and test under
this scenario of having an under construction page??
Malcolm
You could use an app_offline.htm page.
#Darin is quite correct but you must make sure it's in the root. The temptation for MVC applications is to place the html file within the Views folder. This won't work.

Resources