cancel
Showing results for 
Search instead for 
Did you mean: 

Initialization Issue in .netcore3.1

Need help with this. 

 

Getting an exception while executing the code below in .NET Core 3.1 works fine in .net core 2.2

 

ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = AuthorizeNet.Environment.SANDBOX;

 

exception = The type initializer for 'AuthorizeNet.Api.Controllers.Bases.ApiOperationBase`2' threw an exception.

 

inner exception: Method not found: 'Microsoft.Extensions.Logging.ILoggerFactory Microsoft.Extensions.Logging.DebugLoggerFactoryExtensions.AddDebug(Microsoft.Extensions.Logging.ILoggerFactory, Microsoft.Extensions.Logging.LogLevel)'.

at AuthorizeNet.Utilities.LogFactory.get_LoggerFactory()
at AuthorizeNet.Utilities.LogFactory.getLog(Type classType)
at AuthorizeNet.Api.Controllers.Bases.ApiOperationBase`2..cctor()

 

 

14 REPLIES 14

I faced similar kind of issue last time very impressed with your post

Thomas_12
Member

This is just what I needed. I sometimes feel like I am blogging away in my own little vacuum and don’t know how to reach all the people out there. Thank you so much for your important advice.

advancetech

I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thanks  [url=https://bestrdpservice.com]cheap rdp[/url] hope it willl be helpful to your audience

This is exactly what I required. I now and then feel like I am contributing to a blog away in my own little vacuum and don't have a clue how to contact every one individuals out there. Much thanks for your significant guidance.

likoki5980
Member

Thnaks for sharing this information.

MCD

akamsremoteco
Member