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
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!
Most helpful comment
I found the issue.
Just remove the: -argFile IISExeLauncherArgs.txt on my web.config file.
Regards;
Flavio