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.
Related
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.
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.
First time I am trying to publish an mvc website. So far I have published it to a local folder and using IIS I have made the folder a virtual folder. How do I run the website from my browser and how to start it with Account/LogOn?
Here is the link of Video tutorial release by ScottGu regarding MVC deployment and study hope this will help you
http://weblogs.asp.net/scottgu/archive/2011/05/15/great-free-video-training-on-asp-net-web-forms-and-asp-net-mvc.aspx
There are many articles and tutorials out there about deploying ASP.NET MVC applications. Once IIS is configured you simply point your browser to http://localhost/NameOfTheApp/Home/Index and you should be ready to go.
First which version is there on remote server. For your account logon i am assuming that you are using default membership provider. I normally include membership provider table in my database. If you are running on IIS 6.0 then you have to made some changes as mentioned by Haacked on his blog. While publishing make sure that mvc dll in made copy local and is there on your bin folder on remote site. First publish the site on local and if it is running properly upload it on remote server set the connectionstring as told by your hosting provider
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
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?