Quantcast
Channel: Microsoft Dynamics SL Forum - Recent Threads
Viewing all articles
Browse latest Browse all 2378

Simple console app crashes when trying to log into Dynamics

$
0
0

I'm trying to create a simple app to login to Dynamics and upload a file via transaction import. I've attepted the following -

using (SIVToolbar tb = new SIVToolbar())
{
    tb.Login("server", "system db", "company id", null, null);
    tb.Logout();
    tb.Quit();
}

via Windows authentication so it should ignore the last two parameters.

However, I'm getting the following error -
Failed to read from an IPC Port: The pipe has been ended.

The stack trace is -
System.Runtime.Remoting.RemotingException
HResult=0x8013150B
Message=Failed to read from an IPC Port: The pipe has been ended.

Source=Microsoft.Dynamics.SL.ObjectModel
StackTrace:
at Microsoft.Dynamics.SL.ObjectModel.ObjectModelHelper.ReThrowParentToolbarException(Exception ex)
at Microsoft.Dynamics.SL.ObjectModel.SIVToolbar.Login(String SystemDatabaseServerName, String SystemDatabaseName, String CompanyID, String UserID, String Password)
at Dynamics.Program.Main(String[] args) in C:\Users\xxxxx\source\repos\Dynamics\Dynamics\Program.cs:line 13

Any help would be appreciated.

Tom.


Viewing all articles
Browse latest Browse all 2378

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>