--------------------------------------------------
Excel-DNA is now registered on GitHub Sponsors.
With a small monthly contribution you encourage further development and support.
--------------------------------------------------
Hi Mark,
I presume you are running into an issue where the SqlClient is not locating and loading the right additional .dll libraries it requires.
Then it falls back to am implementation that throws this exception.
See
Frequently Asked Questions · dotnet/SqlClient Wiki (github.com)
You might want to see how a net6.0-windows console application ends up looking in the output directory (or directories under it).
If you have the right libraries in the Excel-DNA add-in’s output directory, but still get this error, then maybe you need to locate and preload some library yourself.
If you’re still stuck, it would help to put a little self-contained sample add-in on GitHub that exhibits the problem and we can use as a starting point.
-Govert
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/c8cf6d06-bffc-4a15-8609-31dd020976a2n%40googlegroups.com.
Hi Henrik,
Can you try by copying the 6 files under
bin\debug\net6.0-windows\runtimes\win\lib\net6.0
into the directory
bin\debug\net6.0-windows
This will overwrite the default implementation of EFCore (which is giving you the problematic message) with the windows version of the files that you need.
After that I get a new error message:
Format of the initialization string does not conform to specification starting at index 0.
This makes sense given your test and should allow you to get a bit further.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/e1422854-b197-4f85-9db0-972db7d7b628n%40googlegroups.com.
Hi Glayson,
After building, you need to copy these two files into your output directory (which would be something like bin\debug\net6.0-windows\)
Every time you rebuild, the first one will be overwritten, so you’ll have to make some post-build plan to automate this.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/99263d3d-b4e9-4207-9958-81fa1aaa548bn%40googlegroups.com.