﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WebForms (How do I?)  » Logged in User Problem</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 05:48:09 GMT</lastBuildDate><ttl>20</ttl><item><title>Logged in User Problem</title><link>http://forum.strataframe.net/FindPost13071.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am new in StrataFrame. I have problem to access the user information from web application.&lt;/P&gt;&lt;P&gt;I created a new user from the RoleBasedSecurity editor and trying to validate by custom login form in .aspx page.&lt;/P&gt;&lt;P&gt;I done the following setting in &lt;U&gt;Global.asax&lt;/U&gt;:&lt;/P&gt;&lt;FONT color=#008080 size=2&gt;&lt;P&gt;DataLayer&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;.DataSources.Add(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;SqlDataSourceItem&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;""&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"server=ssaxena;integrated security=SSPI;database=StrataFrame"&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;));&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;MicroFour.StrataFrame.Security.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;SecurityBasics&lt;/FONT&gt;&lt;FONT size=2&gt;.IsWebEnvironment = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;U&gt;cmdOk_Click&lt;/U&gt;:&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;P&gt;MicroFour.StrataFrame.Security.BusinessObjects.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;SFSUsersBO&lt;/FONT&gt;&lt;FONT size=2&gt; sfUsers = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;null&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;P&gt;MicroFour.StrataFrame.Security.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Login&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;LoginResult&lt;/FONT&gt;&lt;FONT size=2&gt; loResult = MicroFour.StrataFrame.Security.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Login&lt;/FONT&gt;&lt;FONT size=2&gt;.AuthenticateUser(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"someshv"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"jan@123"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;""&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ref&lt;/FONT&gt;&lt;FONT size=2&gt; sfUsers); [ This userName and password is created in database by security editor ] &lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;FONT size=2&gt; (loResult.Equals(MicroFour.StrataFrame.Security.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Login&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;LoginResult&lt;/FONT&gt;&lt;FONT size=2&gt;.Success))&lt;/P&gt;&lt;P&gt;Response.Write(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"Success"&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;FONT size=2&gt; (loResult.Equals(MicroFour.StrataFrame.Security.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Login&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;LoginResult&lt;/FONT&gt;&lt;FONT size=2&gt;.Failure))&lt;/P&gt;&lt;P&gt;Response.Write(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"Failure"&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;else&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;Response.Write(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"Nothing"&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;This returns me always failure. I am not getting any help. Can you tell me where I am wrong? or you can provide me any good documentation(besides StrataFrame doc) or sample application (besides Web Application Sample).&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Tue, 18 Dec 2007 22:53:40 GMT</pubDate><dc:creator>Sachin Saxena</dc:creator></item><item><title>RE: Logged in User Problem</title><link>http://forum.strataframe.net/FindPost13084.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for reply.&amp;nbsp;Now it's work fine. Thanks :Wow:</description><pubDate>Tue, 18 Dec 2007 22:53:40 GMT</pubDate><dc:creator>Sachin Saxena</dc:creator></item><item><title>RE: Logged in User Problem</title><link>http://forum.strataframe.net/FindPost13083.aspx</link><description>You're missing one little piece... you need to set the seed for the encryption key and vector that is used to encrypt the password in the database.&amp;nbsp; MicroFour.StrataFrame.Security.SecurityBasics.SetSecurityKeyAndVectorForUserAuthentication().&amp;nbsp; The value that you pass to that method should be the same string that you put in the security project properties for the User Data Encryption: Security Key: field.&amp;nbsp; Make those 2 values match, and you should be able to log in fine.</description><pubDate>Tue, 18 Dec 2007 16:26:12 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>