FormerMember

Error installing console app

Posted By FormerMember

I have created a windows service in a console application using TopShelf library. If i run the app directly it works but i when I try to install it I get an error of 

Unhandled Exception: System.ArgumentException: Specified directory could not be
found
Parameter name: p:
at Sage.Peachtree.DataAccess.PervasiveDTISession.CreateDBName(String dbName,
String dictionaryPath)
at Sage.Peachtree.DataAccess.DatabaseInfoDLO.CreateDatabase(String serverName
, String dbNamePrefix, String uncDataPath, IList`1 dbListToSkip)
at Sage.Peachtree.DataAccess.DatabaseInfoDLO.GetPeachtreeGlobalDbName(String
serverName, String dataPath)
at Sage.Peachtree.Domain.GlobalContextExternal.PreOpen()
at Sage.SBD.ACS.Framework.BusinessLogic.ContextBase.OpenTemplateMethod(Boolea
n sageDriveHoldLock)
at Sage.Peachtree.API.GlobalContext.Open()
at Sage.Peachtree.API.PeachtreeSession.Begin(String applicationIdentifier)
at SageWinService.Program.Main(String[] args) in C:\Users\MBrown\source\repos
\SageWinService\SageWinService\Program.cs:line 26

Line 26:  m_apiSession.Begin(APPLICATION_IDENTIFIER);