<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Call Connect() before doing a Login.</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Call Connect() before doing a Login.</description>
  <pubDate>Wed, 29 Jul 2026 06:11:59 -700</pubDate>
  <lastBuildDate>Mon, 25 Oct 2010 06:11:58 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2255</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Call Connect() before doing a Login. : Ah....it wasn&amp;#039;t rebuilding...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2255&amp;PID=8905#8905</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=914" rel="nofollow">benmcneill</a><br /><strong>Subject:</strong> 2255<br /><strong>Posted:</strong> 25-Oct-2010 at 6:11am<br /><br />Ah....it wasn't rebuilding the xap and thus reading an old one...fixed now:)]]>
   </description>
   <pubDate>Mon, 25 Oct 2010 06:11:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2255&amp;PID=8905#8905</guid>
  </item> 
  <item>
   <title>Call Connect() before doing a Login. : Thanks,Have tried below, but I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2255&amp;PID=8904#8904</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=914" rel="nofollow">benmcneill</a><br /><strong>Subject:</strong> 2255<br /><strong>Posted:</strong> 25-Oct-2010 at 5:56am<br /><br /><div>Thanks,</div><div><br></div><div>Have tried below, but I get nothing. I tried the boolean haserror property also, but nothing, not even a message box. If I delete the entire Login Method, i still get the exception, even though LoginAsync isn't being called anywhere in the program. It's as if the whole method is being completely ignored but Login() is called upon Page_Loaded. Weird thing is, this error only started appearing after I added a new project to the solution. This didn't change the startup project or cause and inconsistencies either.</div><div><br></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;private void Login()</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ILoginCredential credential = null;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;credential = new FormsAuthenticationLoginCredential("user", "password", "BEN-NOTEBOOK", true);</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EntityManager.ConnectAsync(op =&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var results = op.Error.Message;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MessageBox.Show(results.ToString());</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EntityManager.LoginAsync(credential, LoginCompleted, null);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;});</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div></div>]]>
   </description>
   <pubDate>Mon, 25 Oct 2010 05:56:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2255&amp;PID=8904#8904</guid>
  </item> 
  <item>
   <title>Call Connect() before doing a Login. : The connect call is probably failing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2255&amp;PID=8900#8900</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2255<br /><strong>Posted:</strong> 24-Oct-2010 at 8:20am<br /><br />The connect call is probably failing for some reason.&nbsp; Check the op.Error returned by ConnectAsync to see what's going on.]]>
   </description>
   <pubDate>Sun, 24 Oct 2010 08:20:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2255&amp;PID=8900#8900</guid>
  </item> 
  <item>
   <title>Call Connect() before doing a Login. : Hi GuysI&amp;#039;ve read the other...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2255&amp;PID=8898#8898</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=914" rel="nofollow">benmcneill</a><br /><strong>Subject:</strong> 2255<br /><strong>Posted:</strong> 23-Oct-2010 at 9:09pm<br /><br />Hi Guys<div><br></div><div>I've read the other forum posts on this issue but just can't figure it out.</div><div><br></div><div>Several seconds after my app loads in Browser, I get "InvalidOperationException: Call Connect() before doing a Login".</div><div><br></div><div>Thing is, I am calling this. I have, in the Login() method upon Load:</div><div><br></div><div><div><div><b>private void Login()</b></div><div><b>{</b></div><div><b>&nbsp;&nbsp; &nbsp; &nbsp; ILoginCredential credential = null;</b></div><div><b>&nbsp;&nbsp; &nbsp; &nbsp; credential = new FormsAuthenticationLoginCredential("user", "password", "BENDESKTOP", true);</b></div><div><b><br></b></div><div><b>&nbsp;&nbsp; &nbsp; &nbsp; EntityManager.ConnectAsync(op =&gt;</b></div><div><b>&nbsp;&nbsp; &nbsp; &nbsp; {</b></div><div><b>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EntityManager.LoginAsync(credential, LoginCompleted, null);</b></div><div><b>&nbsp;&nbsp; &nbsp; &nbsp; });</b></div><div><b>}</b></div></div></div><div><br></div><div>If I completely remove the LoginAsync call, I still get told to Connect before logging in too. I had the app running fine for weeks, and all I did to change it was add a new project to the solution, so can't work out what's happening.</div><div><br></div><div>I originally had ConnectAsync and then LoginAsync separately (instead of LoginAsync call within ConnectAsync call) but the result was the same, as is to be expected I guess.</div><div><br></div><div>Anybody able to assist? Would be greatly appreciated. (I'm sure it's something simple).</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>Cheers,</div><div>Ben</div>]]>
   </description>
   <pubDate>Sat, 23 Oct 2010 21:09:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2255&amp;PID=8898#8898</guid>
  </item> 
 </channel>
</rss>