<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Remote Access using API (Thread)</title><description> I am trying to connect for the first time to Spirateam from a Visual Studio .NET test project using the following code       ImportExportClient      connection =      new           ImportExportClient     ();         bool      result = connection.Connection_Authenticate(     "username"     ,      "password"     );         RemoteProject      [] projects = connection.Project_Retrieve();         foreach     (      RemoteProject      project      in      projects)    {        System.     Console     .WriteLine(project.ProjectId);    }    I get the connection ok to my test environment.   Connection_Authenticate returns true but the call to Project_Retreive() fails with the following error.       "The session was not authenticated, please call the Connection_Authenticate() method first"    But as you can see I have called the Connection Authenticate successfully.    There are projects in the SPirateam instance associated to this user.    Any suggestions on hoe to see what the error could be?    TIA           </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/issues-questions/20.aspx</link><item><guid isPermaLink="false">threadId=20</guid><author>Steven Hawkes (steven@hawkes.ch)</author><title>Remote Access using API</title><description> I am trying to connect for the first time to Spirateam from a Visual Studio .NET test project using the following code       ImportExportClient      connection =      new           ImportExportClient     ();         bool      result = connection.Connection_Authenticate(     "username"     ,      "password"     );         RemoteProject      [] projects = connection.Project_Retrieve();         foreach     (      RemoteProject      project      in      projects)    {        System.     Console     .WriteLine(project.ProjectId);    }    I get the connection ok to my test environment.   Connection_Authenticate returns true but the call to Project_Retreive() fails with the following error.       "The session was not authenticated, please call the Connection_Authenticate() method first"    But as you can see I have called the Connection Authenticate successfully.    There are projects in the SPirateam instance associated to this user.    Any suggestions on hoe to see what the error could be?    TIA           </description><pubDate>Sun, 27 Feb 2011 15:57:43 -0500</pubDate><a10:updated>2011-03-02T01:53:20-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/20.aspx</link></item><item><guid isPermaLink="false">messageId=23</guid><author>Steven Hawkes (steven@hawkes.ch)</author><title>  Steven Hawkes     I am trying to connect for the first time to Spirateam from a Visual Studio .NET</title><description>  Steven Hawkes     I am trying to connect for the first time to Spirateam from a Visual Studio .NET test project using the following code       ImportExportClient      connection =      new           ImportExportClient     ();         bool      result = connection.Connection_Authenticate(     "username"     ,      "password"     );         RemoteProject      [] projects = connection.Project_Retrieve();         foreach     (      RemoteProject      project      in      projects)    {        System.     Console     .WriteLine(project.ProjectId);    }    I get the connection ok to my test environment.   Connection_Authenticate returns true but the call to Project_Retreive() fails with the following error.       "The session was not authenticated, please call the Connection_Authenticate() method first"    But as you can see I have called the Connection Authenticate successfully.    There are projects in the SPirateam instance associated to this user.    Any suggestions on hoe to see what the error could be?    Below is the autogenerated config file.                                                                                                               </description><pubDate>Sun, 27 Feb 2011 16:21:15 -0500</pubDate><a10:updated>2011-02-27T16:21:15-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/20.aspx#reply23</link></item><item><guid isPermaLink="false">messageId=24</guid><author>Steven Hawkes (steven@hawkes.ch)</author><title>Please can you also tell me if there is a possibility to switch on logging and where I can see the l</title><description>Please can you also tell me if there is a possibility to switch on logging and where I can see the log files for Spirateam fro external access</description><pubDate>Sun, 27 Feb 2011 16:41:03 -0500</pubDate><a10:updated>2011-02-27T16:41:03-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/20.aspx#reply24</link></item><item><guid isPermaLink="false">messageId=25</guid><author>Steve M (mike.morrey+support@inflectra.com)</author><title>  Hello Steven,  Authentication information is stored in cookies. Therefore, before calling the Conn</title><description>  Hello Steven,  Authentication information is stored in cookies. Therefore, before calling the Connection_Authenticate(), be sure to create a cookie container -        ImportExportClient      connection =      new           ImportExportClient     (); connection.CookieContainer =       new           CookieContainer     ();        This creates the storage for cookies, so that on the next request (getting list of projects) the cookies are returned and the system knows you're logged on.     Also, I don't see you checking the result - be sure that 'result' is true, or else you really weren't logged on.     Thanks!         </description><pubDate>Mon, 28 Feb 2011 15:39:33 -0500</pubDate><a10:updated>2011-02-28T15:39:33-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/20.aspx#reply25</link></item><item><guid isPermaLink="false">messageId=29</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> Also since you're using WCF web services, an even easier way would be to simply change:     allowCo</title><description> Also since you're using WCF web services, an even easier way would be to simply change:     allowCookies    =     "     false     " to       allowCookies    =     "true    "      in your .config file and that will fix the issue. </description><pubDate>Wed, 02 Mar 2011 01:53:20 -0500</pubDate><a10:updated>2011-03-02T01:53:20-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/20.aspx#reply29</link></item></channel></rss>