1. Mike Kolenda
  2. .NET DataStore
  3. Wednesday, 15 December 2021 14:36 PM UTC

I've written a .NET Windows Form project where I simply want to evaluate a formula with the .NET Datastore and return the value.  Using SnapDevelop I was able to write a successful console application that utilizes the function similarly but when trying to replicated it in Visual Studio I receive the following error.

System.Reflection.TargetInvocationException
HResult=0x80131604
Message=Exception has been thrown by the target of an invocation.
Source=mscorlib
StackTrace:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
.
.
.
Inner Exception 1:
FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The system cannot find the file specified.

Both classes are in the ComputeFormula namespace, so I'm unsure why it cannot load it.

Any suggestions?

- Mike

 

Attachments (1)
Mike Kolenda Accepted Answer Pending Moderation
  1. Wednesday, 15 December 2021 21:27 PM UTC
  2. .NET DataStore
  3. # 1

The later.  ".NET DataStore works by itself but not inside your .NET WinForms project"

The .NET Core is more key to this. Our intention is to utilize it in DLL that is built using .NET Framework 4.5.2. I was unable to use it in either.

It looks like my next course of action will be how to convert the existing project to .NET Core. A REST API is not an option at this point.

- Mike

 

 

Comment
  1. Armeen Mazda @Appeon
  2. Wednesday, 15 December 2021 21:48 PM UTC
Yes, Currently .NET Core 3.1 version supported. In PowerBuilder 2022 we plan to support .NET 6.
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 15 December 2021 16:25 PM UTC
  2. .NET DataStore
  3. # 2

You mean the code works in SnapDevelop but not in Visual Studio?

Or do you mean the .NET DataStore works by itself but not inside your .NET WinForms project?

You should note that .NET DataStore is based on .NET Core so if your project is not also .NET Core cannot be used.  The other way around it would be make the .NET DataStore a REST API and call it remotely from your .NET WinForm app.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.