<?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 : DevForce Authentication Issue</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : DevForce Authentication Issue</description>
  <pubDate>Thu, 11 Jun 2026 07:46:41 -700</pubDate>
  <lastBuildDate>Thu, 28 Feb 2008 08:53:31 -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=707</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>DevForce Authentication Issue :  If I correctly understand your...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=707&amp;PID=2619#2619</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 707<br /><strong>Posted:</strong> 28-Feb-2008 at 8:53am<br /><br /><SPAN style="COLOR: #1f497d"><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">If I correctly understand your predicament, you find that you can continue advancing through the program by pressing F5 until you get through to the catch on the client. In other words, your application can continue just fine and would not stop here if you were running outside the debugger.<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" color=#000000 size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">What you need, then, is to TELL the debugger to keep going (“don’t stop here”). You need to use one of the attributes that gives direction to the debugger.<o:p></o:p></FONT></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" color=#000000 size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">Here’s an example from my LoginManager class code:<o:p></o:p></FONT></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" color=#000000 size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT color=#000000>&nbsp; &#091;DebuggerStepThrough&#093; </FONT><SPAN style="COLOR: #76923c">// Let client catch exceptions<o:p></o:p></SPAN></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT color=#000000>&nbsp; public IPrincipal Login(ILoginCredential pCredential, PersistenceManager pManager) { ...<o:p></o:p></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri"><o:p><FONT color=#000000>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">You may find several methods in your class that need this attribute … or another like it such as:<o:p></o:p></FONT></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" color=#000000 size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" color=#000000 size=3>&nbsp;&nbsp;&nbsp; </FONT><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT color=#000000>&#091;DebuggerNonUserCode&#093; </FONT><SPAN style="COLOR: #76923c">// Let client catch exceptions</SPAN><SPAN style="COLOR: #4f6228"><o:p></o:p></SPAN></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT color=#000000><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp; private static AppIdentity GetUserPasswordIdentity(ILoginCredential pCredential, PersistenceManager pManager) { …</SPAN><FONT size=3><FONT face="Times New Roman"> <SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri"><o:p></o:p></SPAN></FONT></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" color=#000000 size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">Frankly, I don’t remember off the top of my head which of these two to use in which circumstances. <o:p></o:p></FONT></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" color=#000000 size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" color=#000000 size=3>Here’s a web page that discusses these attributes: </FONT><a href="http://blogs.msdn.com/stevejs/archive/2005/12/03/499803.aspx" target="_blank"><FONT face="Times New Roman" size=3>http://blogs.msdn.com/stevejs/archive/2005/12/03/499803.aspx</FONT></A><o:p></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" color=#000000 size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">Please note that, once you have such an attribute in place, YOU CANNOT DEBUG INTO THE METHOD. If you try to put a breakpoint on a line in “Login”, you’ll see the brown dot just fine but you’ll probably overlook the tooltip that tells you the debugger won’t actually stop there.<o:p></o:p></FONT></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" color=#000000 size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT color=#000000><FONT face="Times New Roman">So when you WANT to debug “Login”, you have to comment out the attribute. Just remember to uncomment it later </FONT><SPAN style="FONT-FAMILY: Wingdings">J</SPAN><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" color=#000000 size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p><FONT color=#000000>&nbsp;</FONT></o:p></SPAN></P><P =Ms&#111;normal></SPAN></P>]]>
   </description>
   <pubDate>Thu, 28 Feb 2008 08:53:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=707&amp;PID=2619#2619</guid>
  </item> 
  <item>
   <title>DevForce Authentication Issue : When debugging our application...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=707&amp;PID=2618#2618</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=20" rel="nofollow">Customer</a><br /><strong>Subject:</strong> 707<br /><strong>Posted:</strong> 28-Feb-2008 at 8:50am<br /><br /><P =Ms&#111;normal>When debugging our application inside of Visual Studio.NET (in a non-remoting deployment environment) we encounter a break in code when our LoginManager throws an exception. Take this scenario for example:</P><P =MsoListParagraph style="TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-list: Ignore">1)<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN>Client calls login on the persistencemanager with invalid credentials<?:NAMESPACE PREFIX = O /><O:P></O:P></P><P =MsoListParagraph style="TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-list: Ignore">2)<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN>LoginManager throws an exception (invalid credentials supplied)<O:P></O:P></P><P =MsoListParagraph style="TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-list: Ignore">3)<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN>Client application catches the exception, providing another attempt to login</P><P =Ms&#111;normal>It is at step 2 where our debugger is breaking on the exception, treating this as an unhandled exception. It is critical to our development team to handle this exception appropriately so that the debugger does not break unexpectedly during the login method. Do you have any suggestions to prevent the debugger from breaking when this exception is thrown?<O:P></O:P></P><P =Ms&#111;normal><O:P>&nbsp;</O:P></P>]]>
   </description>
   <pubDate>Thu, 28 Feb 2008 08:50:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=707&amp;PID=2618#2618</guid>
  </item> 
 </channel>
</rss>