For reference, this is the import I'm using (and that has been working prior to this licensing error)SoftPro.Classic.Licensing.Client.Exceptions.EnvironmentDataException: ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "SoftPro" requested by the login. The login failed.
ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "SoftPro" requested by the login. The login failed.
at SoftPro.Classic.Licensing.Client.EnvironmentDataFactory.Create_ODBC(String version, String server, String database)
at GetServiceInterface(CStringT<char\,StrTraitMFC_DLL<char\,ATL::ChTraitsCRT<char> > >* csVersion, CStringT<char\,StrTraitMFC_DLL<char\,ATL::ChTraitsCRT<char> > >* csServer, CStringT<char\,StrTraitMFC_DLL<char\,ATL::ChTraitsCRT<char> > >* csDatabase)
at LoadLicense(CStringT<char\,StrTraitMFC_DLL<char\,ATL::ChTraitsCRT<char> > >* csVersion, CStringT<char\,StrTraitMFC_DLL<char\,ATL::ChTraitsCRT<char> > >* csServer, CStringT<char\,StrTraitMFC_DLL<char\,ATL::ChTraitsCRT<char> > >* csDatabase, CStringT<char\,StrTraitMFC_DLL<char\,ATL::ChTraitsCRT<char> > >* csFlavor, CStringT<char\,StrTraitMFC_DLL<char\,ATL::ChTraitsCRT<char> > >* csSerialNumber, CStringArray* csaFeatures, Int32 bForceRenew, CStringT<char\,StrTraitMFC_DLL<char\,ATL::ChTraitsCRT<char> > >* csError1, CStringT<char\,StrTraitMFC_DLL<char\,ATL::ChTraitsCRT<char> > >* csError2)
at Softpro.ProFormAPI.CreateFile(String UserID, String Template, String Prefix, String Suffix, Int32 TabVersion, String FileNumCode, StringBuilder NewFileID)
Code: Select all
[DllImport("C:\\ProgramData\\ShortTrack\\ProFormAPI\\ProFormAPI.dll", EntryPoint = "CreateProFormFile", CallingConvention = CallingConvention.Cdecl)]
private static extern int CreateFile(string UserID, string Template, string Prefix, string Suffix, int TabVersion, string FileNumCode, StringBuilder NewFileID);