<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	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/"
		>
<channel>
	<title>Comments on: Use Asp.Net Membership provider with a WCF .svc service</title>
	<atom:link href="http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/</link>
	<description>Wrecks of code floating in the sea of Internet By Ricci Gian Maria</description>
	<lastBuildDate>Thu, 09 Feb 2012 16:15:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Robalot</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/comment-page-1/#comment-3270</link>
		<dc:creator>Robalot</dc:creator>
		<pubDate>Wed, 28 Jul 2010 15:30:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/#comment-3270</guid>
		<description>Here&#039;s a stupid question: I never got the &#039;Keyset does not exist&#039;...does this mean I did something wrong?</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a stupid question: I never got the &#8216;Keyset does not exist&#8217;&#8230;does this mean I did something wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maksym Kozlenko</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/comment-page-1/#comment-3224</link>
		<dc:creator>Maksym Kozlenko</dc:creator>
		<pubDate>Thu, 15 Jul 2010 08:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/#comment-3224</guid>
		<description>For development environment is could be a good idea to disable certificate verification in config file

More info with code sample here

http://www.kozlenko.info/blog/2010/07/15/disabling-x-509-certificate-authentication-in-wcf/</description>
		<content:encoded><![CDATA[<p>For development environment is could be a good idea to disable certificate verification in config file</p>
<p>More info with code sample here</p>
<p><a href="http://www.kozlenko.info/blog/2010/07/15/disabling-x-509-certificate-authentication-in-wcf/" rel="nofollow">http://www.kozlenko.info/blog/.....on-in-wcf/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alkampfer</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/comment-page-1/#comment-3093</link>
		<dc:creator>alkampfer</dc:creator>
		<pubDate>Thu, 13 May 2010 08:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/#comment-3093</guid>
		<description>Revocation list should be related to denied certificates. The chain building failed usually is due to some certificate errors, have you some inner exception to better understand what is happening?

Feel free to write to my email that is alkampfer [at] nablasoft [dot] com 

Alk.</description>
		<content:encoded><![CDATA[<p>Revocation list should be related to denied certificates. The chain building failed usually is due to some certificate errors, have you some inner exception to better understand what is happening?</p>
<p>Feel free to write to my email that is alkampfer [at] nablasoft [dot] com </p>
<p>Alk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harini</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/comment-page-1/#comment-3092</link>
		<dc:creator>harini</dc:creator>
		<pubDate>Wed, 12 May 2010 19:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/#comment-3092</guid>
		<description>hi.. i am also getting the error x.509 chain building failed. I tried to follow as you said. But i couldnt find the piece of code that you specified in my client config file. But when i check in my MMC i could see my revocation list installed in there.</description>
		<content:encoded><![CDATA[<p>hi.. i am also getting the error x.509 chain building failed. I tried to follow as you said. But i couldnt find the piece of code that you specified in my client config file. But when i check in my MMC i could see my revocation list installed in there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alkampfer</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/comment-page-1/#comment-2727</link>
		<dc:creator>alkampfer</dc:creator>
		<pubDate>Thu, 22 Oct 2009 12:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/#comment-2727</guid>
		<description>Because HttpContext usually does not work for WCF Services, even with AspNetCompatibilityRequirements it is possible that the above code don&#039;t work.

Can you specify what is null in the instruction

HttpContext.Current.User.Identity.Name

if the Current is null it means that no httpcontext was created, if is not null and User is null is probably because asp.net engine is expecting someone to login through standard membership api, so you need cookie on che client and so on, but this is only a possibility.

Alk.</description>
		<content:encoded><![CDATA[<p>Because HttpContext usually does not work for WCF Services, even with AspNetCompatibilityRequirements it is possible that the above code don&#8217;t work.</p>
<p>Can you specify what is null in the instruction</p>
<p>HttpContext.Current.User.Identity.Name</p>
<p>if the Current is null it means that no httpcontext was created, if is not null and User is null is probably because asp.net engine is expecting someone to login through standard membership api, so you need cookie on che client and so on, but this is only a possibility.</p>
<p>Alk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/comment-page-1/#comment-2726</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Wed, 21 Oct 2009 18:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/#comment-2726</guid>
		<description>Hi, Just wanted to thank you for this...you did an awesome job...I got it running after slowly working through your steps.

I do have one existing problem and I am googling the hell out of it and cannot come up with an answer.  I think it&#039;s a simple configuration issue, but really cannot get it to work....

I am trying to access the HttpContext.Current from within my service...

I have this set in my service:
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
  public class MembershipService : IMembershipService

and I also have 


in my web.config of my asp.net app and my service app.config (which turns to web.config when deployed)

do you have any idea why I cannot access HttpContext?  when I debug it, it says 

bool enabled = ServiceHostingEnvironment.AspNetCompatibilityEnabled;

enabled is TRUE....

This works fine:
Thread.CurrentPrincipal.Identity.Name: ** WORKS
OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.Name: ** WORKS
HttpContext.Current.User.Identity.Name: ** DOESN&#039;T WORK...NULL

thanks!!!!!!!</description>
		<content:encoded><![CDATA[<p>Hi, Just wanted to thank you for this&#8230;you did an awesome job&#8230;I got it running after slowly working through your steps.</p>
<p>I do have one existing problem and I am googling the hell out of it and cannot come up with an answer.  I think it&#8217;s a simple configuration issue, but really cannot get it to work&#8230;.</p>
<p>I am trying to access the HttpContext.Current from within my service&#8230;</p>
<p>I have this set in my service:<br />
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]<br />
  public class MembershipService : IMembershipService</p>
<p>and I also have </p>
<p>in my web.config of my asp.net app and my service app.config (which turns to web.config when deployed)</p>
<p>do you have any idea why I cannot access HttpContext?  when I debug it, it says </p>
<p>bool enabled = ServiceHostingEnvironment.AspNetCompatibilityEnabled;</p>
<p>enabled is TRUE&#8230;.</p>
<p>This works fine:<br />
Thread.CurrentPrincipal.Identity.Name: ** WORKS<br />
OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.Name: ** WORKS<br />
HttpContext.Current.User.Identity.Name: ** DOESN&#8217;T WORK&#8230;NULL</p>
<p>thanks!!!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alkampfer</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/comment-page-1/#comment-2692</link>
		<dc:creator>alkampfer</dc:creator>
		<pubDate>Fri, 02 Oct 2009 12:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/#comment-2692</guid>
		<description>Actually I used for a production software so I do not have working sample that I can post here. I could try to extract a sample service, but basically the difficult part is the one related to issuing certificates, If you really need I can try to extract a working sample.
alk.</description>
		<content:encoded><![CDATA[<p>Actually I used for a production software so I do not have working sample that I can post here. I could try to extract a sample service, but basically the difficult part is the one related to issuing certificates, If you really need I can try to extract a working sample.<br />
alk.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

