Sdk: Try to deploy my asp.net core 2.0 website - Unhandled Exception: System.FormatException: The short switch '-argFile' is not defined in the switch mappings.

Created on 1 Oct 2017  路  4Comments  路  Source: dotnet/sdk

Hi guys;

I'm trying to deploy my asp.net core 2.0 web site and I'm having the following error.

Unhandled Exception: System.FormatException: The short switch '-argFile' is not defined in the switch mappings.
at Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationProvider.Load()
at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at TaxiAnjo.Program.Main(String[] args) in C:\Projects\TaxiAnjo\TaxiAnjo\Program.cs:line 16

Thanks for the help;
Flavio

Most helpful comment

I found the issue.

Just remove the: -argFile IISExeLauncherArgs.txt on my web.config file.

Regards;
Flavio

All 4 comments

I found the issue.

Just remove the: -argFile IISExeLauncherArgs.txt on my web.config file.

Regards;
Flavio

So is this an issue with the way Visual Studio 2017 Publishes the site?

...love the way we are wasting our lives...still loving dot net :)

@andreipet
So True!

Was this page helpful?
0 / 5 - 0 ratings