Configuring Web application using WiX and use the application in an already present App Pool - iis

I have a web application with .NET 4.5.2 that should be used by already existing app pool with .NET 4.0 in the IIS. Can it be configured in WiX itself and how to host the application in the existing app pool

You can use iis Extension. http://wixtoolset.org/documentation/manual/v3/xsd/iis/website.html
Try to follow This Blog.

Related

Azure App Service hosting internal technology

When I host a .NET Core application in Azure App Service, it takes a web.config custom headers configuration, same as in IIS.
Which technology is used in the Azure App Service to host a .NET Core web application?
Thank you Lex Li for your suggestion posting it as answer to help other community members .
"Azure app service is just a name.
you can either host your web app on Windows (IIS) or Linux or on Docker, as you said web.config takes effect, you were using the Windows based App Service hosting plan."
According to that when we host our application in Azure app service there will be no change in our application .
Please refer the below links for more information :
MS DOC : Quickstart: Deploy an ASP.NET web app
MS DOC: ASP.NET Web Deployment using Visual Studio: Web.config File Transformations.
MS DOC : Troubleshoot ASP.NET Core on Azure App Service and IIS

How to resolve 404 error on deploying .net core web API

Hi I have done following steps while hosting my .net core web API in IIS of my laptop. But when I browse the URL I get 404 error.
Sample URL: http://localhost/Myapp/api/user
Help will be much appreciated! If need any further info let me know.
Steps:
Install Install the .NET Core Hosting Bundle 2.2.5
Hosted web api in IIS with defaul 80 port number without any hostname
Created new application pool with No MANAGED CODE as .NET CLR Version.
To host .NET Core Web API in IIS follow below steps:
Publish the Web APIs to Your Local Folder
for example, D:\testcoreapi
Install Microsoft .NET Core Windows Server Hosting Bundle File
ASP.NET Core Module Configuration Reference
Open IIS Create One Application Pool of No Managed Code
Create Web Site to point to the local folder of your published.
Note:
Do not forget to select an application pool which you created before with no managed setting.
If you are still not able to browse the site select your site from connection node in iis.
right click on site and select "Explore" and make sure that you select right folder.
For more detail you could follow the below article:
https://jakeydocs.readthedocs.io/en/latest/publishing/iis.html
Regards,
Jalpa

Application pool recycling with Selfhosting a ASP.NET application

If I want to selfhost a asp.net web api application with Owin in a windows service, how can I integrate kind of a application pool recycling that IIS offers?
The answer is simple: you cannot. Application pool is an IIS feature that you can only enjoy by hosting on IIS.

After installation of website it changes Application Pool of web application that follows it.

I have InstallShield (IS) Basic MSI project, that creates Application Pool and installs web application on IIS under existing website.
On IIS default website is stopped and different website named WebApps using port 80 is running it uses AppPool1. Under WebApps we have several applications that use different App Pool for themselves for example AppPool2, AppPool3. When I install new application under WebApps and set its App Pool to newly created AppPool4 some applications App Pool changes to ASP.NET v4.0 AppPool1.
You can see my Application Pool and Web App settings below from IS.
Does anyone know why this could be happening?
Issue was with Web App .NET Framework version was set to v4.0 and this would cause all the Web Apps under Website to be set to use .NET Framework v4.0

Setting the IIS application pool that a LightSwitch application is deployed to

How do you set the IIS application pool that a LightSwitch application is deployed to ?
For both IIS 6 and 7 ?
When using MsDeploy ?
If you want to use msdeploy.exe to deploy just the app pool to IIS 7, you can use the appPoolConfig provider. (The provider is not supported on IIS 6.)
If you’re using msdeploy.exe and want to include the application pool as part of an application deployment, you can use the -enableLink:AppPool or -enableLink:AppPoolExtension switches (they are equivalent).
Also, if you want to set the .NET Framework version of the application pool, you can use the Web Deploy appPoolNetFx provider.
Here are some references if you're going to use IIS Manager:
To set the application pool in IIS 7, go to the Application Pools reference page and follow the steps under “How to configure the application pool for an existing site or application”.
To set the application pool in IIS 6, see Configuring Application Pools in IIS 6.0.

Resources