Skip to main content

Is there a .Net Core / .Net 6 compatible MVSP Client API?  If not, is there any planes to support this?

I have tried using API version 2.1 for .Net Framework 4.5 in a .Net 6 core application and get the following runtime error.

Exception:
The type initializer for 'rocketsoftware.MVSP.TIGRCommmon' threw an exception.

Inner Exception:
Could not load type 'Microsoft.VisualBasic.ApplicationServices.User' from assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

.Net Framework DLLs can be loaded into .Net 6 as long as the DLL’s referenced assemblies has a compatible .Net Core equivalent, 'Microsoft.VisualBasic.ApplicationServices.User'  was not ported to .Net Core.

Thanks,

Bill

Is there a .Net Core / .Net 6 compatible MVSP Client API?  If not, is there any planes to support this?

I have tried using API version 2.1 for .Net Framework 4.5 in a .Net 6 core application and get the following runtime error.

Exception:
The type initializer for 'rocketsoftware.MVSP.TIGRCommmon' threw an exception.

Inner Exception:
Could not load type 'Microsoft.VisualBasic.ApplicationServices.User' from assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

.Net Framework DLLs can be loaded into .Net 6 as long as the DLL’s referenced assemblies has a compatible .Net Core equivalent, 'Microsoft.VisualBasic.ApplicationServices.User'  was not ported to .Net Core.

Thanks,

Bill

There was some work done on MVSP and .NET Core. I'm not sure of the current status, but will check.

Is there a .Net Core / .Net 6 compatible MVSP Client API?  If not, is there any planes to support this?

I have tried using API version 2.1 for .Net Framework 4.5 in a .Net 6 core application and get the following runtime error.

Exception:
The type initializer for 'rocketsoftware.MVSP.TIGRCommmon' threw an exception.

Inner Exception:
Could not load type 'Microsoft.VisualBasic.ApplicationServices.User' from assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

.Net Framework DLLs can be loaded into .Net 6 as long as the DLL’s referenced assemblies has a compatible .Net Core equivalent, 'Microsoft.VisualBasic.ApplicationServices.User'  was not ported to .Net Core.

Thanks,

Bill

Is there any new information on this?


Is there a .Net Core / .Net 6 compatible MVSP Client API?  If not, is there any planes to support this?

I have tried using API version 2.1 for .Net Framework 4.5 in a .Net 6 core application and get the following runtime error.

Exception:
The type initializer for 'rocketsoftware.MVSP.TIGRCommmon' threw an exception.

Inner Exception:
Could not load type 'Microsoft.VisualBasic.ApplicationServices.User' from assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

.Net Framework DLLs can be loaded into .Net 6 as long as the DLL’s referenced assemblies has a compatible .Net Core equivalent, 'Microsoft.VisualBasic.ApplicationServices.User'  was not ported to .Net Core.

Thanks,

Bill

Here's version 2.1.1.1 of the .NET API that supports .NET 6 & 7. MVSP version 1.8.17 will be OK, or if you're on 10.3 you're already running 1.8.18.

Give it a try.


Is there a .Net Core / .Net 6 compatible MVSP Client API?  If not, is there any planes to support this?

I have tried using API version 2.1 for .Net Framework 4.5 in a .Net 6 core application and get the following runtime error.

Exception:
The type initializer for 'rocketsoftware.MVSP.TIGRCommmon' threw an exception.

Inner Exception:
Could not load type 'Microsoft.VisualBasic.ApplicationServices.User' from assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

.Net Framework DLLs can be loaded into .Net 6 as long as the DLL’s referenced assemblies has a compatible .Net Core equivalent, 'Microsoft.VisualBasic.ApplicationServices.User'  was not ported to .Net Core.

Thanks,

Bill

Hi Brian,

This works great with C#, but I can't get MVSP on the server to work with SSL.  I have a server.pem file in the /usr/lib/pick directory and MVSP seems to start ok when I instruct it to do so with ssl. But if I try to use openssl to connect to it, it acts like there is no certificate:

[root@hotbackup log]# openssl s_client -connect localhost:9000
CONNECTED(00000003)
140144259938192:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:794:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 289 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : 0000
    Session-ID:
    Session-ID-ctx:
    Master-Key:
    Key-Arg   : None
    Krb5 Principal: None
    PSK identity: None
    PSK identity hint: None
    Start Time: 1723061738
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)

and if I try it with the C# library, I get an exeption:

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
   at System.Security.Cryptography.X509Certificates.X509CertificateCollection.get_Item(Int32 index)
   at rocketsoftware.MVSP.Pick.OnLocalCertificateSelect(Object sender, String targetHost, X509CertificateCollection localCertificates, X509Certificate remoteCertificate, String[] acceptableIssuers)
   at System.Net.Security.SslStream.userCertSelectionCallbackWrapper(String targetHost, X509CertificateCollection localCertificates, X509Certificate remoteCertificate, String[] acceptableIssuers)
   at System.Net.Security.SecureChannel.AcquireClientCredentials(Byte[]& thumbPrint)
   at System.Net.Security.SecureChannel.GenerateToken(Byte[] input, Int32 offset, Int32 count, Byte[]& output)
   at System.Net.Security.SecureChannel.NextMessage(Byte[] incoming, Int32 offset, Int32 count)
   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest, Boolean renegotiation)
   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest, Boolean renegotiation)
   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)
   at rocketsoftware.MVSP.Pick.ConnectCore(String hostName, Int32 hostPort, String userName, String userPassword, Boolean sslConnect, eLicenseType licenseType)

Is there a trick to getting SSL to work with MVSP?

Thanks

Tom


Is there a .Net Core / .Net 6 compatible MVSP Client API?  If not, is there any planes to support this?

I have tried using API version 2.1 for .Net Framework 4.5 in a .Net 6 core application and get the following runtime error.

Exception:
The type initializer for 'rocketsoftware.MVSP.TIGRCommmon' threw an exception.

Inner Exception:
Could not load type 'Microsoft.VisualBasic.ApplicationServices.User' from assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

.Net Framework DLLs can be loaded into .Net 6 as long as the DLL’s referenced assemblies has a compatible .Net Core equivalent, 'Microsoft.VisualBasic.ApplicationServices.User'  was not ported to .Net Core.

Thanks,

Bill

Looks like I posted the wrong .DLL. Should have posted 2.2.1.1, not 2.1.1.1. Oops. Well, here it is.