Deploy to IIS #1021

Closed
opened 2025-08-09 17:18:34 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @threenine on 2/14/2017

Hi,

I have created a small APP using the Angular2 Template. Works great and was very easy to use.
I published the App to Azure, just as an initial prototype test and it worked great using an Azure App Service deployment. However, I now need to deploy the app to an IIS Server, but I can seem to work out how to do it.

When I xCopy the after creating a publish using dotnet publish
I place the files in the Application Virutal Directory, if I browse to the url i.e. http://localhost/someapp

I get an error page saying page can't be found

However, when I browse to an api call i.e. http://localhost/someapp/api/controller/action

I get a result.

What is the additional step I need to take to ensure the application is rendered?

when I compared the deployed files i.e. between App Service & Publish
it appears the same files are included however, I get the feeling there is an additional configuration step for IIS that I am not aware of ?

I have created the APSNETCORE App pool and set it as UnManaged.

Do I need to set default document to something?

I have also gone through this guide
http://webmodelling.com/webbits/aspnet/aspnet-deploy-iis.aspx and ensured all has been set up correctly in IIS

*Originally created by @threenine on 2/14/2017* Hi, I have created a small APP using the Angular2 Template. Works great and was very easy to use. I published the App to Azure, just as an initial prototype test and it worked great using an Azure App Service deployment. However, I now need to deploy the app to an IIS Server, but I can seem to work out how to do it. When I xCopy the after creating a publish using `dotnet publish` I place the files in the Application Virutal Directory, if I browse to the url i.e. http://localhost/someapp I get an error page saying page can't be found However, when I browse to an api call i.e. http://localhost/someapp/api/controller/action I get a result. What is the additional step I need to take to ensure the application is rendered? when I compared the deployed files i.e. between App Service & Publish it appears the same files are included however, I get the feeling there is an additional configuration step for IIS that I am not aware of ? I have created the APSNETCORE App pool and set it as UnManaged. Do I need to set default document to something? I have also gone through this guide http://webmodelling.com/webbits/aspnet/aspnet-deploy-iis.aspx and ensured all has been set up correctly in IIS
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1021
No description provided.