I am a newbie with Windows Azure, and still learn it. I have developed an ASP.NET MVC project that implements Forms Authentication and is run on Windows Server.
Now, if I want to run this MVC project using Forms Authentication on Windows Azure, then I have some questions:
Question 1: Can MVC Forms Authenticaion function is possible with Windows Azure?
Question 2: If possible, then do I need to modify my existing codes? How can I do so?
Thank you in advance.
You do not need to modify your code to run on Windows Azure. Just hook it up to a repository and create a new web site on Azure. Then connect the two and you'll have a fully functioning project.
Related
We are trying to migrate MVC4 applications to Azure website since there is no option of creating sub site in azure website so below code from MVC 4 is breaking
Can someone tell me what needs to be done to fix the issue for below so that it can be used both in MVC 4 and azure website
window.location.href = '/**SubSite/Customer/Details?**
As there is no sub site inn azure above code was breaking
Any help is appreciated
Azure Websites supports running sub-applications under your site like IIS does. The only difference is that you can't run them in separate Application Pools like you can do with IIS.
Check this answer here for more details on how to configure that.
I'm seeking some guidance for hosting websites on azure.
I have a Umbraco website, which work fine on azure website.
I also have an MVC application I want to host inside my umbraco site, but it has to be run as an application.
This work fine in IIS by converting the folder to a application, but there is no option to do this on azure.
Is there a easy way to convert the folder to a application inside my umbraco solution or do I have to create a virtual machine with web roles?
If you need more control than just creating an Azure Website - you need to create an Azure VM or use an Azure Web Role hosted service.
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
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?
Does ASP.NET MVC require IIS? Could I develop an application that uses the new ASP.NET MVC framework on a client machine that does not have IIS installed?
From what i've read on the Mono site Site Link you can also run an asp.net MVC site under Mono using the Apache webserver as well.
A browser is all that is required on the client machine.
IIS is not required on the developer machine according to the download page.
Visual Web Developer 2008 Express, or the regular editions of Visual Studio will include the Cassini web server for development.
I think what you're asking is if you were to develop an ASP.NET MVC application would you need IIS on your local dev machine to run it?
The answer is, no you don't.
In short ASP.NET MVC can technically be run by any web server that can allow the website itself to handle the requests instead of the web server handling them.
You need IIS to get ASP.NET to work (MVC or WebForms). From what I know, it is ideal to have IIS 7 for MVC, but it is possible with IIS 6.
Developing a MVC application without IIS is possible, with the built-in web server integrated with VS 2008 (as been already mentioned), but for deployment, that is when you need IIS.