<?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 : Multiple UserBase implementations</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Multiple UserBase implementations</description>
  <pubDate>Tue, 21 Apr 2026 12:19:07 -700</pubDate>
  <lastBuildDate>Wed, 30 Jun 2010 13:45:37 -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=1825</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>Multiple UserBase implementations : Thanks, the work-around works...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=7469#7469</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=543" rel="nofollow">pk55</a><br /><strong>Subject:</strong> 1825<br /><strong>Posted:</strong> 30-Jun-2010 at 1:45pm<br /><br />Thanks, the work-around works for both ESQL and for Stored Procedure calls. <DIV>&nbsp;</DIV><DIV>I didn't mention the SP issue before because it threw a different message but I was pretty sure it was related as it returned an entity that was in the container for the datasourcekey that wasn't getting initialized correctly.</DIV><DIV>&nbsp;</DIV><DIV>I'm pasting your work-around in case anyone else needs it.&nbsp; Just make sure you add references to your project for IdeaBlade.EntityModel.Edm.dll, IdeaBlade.EntityModel.Edm.Metadata.dll (wasn't sure if metadata was really needed but I added it)&nbsp;and System.Data.Entity.dll and add the using statements in the server class:</DIV><DIV>&nbsp;</DIV><DIV><FONT face=C&#111;nsolas color=#0000ff size=2><FONT face=C&#111;nsolas color=#0000ff size=2><FONT face=C&#111;nsolas color=#0000ff size=2><P>using</FONT></FONT></FONT><FONT face=C&#111;nsolas size=2><FONT face=C&#111;nsolas size=2> System.Data.Metadata.Edm;&nbsp;&nbsp;&nbsp; // for the key.EntityContainer</P><DIV></FONT></FONT><FONT face=C&#111;nsolas color=#0000ff size=2><FONT face=C&#111;nsolas color=#0000ff size=2><FONT face=C&#111;nsolas color=#0000ff size=2>using</FONT></FONT></FONT><FONT face=C&#111;nsolas size=2><FONT face=C&#111;nsolas size=2> IdeaBlade.EntityModel.Edm;</DIV></FONT></FONT></DIV><DIV>&nbsp;</DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 12pt"><FONT face="Times New Roman" size=3>Here's the workaround until the next release.&nbsp;&nbsp;Basically, you need to access the EntityContainer which will force the correct initialization.&nbsp; Here's some sample code&nbsp;written as an RPC call to the server, but you could also put this in the EntityServerQueryInterceptor.</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: C&#111;nsolas">public</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: C&#111;nsolas"> <SPAN style="COLOR: blue">static</SPAN> <SPAN style="COLOR: #2b91af">EntityCacheState</SPAN> LoadInitialData(<SPAN style="COLOR: #2b91af">IPrincipal</SPAN> principal, <SPAN style="COLOR: #2b91af">EntityManager</SPAN> serverEm, <SPAN style="COLOR: blue">params</SPAN> <SPAN style="COLOR: blue">object</SPAN>&#091;&#093; args) {<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: C&#111;nsolas">&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN> manager = (<SPAN style="COLOR: #2b91af">NorthwindIBEntities</SPAN>)serverEm;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: C&#111;nsolas"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: C&#111;nsolas">&nbsp; <SPAN style="COLOR: green">// Hack - </SPAN><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: C&#111;nsolas">&nbsp; <SPAN style="COLOR: green">// Get the DataSourceKey used by the problem query.&nbsp; It's a server-side EdmKey.&nbsp; Accessing the EntityContainer forces initialization.</SPAN><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: C&#111;nsolas">&nbsp; <SPAN style="COLOR: blue">var</SPAN> key = manager.DataSourceResolver.GetDataSourceKey(<SPAN style="COLOR: blue">typeof</SPAN>(<SPAN style="COLOR: #2b91af">Customer</SPAN>)) <SPAN style="COLOR: blue">as</SPAN> IdeaBlade.EntityModel.Edm.<SPAN style="COLOR: #2b91af">EdmKey</SPAN>;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: C&#111;nsolas">&nbsp; <SPAN style="COLOR: blue">var</SPAN> ec = key.EntityContainer;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'"><FONT size=3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; …..</FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'"><FONT size=3>}</FONT></SPAN></P></DIV></BLOCKQUOTE>]]>
   </description>
   <pubDate>Wed, 30 Jun 2010 13:45:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=7469#7469</guid>
  </item> 
  <item>
   <title>Multiple UserBase implementations : We will have this fixed in the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=7450#7450</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1825<br /><strong>Posted:</strong> 28-Jun-2010 at 8:00pm<br /><br />We will have this fixed in the next release (scheduled for the last two weeks in July). <DIV>&nbsp;</DIV><DIV>I'll send you&nbsp;a workaround as a follow up to the support case you submitted.</DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by ting - 28-Jun-2010 at 8:00pm</span>]]>
   </description>
   <pubDate>Mon, 28 Jun 2010 20:00:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=7450#7450</guid>
  </item> 
  <item>
   <title>Multiple UserBase implementations : Any progress on this or a timeline...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=7443#7443</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=543" rel="nofollow">pk55</a><br /><strong>Subject:</strong> 1825<br /><strong>Posted:</strong> 28-Jun-2010 at 12:40pm<br /><br />Any progress on this or a timeline when it might be fixed?&nbsp; ]]>
   </description>
   <pubDate>Mon, 28 Jun 2010 12:40:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=7443#7443</guid>
  </item> 
  <item>
   <title>Multiple UserBase implementations : The console app you submitted...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=7380#7380</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1825<br /><strong>Posted:</strong> 22-Jun-2010 at 7:45pm<br /><br />The console app you submitted with the NorthwindIB database was very clean.&nbsp; This helps a lot in tracking it down and we are working on it.&nbsp; Thanks!]]>
   </description>
   <pubDate>Tue, 22 Jun 2010 19:45:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=7380#7380</guid>
  </item> 
  <item>
   <title>Multiple UserBase implementations : The problem I&amp;#039;m having does...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=7379#7379</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=543" rel="nofollow">pk55</a><br /><strong>Subject:</strong> 1825<br /><strong>Posted:</strong> 22-Jun-2010 at 4:41pm<br /><br />The problem I'm having does not appear to be related to UserBase.&nbsp; It seems to be an issue with using a custom login manager and multiple EDMX datasources that use datasource key extensions (a multi-tenant app).<DIV>&nbsp;</DIV><DIV>I've been able to duplicate the problem by modifying your Security sample app (which is in C:\Program Files\DevForce 2010\Learning Resources\100_Security\Samples\300COR\CodeCS\DatabaseLookup_ConsoleUI\Security.sln) which doesn't return a UserBase but just returns an IPrincipal credential.</DIV><DIV>&nbsp;</DIV><DIV>If you first authenticate without using any datasource key extensions (which seems to be the only way to do that) and during that login process, query the database (like you do for Users in that example and we do as well), any entities in the EDMX associated with that datasource key that was used during login won't be loaded when you make subsequent&nbsp;calls to a server-side RPC method&nbsp;using ESQL (they will work using just DevForce Linq queries) where the Entity Manager has been created using a datasource key extenstion for the same EDMX.</DIV><DIV>&nbsp;</DIV><DIV>I've opened a support ticket for this (#7066) and have attached the sample solution.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 22 Jun 2010 16:41:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=7379#7379</guid>
  </item> 
  <item>
   <title>Multiple UserBase implementations : In 6.0.3.1, I still see the same...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=7366#7366</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=543" rel="nofollow">pk55</a><br /><strong>Subject:</strong> 1825<br /><strong>Posted:</strong> 21-Jun-2010 at 3:24pm<br /><br />In 6.0.3.1, I still see the same Zero or One test for EntityModel.dll UserBase that Stephen reported:<DIV>&nbsp;</DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV><a href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:4.0.0.0:b77a5c561934e089/System.Type" target="_blank"><U>Type</U></A> <B>type</B> = <a href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Core:6.0.3.1:287b5094865421c0/IdeaBlade.Core.Reflecti&#111;nFns" target="_blank"><U>ReflectionFns</U></A>.<A title=" IdeaBlade.Core.Reflecti&#111;nFns.GetImplementing, IEnumerable, Cardinality, bool);" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Core:6.0.3.1:287b5094865421c0/IdeaBlade.Core.ReflectionFns/GetTypeImplementing(System.Type,System.Collections.Generic.IEnumerable,IdeaBlade.Core.Cardinality,Boolean):System.Type"><U>GetTypeImplementing</U></A>(<FONT color=#1000a0>typeof</FONT>(<a href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.EntityModel:6.0.3.1:287b5094865421c0/IdeaBlade.EntityModel.UserBase" target="_blank"><U>UserBase</U></A>), <a href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Core:6.0.3.1:287b5094865421c0/IdeaBlade.Core.IdeaBladeC&#111;nfig" target="_blank"><U>IdeaBladeConfig</U></A>.<a href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Core:5.2.3.1:287b5094865421c0/IdeaBlade.Core.IdeaBladeC&#111;nfig/property:Instance:IdeaBlade.Core.IdeaBladeC&#111;nfig" target="_blank"><U>Instance</U></A>.<A title="ReadOnlyCollection IdeaBlade.Core.IdeaBladeConfig.GetAllProbeAssemblyNames();" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Core:6.0.3.1:287b5094865421c0/IdeaBlade.Core.IdeaBladeConfig/GetAllProbeAssemblyNames():System.Collections.ObjectModel.ReadOnlyCollection"><U>GetAllProbeAssemblyNames</U></A>(), <a href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Core:5.2.3.1:287b5094865421c0/IdeaBlade.Core.Cardinality" target="_blank"><U>Cardinality</U></A>.<a href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://IdeaBlade.Core:5.2.3.1:287b5094865421c0/IdeaBlade.Core.Cardinality/ZeroOr&#079;ne" target="_blank"><U>ZeroOrOne</U></A>, <FONT color=#800000>true</FONT>);<BR></DIV></BLOCKQUOTE><DIV>&nbsp;</DIV><DIV>Does this mean you didn't fix the type initializer&nbsp;problem?&nbsp; I'm confused if this 0 or 1 test was causing the problem or if you said that was correct but the problem was somewhere else that didn't allow more than one custom UserBase types.</DIV><DIV>&nbsp;</DIV><DIV>I'm still getting the same odd behavior that I can't access a second database/edmx in one session of server-sid RPC method using ESQL.&nbsp; The method first loads entities from one db/edmx and then loads the rest from the other db/edmx.&nbsp; When the second entities try to load, they get an error:</DIV><DIV>&nbsp;</DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV>'MyEntity' could not be resolved in the current scope or context. Make sure that all referenced variables are in scope, that required schemas are loaded....</DIV></BLOCKQUOTE><DIV>&nbsp;</DIV><DIV>Looking at the debug log, I see EdmKey::FindClientAssembly called for first db/datasource key&nbsp;and then the ESQL issued for each entity is executed but there isn't a second call to FindClientAssembly for the second db/datasource key&nbsp;entities&nbsp;(just the error).&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>If however, I set a breakpoint in the code after all the first entities are loaded and then open the local variables for the server-side EntityManager and expand the <SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-ansi-: EN">DataSourceResolver &gt; DataSourceKeys &gt; Results View &gt; (in our case, this models key is in the 0 index) &gt; EdmKey and then hit F5 to continue, the remaining entities load&nbsp;without an issue and the debug log shows the second call to FindClientAssembly for that other datasource key.&nbsp; If I close the app and leave the dev web server up and then run it again (removing the debug stop), it works fine.</SPAN></DIV><DIV><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-ansi-: EN"></SPAN>&nbsp;</DIV><DIV><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-ansi-: EN"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-ansi-: EN">I've tried duplicating this in another project that doesn't use a custom IEntityLoginManager but does use mutliple datasource keys and never have the problem there.<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></DIV><o:p></o:p></SPAN>]]>
   </description>
   <pubDate>Mon, 21 Jun 2010 15:24:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=7366#7366</guid>
  </item> 
  <item>
   <title>Multiple UserBase implementations : Just to chime in with Stephen...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=6945#6945</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=543" rel="nofollow">pk55</a><br /><strong>Subject:</strong> 1825<br /><strong>Posted:</strong> 18-May-2010 at 5:40pm<br /><br />Just to chime in with Stephen (we work together); this 'seems' to only manifest itself (in 6.0.2) as a problem when using a PassThruESQLQuery on the server-side (6.0.1 worked fine).&nbsp; As part of our intial load of data, we call an RPC method to load up the server-side EntityManager cache with all the necessary entities and then ship the cache back to the client where it's merged back into the client-side EntityManager.<DIV>&nbsp;</DIV><DIV>As part of this process on the server, we use ESQL to generically load the entities so you get something like this being executed for each entity to load:</DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV>IEntityQuery query = new PassthruEsqlQuery (typeof(MyEntity), "SELECT VALUE u FROM MyEntitySet AS u");</DIV><DIV>manager.ExecuteQuery(query);</DIV></BLOCKQUOTE><DIV dir=ltr>&nbsp;</DIV><DIV dir=ltr>For one of our 6 data models (the one that comes from a different database than the other 5), the ESQL will throw an error about:</DIV><DIV dir=ltr>&nbsp;</DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV dir=ltr>Caught exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; IdeaBlade.EntityModel.EntityServerException: 'MyEntitySet' could not be resolved in the current scope or context. </DIV></BLOCKQUOTE><DIV dir=ltr><BR>If I switch that from ESQL to this, it works fine in the model:</DIV><DIV>&nbsp;</DIV><DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV>IEntityQuery query = manager.MyEntitySet;<BR>manager.ExecuteQuery(query);</DIV></BLOCKQUOTE><DIV>&nbsp;</DIV></DIV>]]>
   </description>
   <pubDate>Tue, 18 May 2010 17:40:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=6945#6945</guid>
  </item> 
  <item>
   <title>Multiple UserBase implementations : Ah, OK, there is a problem with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=6941#6941</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> 1825<br /><strong>Posted:</strong> 18-May-2010 at 4:03pm<br /><br /><P>Ah, OK, there is a problem with the type initializer on UserBase.&nbsp; We'll get this fixed in 6.0.3 (coming in early June).&nbsp; Until then, you can use only the standard UserBase and one custom UserBase type.&nbsp; Sorry for the inconvenience.</P>]]>
   </description>
   <pubDate>Tue, 18 May 2010 16:03:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=6941#6941</guid>
  </item> 
  <item>
   <title>Multiple UserBase implementations : I&amp;#039;m confused...you say &amp;#034;we...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=6938#6938</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=613" rel="nofollow">stephenmcd1</a><br /><strong>Subject:</strong> 1825<br /><strong>Posted:</strong> 18-May-2010 at 3:28pm<br /><br />I'm confused...you say "we supported only a single custom UserBase implementation" but does that only apply if we're using the AspALM?&nbsp; Otherwise you do support multiple?<br><br>I guess we didn't run into the problem in 6.0.1 because we aren't using the AspALM so this check didn't get hit but then you  moved the check to UserBase so now we hit it (if I understand correctly).<br><br>We aren't using ASP.NET security and don't use AspALM and also implement our own custom IEntityLoginManager...however, we seem to still hit the limitation of on multiple UserBase's.&nbsp; The UserBase class checks to make sure there is only one custom UserBase as part of it's static constructor so I can't really do anything related to UserBase without getting an exception (in my case, I'm trying to new up an instance of my custom UserBase class but that doesn't work).<br><br>Hope that made sense...<br>]]>
   </description>
   <pubDate>Tue, 18 May 2010 15:28:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=6938#6938</guid>
  </item> 
  <item>
   <title>Multiple UserBase implementations : Actually, we supported only a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=6935#6935</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> 1825<br /><strong>Posted:</strong> 18-May-2010 at 2:36pm<br /><br />Actually, we supported only a single custom UserBase implementation in 6.0.1, as we do in 6.0.2.&nbsp; In 6.0.1 we weren't looking at the correct list of assemblies, and this logic was also located in the AspAuthenticatingLoginManager class instead of UserBase.&nbsp; In 6.0.1 we also returned the standard UserBase type for anonymous users - in 6.0.2 we return the custom UserBase type if&nbsp;one is found.&nbsp;<DIV>&nbsp;</DIV><DIV>We support only a single custom UserBase because the AspAuthenticatingLoginManager only knows to return the standard UserBase or the one and only custom UserBase.&nbsp; If you need multiple UserBase classes you'll need to sub-class the AspAuthenticatingLoginManager and override the CreateUserCore() method(s) to return the correct UserBase.&nbsp; If you're not using ASP.NET security, or don't want to use the AspALM, then you can implement a custom IEntityLoginManager implementation where you'll have full control over this.</DIV>]]>
   </description>
   <pubDate>Tue, 18 May 2010 14:36:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=6935#6935</guid>
  </item> 
  <item>
   <title>Multiple UserBase implementations : Along the lines of this post,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=6933#6933</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=613" rel="nofollow">stephenmcd1</a><br /><strong>Subject:</strong> 1825<br /><strong>Posted:</strong> 18-May-2010 at 12:15pm<br /><br />Along the lines of <a href="http://www.ideablade.com/forum/forum_posts.asp?TID=1800" target="_blank">this post</a>, I have a "guest" account used to access the BOS during the logon process.&nbsp; Once the user authenticates, I switch to a standard account. <br><br>To implement this scenario, I have two custom classes that extend UserBase.&nbsp; This used to work fine in 6.0.1.0 but seems to randomly break in 6.0.2.0 (I'm sure it's not actually random, but it seems that way).&nbsp; <br><br>Using my good friend Reflector, I see this line of code in UserBase.GetCustomUserType():<br><table width="99%"><tr><td><pre class="BBcode">Type type = ReflectionFns.GetTypeImplementing(typeof(UserBase), IdeaBladeConfig.Instance.GetAllProbeAssemblyNames(), Cardinality.ZeroOrOne, true);</pre></td></tr></table><br>So it appears you are now expecting only zero or one custom UserBase implementations (that is, you don't expect two like in my case).<br><br>What is particularly weird is that sometimes my app works fine...I'm not sure if it has to do with when things get probed or what, but at least in some cases it's a fatal error that breaks my logon process.<br><br>]]>
   </description>
   <pubDate>Tue, 18 May 2010 12:15:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1825&amp;PID=6933#6933</guid>
  </item> 
 </channel>
</rss>