Error opening the V10 platform of an external application

1

When opening the spring platform of an external application with the code below, I get the error

Dim objAplConf As StdBSConfApl = New StdBSConfApl()
Dim Plataforma As StdPlatBS = New StdPlatBS()

objAplConf.Instancia = Instance
objAplConf.AbvtApl = "ERP"
objAplConf.LicVersaoMinima = "10.00"

Plataforma.AbrePlataforma(CType(Line, EnumTipoPlataforma), objAplConf)

The spring dlls are loaded with the assemblyresolve event Any help?

    
asked by anonymous 07.06.2018 / 13:12

1 answer

0

In order to open the platform it is necessary to assign values to the user properties to overcome the authentication issue, ie:

objAplConf.Utilizador = "primavera"
objAplConf.PwdUtilizador = "password"

Since the environment is VB.NET and not C #, you should also pay attention to the path passed to AssemblyResolve , which in C # is like:

const string PRIMAVERA_COMMON_FILES_FOLDER = "PRIMAVERA\SG100\Apl"

but in VB the bars can not be duplicated:

Const PRIMAVERA_COMMON_FILES_FOLDER As String = "PRIMAVERA\SG100\Apl"

Otherwise the DLLs are not properly loaded and end up issuing a binding error.

    
07.06.2018 / 15:28