-
Notifications
You must be signed in to change notification settings - Fork 224
Support for Azure web site with multiple applications #928
Comments
What does this even mean? |
That the directory layout ( More info here: |
It isn't. The approot lives as a sibling to the wwwroot. |
So what directory structure should be published? When publishing using Visual Studio 2015 it replaces the approot of the first published application when publishing the second application. Is this a problem with VS or MSBuild? |
How did you do this before ASP.NET 5? Can you walk me through that process? |
Before ASP.NET 5 it was done just like described in this article. This worked when everything was deployed within one directory (content files and Now they are deployed into two separate folders. The content files ( |
Doesn't this work? http://blogs.msdn.com/b/tomholl/archive/2014/09/22/deploying-multiple-virtual-directories-to-a-single-azure-website.aspx
|
I'm pretty sure it can be made to work but there are differences that need to be considered. We'll take a look at this and get back to you |
Sorry, it seems that you already indicated that 😄
|
Thanks. Let me know if I can assist in any way. |
Any updates on this? |
@davidfowl, Any updates on this? Not being able to publish multiple applications to a single website by default (IIS or Azure) is pretty much a deal breaker for us. There are undoubtedly many possible workarounds/hacks for this, but when you've got to manage 200+ applications under just a couple of websites -- like we do (mostly small-ish applications) -- this will get annoying really soon. And a dedicated website for each application is a no-go area. (Not that we're going to "upgrade" these applications to v5 any time soon (or at all) -- that would be a Herculaneum effort indeed.) (This has never been a problem for ASP.NET v1-4 because it bundles the application from the WEB application's root folder, rather than insisting on creating a hierarchy next to it. I understand the basic reasoning behind it, but it simply doesn't work for subapplications.) |
No updates on this as yet. We're still busy making the fundamentals solid. We'll need to have a discussion on the possible options here. |
Just found this issue after creating my SO question: http://stackoverflow.com/questions/34784391/deploying-aspnet5-apps-to-virtual-directories-on-azure-websites |
Everything here is workable btw with the platform handler. You can host N applications by swapping the layout as follows:
The layout is changing to something more flat in the RC2 timeframe but it's the same idea:
As part of moving web.config up one level, you also need to change the executable entry to point to the right relative path but it should be trivial to do. |
Ye. the hardest thing about it now is the tooling. The default tooling in vs15 currently generates the output I showed. I assume these will align over time. I will give your layout a try manual and confirm that it works with two apps. Might actually be able to get default tooling to work also now that I think about it. I will give a update with a few more experiments when off the clock. |
I actually believed I got it working. https://twitter.com/pksorensen/status/687675626690625536 but then I could not reproduce it and found out that the only reason app1 and app2 worked was because app0 failed.
I killed the w3wp process and app0 started working but then app1 and app2 keeps saying So, i followed your folder setup and could not get it working with a simple hello world app. |
detailed logging indicated dublicate of platformhandler registration.
|
Poul, did you get it working? what web.conf is that where you remove the httpplatformhandler? Say I have 2 projects that want to host under the same website.
As you mentioned the hierarchy created by default when deployed in Azure is:
Where do I have to remove the httpplatformhandler (if needed)? UPDATE: I actually found your answer at http://stackoverflow.com/a/34799414/2948212 |
I tried to include most information at the answers here: Could you read those first and then ask again if its still unclear - and theres nothing wrong with asking again, just want to make sure that you seen the content there first. |
I understand this is closed.. But as of Nov 17', is the only way too accomplish publishing multiple .Net Core apps to Azure Virtual Directories entail using the solution @pksorensen and @davidfowl give. And not using VS20017's Publish tooling? |
I believe the logic in the original article will work now since the layout is much closer to what the original model had (single root folder) |
I have not checked if anything new or better is around, what I did back then still works for me and i still virtual applications by dropping dotnet core apps in separate folders. |
The major difference is that no longer have folders that are siblings to the wwwroot folder. |
Thanks for super fast responses to both of you.. I started by trying the original article and received an error on publish. Don't recall details.. But found this.. After work tonight I will try again and let you know. |
There seems to be no way to publish to and/or run multiple applications within one Azure web site. The reason seems to be the folder layout of approot; only the approot for one application can exist (multiple wwwroots seem to work fine).
I am not sure if the issue is within Azure or KRuntime, but from what I can see it is the
kpm pack
that outputs the folder structure.The text was updated successfully, but these errors were encountered: