Hello bhavikanimbark-2740
We have a similar setup working under app services, I believe all you need is to remove the wwwroot from the physical path of your apps, for example we currently have
site\cms and site\api
and they both work fine.
regards,
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to deploy multiple asp.net project and API on single azure web app.
I have tried to deploy multiple projects on azure web app same as per deploying-multiple-virtual-directories-to-a-single-azure-website link but it won't work for me.
I have created virtual application on azure web app after that I have pubilshed the API
But when I tried to access it by https://web.example.com/Common it throws an below error:
The page cannot be displayed because an internal server error has occurred.
Hello bhavikanimbark-2740
We have a similar setup working under app services, I believe all you need is to remove the wwwroot from the physical path of your apps, for example we currently have
site\cms and site\api
and they both work fine.
regards,
Thanks for asking question! Just to double check if you have saved your settings to apply the changes to Azure while adding the applications for “Virtual applications and directories” and restart it once.
You may also try removing the aspNetCore handler and click save by editing the web.config file in this sub directory. You can do it by using kudu console and then clicking the edit button in front of web.config file. As When adding applications to an IIS Site's root application, the root application web.config file should include the section, which adds the ASP.NET Core Module as a handler for the app. Applications added to the root application shouldn't include the section. If you repeat the section in a sub-application's web.config file, you will receive a 500.19 (Internal Server Error) referencing the faulty config file when you attempt to browse the sub-application. Check this official document
Let me know if issue persists.
Can you try using this URL https://web.example.com/ to access the app? you also try setting up your
virtual applications and the directories as shown here.
hi i have api and angualr project on same app service ,
/site/api
/site/webapp
but when i try to hit /api it gets redirected to website instead of swagger file