Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.1K
Views
In Visual Studio 2022, publish to IIS returns a build error, but publish to Folder is ok (and it was all working fine before)

I've updated Visual Studio 2022 to 17.1.0 recently and I now have this weird error, but not on every project (on only one up to now). I've tested other projects and they still work fine.

But this one project won't publish to IIS. It builds/runs locally, it can publish to a Folder profile, and a previous version is working in IIS.

It's a .NET 6.0 web api project.

In the Output window I can see these 2 errors:

Error CTC1000: Method not found: 'Void Microsoft.VisualStudio.Containers.Tools.Shared.Functions.AzureFunctionsFeedDataProvider..ctor(Microsoft.VisualStudio.Containers.Tools.Common.Services.Logging.ILoggingService)'.
Error MSB4018: The "KillAppInsideContainer" task failed unexpectedly.

But I'm not deploying on Azure and I'm not deploying on a container. The project was set up for Docker use but I commented out the <DockerDefaultTargetOS> part of the .csproj and excluded the dockerfile from the project to test if it impacted the resut; it removes the KillAppInsideContainer error but not the other one.

Any help appreciated! Thanks

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Remove package Microsoft.VisualStudio.Containers.* || Microsoft.VisualStudio.azure.Containers.*
over 4 years ago · Santiago Trujillo Report

0

To solve this publishing issue, I came back from Microsoft.VisualStudio.Azure.Containers.Tools.Targets version 1.14.0 to version 1.11.1 from nuget packages

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!