<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" version="2.0">
<channel>
	<title>Comments for Codebender</title>
	
	<link>http://codebender.denniland.com</link>
	<description>not the last of his kind</description>
	<lastBuildDate>Sun, 22 Apr 2012 15:16:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/codebender-comments" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="codebender-comments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on A singleton base class to implement the singleton pattern in C# by Denni Gautama</title>
		<link>http://codebender.denniland.com/a-singleton-base-class-to-implement-the-singleton-pattern-in-c/comment-page-1/#comment-10354</link>
		<dc:creator>Denni Gautama</dc:creator>
		<pubDate>Sun, 22 Apr 2012 15:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebender.denniland.com/?p=58#comment-10354</guid>
		<description>You're right, thanks :)</description>
		<content:encoded><![CDATA[<p>You&#8217;re right, thanks <img src='http://codebender.denniland.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A singleton base class to implement the singleton pattern in C# by ray</title>
		<link>http://codebender.denniland.com/a-singleton-base-class-to-implement-the-singleton-pattern-in-c/comment-page-1/#comment-10353</link>
		<dc:creator>ray</dc:creator>
		<pubDate>Fri, 20 Apr 2012 04:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebender.denniland.com/?p=58#comment-10353</guid>
		<description>you have a typo on line 5. it should be upper T, not t.</description>
		<content:encoded><![CDATA[<p>you have a typo on line 5. it should be upper T, not t.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Common coding issues when working with anonymous SharePoint sites by SSP</title>
		<link>http://codebender.denniland.com/common-coding-issues-when-working-with-anonymous-sharepoint-sites/comment-page-1/#comment-10352</link>
		<dc:creator>SSP</dc:creator>
		<pubDate>Wed, 14 Mar 2012 10:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebender.denniland.com/?p=81#comment-10352</guid>
		<description>Hi Dennis,

I believe the authentication mechanism is working fine because, the SignOut feature is present and is working properly. The strange thing is that when I check for SPContext.Current.Web.CurrentUser for some custom webparts (in a separate subsite) it works fine, while in the same session when it doesnt work for other webparts (in root site).

I tried comparing the Anonymous access permission b/w the subsite and the root site, but they look the same.
rgds</description>
		<content:encoded><![CDATA[<p>Hi Dennis,</p>
<p>I believe the authentication mechanism is working fine because, the SignOut feature is present and is working properly. The strange thing is that when I check for SPContext.Current.Web.CurrentUser for some custom webparts (in a separate subsite) it works fine, while in the same session when it doesnt work for other webparts (in root site).</p>
<p>I tried comparing the Anonymous access permission b/w the subsite and the root site, but they look the same.<br />
rgds</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Common coding issues when working with anonymous SharePoint sites by Denni Gautama</title>
		<link>http://codebender.denniland.com/common-coding-issues-when-working-with-anonymous-sharepoint-sites/comment-page-1/#comment-10351</link>
		<dc:creator>Denni Gautama</dc:creator>
		<pubDate>Wed, 14 Mar 2012 10:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebender.denniland.com/?p=81#comment-10351</guid>
		<description>It means that the user hasn't been authenticated properly and is still treated as an anonymous user. Try to verify whether your authentication mechanism works properly, i.e., by checking the Sign Out button on the top of the page, or work with some out-of-the-box document libraries (upload/edit files).</description>
		<content:encoded><![CDATA[<p>It means that the user hasn&#8217;t been authenticated properly and is still treated as an anonymous user. Try to verify whether your authentication mechanism works properly, i.e., by checking the Sign Out button on the top of the page, or work with some out-of-the-box document libraries (upload/edit files).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Common coding issues when working with anonymous SharePoint sites by SSP</title>
		<link>http://codebender.denniland.com/common-coding-issues-when-working-with-anonymous-sharepoint-sites/comment-page-1/#comment-10350</link>
		<dc:creator>SSP</dc:creator>
		<pubDate>Wed, 14 Mar 2012 09:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebender.denniland.com/?p=81#comment-10350</guid>
		<description>Nope i get null when i check for HttpContext.Current.Identity regardless of windows login or fba login.</description>
		<content:encoded><![CDATA[<p>Nope i get null when i check for HttpContext.Current.Identity regardless of windows login or fba login.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Common coding issues when working with anonymous SharePoint sites by Denni Gautama</title>
		<link>http://codebender.denniland.com/common-coding-issues-when-working-with-anonymous-sharepoint-sites/comment-page-1/#comment-10349</link>
		<dc:creator>Denni Gautama</dc:creator>
		<pubDate>Wed, 14 Mar 2012 09:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebender.denniland.com/?p=81#comment-10349</guid>
		<description>Normally you only need to do it once per site collection.
Do you get the valid value if you call HttpContext.Current.Identity?</description>
		<content:encoded><![CDATA[<p>Normally you only need to do it once per site collection.<br />
Do you get the valid value if you call HttpContext.Current.Identity?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Common coding issues when working with anonymous SharePoint sites by SSP</title>
		<link>http://codebender.denniland.com/common-coding-issues-when-working-with-anonymous-sharepoint-sites/comment-page-1/#comment-10348</link>
		<dc:creator>SSP</dc:creator>
		<pubDate>Wed, 14 Mar 2012 09:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebender.denniland.com/?p=81#comment-10348</guid>
		<description>Hi Denni,

When  the FBA user is created we are doing the SPWeb.EnsureUser. Any suggestions where else do i need to do the same? Or are you saying I need to do the same after the user is authenticated?

Rgds,</description>
		<content:encoded><![CDATA[<p>Hi Denni,</p>
<p>When  the FBA user is created we are doing the SPWeb.EnsureUser. Any suggestions where else do i need to do the same? Or are you saying I need to do the same after the user is authenticated?</p>
<p>Rgds,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Common coding issues when working with anonymous SharePoint sites by Denni Gautama</title>
		<link>http://codebender.denniland.com/common-coding-issues-when-working-with-anonymous-sharepoint-sites/comment-page-1/#comment-10347</link>
		<dc:creator>Denni Gautama</dc:creator>
		<pubDate>Wed, 14 Mar 2012 09:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebender.denniland.com/?p=81#comment-10347</guid>
		<description>Hi,

It seems that the user object has not been added to the SharePoint site. If you know the user's login name, you can use the SPWeb.EnsureUser method to add them to the site.

More information about this method:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.ensureuser.aspx</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>It seems that the user object has not been added to the SharePoint site. If you know the user&#8217;s login name, you can use the SPWeb.EnsureUser method to add them to the site.</p>
<p>More information about this method:<br />
<a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.ensureuser.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.ensureuser.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Common coding issues when working with anonymous SharePoint sites by SSP</title>
		<link>http://codebender.denniland.com/common-coding-issues-when-working-with-anonymous-sharepoint-sites/comment-page-1/#comment-10346</link>
		<dc:creator>SSP</dc:creator>
		<pubDate>Wed, 14 Mar 2012 08:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebender.denniland.com/?p=81#comment-10346</guid>
		<description>Hi,

Am always getting SPContext.Current.Web.CurrentUser=null when I login using forms authentication or windows wuthentication.

any ideas why this is happening, am using Claims mode </description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Am always getting SPContext.Current.Web.CurrentUser=null when I login using forms authentication or windows wuthentication.</p>
<p>any ideas why this is happening, am using Claims mode </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Refreshing the LINQ to SQL DataContext by Clearing the Cache by Anonymous</title>
		<link>http://codebender.denniland.com/refreshing-the-linq-to-sql-datacontext-by-clearing-the-cache/comment-page-1/#comment-10341</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 16 Sep 2011 03:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebender.denniland.com/?p=53#comment-10341</guid>
		<description>Hi Alex,

This article is only for LINQ to SQL. Since it's a calling a L2S private method, there's no guarantee that method exists in other libraries.

Other possible workarounds are just like you said, by disposing and recreating the DataContext instance, or simple instantiate a new DataContext instance.</description>
		<content:encoded><![CDATA[<p>Hi Alex,</p>
<p>This article is only for LINQ to SQL. Since it&#8217;s a calling a L2S private method, there&#8217;s no guarantee that method exists in other libraries.</p>
<p>Other possible workarounds are just like you said, by disposing and recreating the DataContext instance, or simple instantiate a new DataContext instance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

