I'm following a set of instructions where a line reads:
Launch the x86 or x64 Web Deployment
Tool’s MSI.
My IIS's Web Platform Installer verifies that i have Web Deployment Tool 1.1 but I can't find a location to launch it.
Try C:\Program Files\IIS\Microsoft Web Deploy
Related
I used visual studio 2022 to build eshopOnWeb ASP.Net core app (https://github.com/dotnet-architecture/eShopOnWeb). It can run in VStudio as well as "dotnet run" command but when I deployed it in IIS using each of the options available in publish dialog, it doesn't work.IIS always came back with "HTTP Error 403.14 - Forbidden" error. If I enabled directory browsing, it will show deployed directories like a file share.
Apparently, it works with Kestrel but not with IIS.
My system configuration is Win Server 2019 with .Net 6.0 web-deploy installed. Appreciate any tips.
I am trying to publish a test website in .Net 5.0 on an IIS on Windows 10.
I have .Net 5.0 installed
I have activated the IIS on Windows
I have installed the ASP.NET Core 5.0 Runtime (v5.0.1)
I have installed the dotnet-hosting-5.0.1-win
I have created the web application in the IIS and assigned it a specific Pool with the .Net CLR version "No code managed" and "Integrated". I have assigned the port 8090.
From Visual Studio when Publish I selected:
File System
Configuration: Release
Target Framework: 5.0
Deployment Mode: Self-Contained
Target Runtime: win-x86 (with win-x64 it doesn't work either)
My Windows version is 1909 (OS compilation 18363.1256)
If I navigate to the path http://localhost:8090/ I get this error "HTTP Error 500.32 - Failed to load .NET Core host.
I have reset the IIS, I have deleted and recreated the application, I have restarted Windows, but it still does not start the test web.
The Windows event viewer showed me these errors:
Unable to load 'C:\inetpub\wwwroot\TestNetCore.\hostfxr.dll'. This might be caused by a bitness mismatch between IIS application pool and published application.
Could not find 'aspnetcorev2_inprocess.dll'. Exception message:
Failed to start application '/LM/W3SVC/2/ROOT', ErrorCode '0x800700c1'.
I don't know what else to look at. Any ideas or suggestions?
Your errors are in ASP.NET Core, For these errors, you can try the following solutions:
Have you install asp.net core module? if not, please install it:
ASP.NET Core Module
Open IIS manager > Application Pool > Select App pool > Advanced
Settings, update "Enable 32 bits applications" from false to true > Click OK.
Try to delete the applicationhost.config (in .vs\config\applicationHost.config) and rebuild app.
I solve this problem in this way for myself:
In web.config I remove hostingModel="inprocess"
I answer for others who encounter this problem
When i deploy the application from Visual Studio to Azure app service using Framework/Runtime dependent mode, then app service run properly.
But when application is deployed using CICD (using VSTS), then app service fails with above mentioned error in title and following error is logged in stdout log files :
Error:
An assembly specified in the application dependencies manifest (App.deps.json) was not found:
package: 'System.Diagnostics.PerformanceCounter', version: '4.5.0'
path: 'runtimes/win/lib/netcoreapp2.0/System.Diagnostics.PerformanceCounter.dll'
But the dll is present in mentioned path under .netcoreapp2.0.
I am publishing the application using VSTS agent.
If i restart the app service then it works fine.
This is one of those errors that can come up for a thousand unrelated reasons. -Everytime- I get this error it's because I've upgraded Nuget packages in my project and one of those packages uses a version of the .Net Core SDK I haven't installed locally. I suspect since you're using the Framework dependent mode it could be an issue if it sandboxes you away from other SDK's (not sure if it does, just thinking out loud).
Make sure your .Net Core SDK's are up to date.
Try publishing it and sending the whole framework with it if you're using .Net Core as the backend (and not the old framework).
Check your NuGet's and make sure they're all supported on the framework you're specifying. I've seen cases where a 4.5 framework assembly 'might' work locally but then error out on the server. If one of them targets an SDK that isn't on the server you'll get this.
https://www.blakepell.com/asp-net-core-http-error-502-5-ancm-out-of-process-startup-failure
Since it works fine when you restart the app service, you could add a Azure App Service manage task to restart Azure App Service in your pipeline:
steps:
- task: AzureAppServiceManage#0
displayName: 'Restart Azure App Service'
inputs:
azureSubscription: azureSubscriptionName
Action: 'Restart Azure App Service'
WebAppName: AppServiceName
It seems that the first time you try to run, your application can not find this .dll that is required on the server. What you can do is to add this in your .csproj file:
<PropertyGroup>
<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
</PropertyGroup>
Adding the above snippet will export all DLLs needed to run the application (assuming SDK is not available, and runtime is quite lightweight to contain non essential libraries).
Is it possible to configure Visual Studio 2010 to add the recycleApp provider and its value in the deploy.cmd file it generates when building a web deploy package?
W3wp is locking a file in the bin folder and I hope doing an app recycle will make the process release it so the deployment package can be installed.
msdeploy.exe -verb:sync -source:recycleApp="Default Web Site/myapp" -dest:auto
About the provider: http://technet.microsoft.com/en-us/library/ee522997%28v=ws.10%29.aspx
I wrote an ASP.NET web application with an installer. For the installer, I'm using the Web Setup Project under the Setup and Deployment project types in Visual Studio 2008.
How do I set the IIS File Security to Integrated Windows Authentication on only one .aspx page or directory during the installation process using a Web Setup Project? If it is not possible with the Web Setup Project how would I automate that task?
Currently I'm installing the application with the installer and manually setting the security permissions.
Look at the CustomAction Class for the Install Method.
Here's a sample:
http://www.codeproject.com/KB/install/SetIISettings.aspx