Base solution for your next web application
Open Closed

The call is ambiguous GetAppConfigurtion when updating to 4 #3047


User avatar
0
joe704la created

I am working on updating to 4.0.0 and I am getting an error below. Has anyone gotten that when upgrading to 4.0?

Severity Code Description Project File Line Suppression State Error CS0121 The call is ambiguous between the following methods or properties: 'PHS.Configuration.HostingEnvironmentExtensions.GetAppConfiguration(Microsoft.AspNetCore.Hosting.IHostingEnvironment)' and 'PHS.Web.Configuration.HostingEnvironmentExtensions.GetAppConfiguration(Microsoft.AspNetCore.Hosting.IHostingEnvironment)' PHS.Web.Core C:\Code\PHS\PHS\aspnet-core\src\PHS.Web.Core\PHSWebCoreModule.cs 46 Active


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Probably you need to delete one of those methods. In the latest version this method only exists here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/Configuration/HostingEnvironmentExtensions.cs#L8">https://github.com/aspnetzero/aspnet-ze ... ions.cs#L8</a>.