﻿<?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 » Role Based Security  » Getting Exception Filling SFSUsersBO</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 04:14:48 GMT</lastBuildDate><ttl>20</ttl><item><title>Getting Exception Filling SFSUsersBO</title><link>http://forum.strataframe.net/FindPost20781.aspx</link><description>G'day&lt;P&gt;I'm getting the following exception:&lt;/P&gt;&lt;P&gt;[codesnippet]System.ArgumentNullException was unhandled by user code&lt;BR&gt;&amp;nbsp; Message="Value cannot be null. Parameter name: InString"&lt;BR&gt;&amp;nbsp; ParamName="InString"&lt;BR&gt;&amp;nbsp; Source="mscorlib"&lt;BR&gt;&amp;nbsp; StackTrace:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Convert.FromBase64String(String s)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Security.Encryption.TripleDESWrapper.Decrypt(String text)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO.EncryptedData..ctor(String DataString, String UserName, Int32 ProjectPK)&lt;BR&gt;&amp;nbsp; InnerException: [/codesnippet]&lt;/P&gt;&lt;P&gt;This occurs on line 521 in the following Strataframe code:&lt;/P&gt;&lt;P&gt;[codesnippet]C:\Program Files\MicroFour\StrataFrame Source Code\MicroFour StrataFrame Base\encryption\tripledeswrapper.vb&lt;/P&gt;&lt;P&gt;520&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Function Decrypt(ByVal text As String) As String&lt;BR&gt;521 &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim input() As Byte = Convert.FromBase64String(text)&lt;BR&gt;522&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim output() As Byte = Transform(input, m_des.CreateDecryptor(m_key, m_iv))&lt;BR&gt;523&lt;BR&gt;524&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return m_utf8.GetString(output)&lt;BR&gt;525&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;BR&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;There are two spots in my code that cause this (as indicated):&lt;/P&gt;&lt;P&gt;[codesnippet]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim UserName As String = "PeterD"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SFUsersBO As New MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SFUsersBO.FillByUserName(UserName)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SFSUsersBO.FillAll(0)&lt;/P&gt;&lt;P&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;I'm running Strataframe 1.6.6, with SQL references updated and recompiled so it can interact with SQL Server 2008.&lt;/P&gt;&lt;P&gt;The SFS tables (excluding the project table) are in our Application Database, on a SQL server 2008 instance.&lt;/P&gt;&lt;P&gt;I've populated the Users progamatically, but they show as normal users in the security dialog, and I'm able to edit them sucesfully.&lt;/P&gt;&lt;P&gt;If I ignore the exception, (which recurs in the first instance 3 or 4&amp;nbsp;times, and in the second instance once for each user in the table), the BO gets populated with information that looks OK to me.&lt;/P&gt;&lt;P&gt;Any thoughts as to what might be happening?&lt;/P&gt;&lt;P&gt;Peter</description><pubDate>Wed, 19 Nov 2008 09:59:31 GMT</pubDate><dc:creator>Peter Denton</dc:creator></item><item><title>RE: Getting Exception Filling SFSUsersBO</title><link>http://forum.strataframe.net/FindPost20805.aspx</link><description>Well, I am just glad that you got it going.&amp;nbsp; Glad you found your problem. :)</description><pubDate>Wed, 19 Nov 2008 09:59:31 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Getting Exception Filling SFSUsersBO</title><link>http://forum.strataframe.net/FindPost20800.aspx</link><description>Thanks Trent,&lt;/P&gt;&lt;P&gt;Stupidity on my part.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have a process to automatically&amp;nbsp;create the Users rather than using the RBS Editor. I insert the users into the Users Table with SQL, then in&amp;nbsp;VB code update password and other fields that make up the data field for each user. I've been able to use RBS editor to examine Users created that way and am able to further changes and save them. &lt;/P&gt;&lt;P&gt;On my most recent testing I forgot to run my VB code after the SQL insert!&lt;/P&gt;&lt;P&gt;Peter</description><pubDate>Tue, 18 Nov 2008 16:49:28 GMT</pubDate><dc:creator>Peter Denton</dc:creator></item><item><title>RE: Getting Exception Filling SFSUsersBO</title><link>http://forum.strataframe.net/FindPost20787.aspx</link><description>Well, how the record got into this state, I am unsure.&amp;nbsp; We have this version of RBS deployed to many locations in the field so I am confident in the code and the release.&amp;nbsp; But what is happening here is that the serialized object we are expecting isn't in that field which produces the NULL error.&amp;nbsp; I have seen this happen when people manually create user records, but if created through the RBS editors, then this should never happen.&amp;nbsp; I have also seen this before when people are trying to side-step security (i.e. people that have access to the SQL tables but not the source code and are trying to short-circuit the security).</description><pubDate>Tue, 18 Nov 2008 10:08:28 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>