﻿<?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 » Business Objects and Data Access (How do I?)  » Database connection problems</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 01:38:35 GMT</lastBuildDate><ttl>20</ttl><item><title>Database connection problems</title><link>http://forum.strataframe.net/FindPost17428.aspx</link><description>Hi SF Team,&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;This morning we&amp;nbsp;installed some Web application templates we got from you below.&lt;/P&gt;&lt;DIV&gt;&lt;SPAN class=977052217-27062008&gt;&lt;FONT face=Arial size=2&gt;first i did this one....&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=977052217-27062008&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=977052217-27062008&gt;&lt;FONT face=Arial size=2&gt;&lt;A title=http://forum.strataframe.net/Topic7973-10-1.aspx?Highlight=web+application+projects href="http://forum.strataframe.net/Topic7973-10-1.aspx?Highlight=web+application+projects"&gt;http://forum.strataframe.net/Topic7973-10-1.aspx?Highlight=web+application+projects&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=977052217-27062008&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=977052217-27062008&gt;&lt;FONT face=Arial size=2&gt;then i did this one&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=977052217-27062008&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=977052217-27062008&gt;&lt;FONT face=Arial size=2&gt;&lt;A title=http://forum.strataframe.net/Topic8736-10-1.aspx?Highlight=webapplication href="http://forum.strataframe.net/Topic8736-10-1.aspx?Highlight=webapplication"&gt;http://forum.strataframe.net/Topic8736-10-1.aspx?Highlight=webapplication&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;Now I get&amp;nbsp;the following error occurs (stack trace below) when executing my application&amp;nbsp;SFSPreferencesBO.RetrieveSecurityPreferences() in the AppMain module.&amp;nbsp; Please help.&amp;nbsp; I am unable to continue to develop until I get this&amp;nbsp;resolved.&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception.&lt;BR&gt;Exception (TypeInitializationException): Source="System.Data"; Target=null; Tag=null; TypeName="System.Data.SqlClient.SqlConnection"; &lt;BR&gt;Message = "The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception."&lt;BR&gt;InnerException (TypeInitializationException): Source="System.Data"; Target=null; Tag=null; &lt;BR&gt;Message = "The type initializer for 'System.Data.SqlClient.SqlConnectionFactory' threw an exception."&lt;BR&gt;StackTrace = " at System.Data.SqlClient.SqlConnection..cctor()"&lt;BR&gt;InnerException (TypeInitializationException): Source="System.Data"; Target=null; Tag=null; &lt;BR&gt;Message = "The type initializer for 'System.Data.SqlClient.SqlPerformanceCounters' threw an exception."&lt;BR&gt;StackTrace = &lt;BR&gt;" at System.Data.SqlClient.SqlConnectionFactory..ctor()&lt;BR&gt;at System.Data.SqlClient.SqlConnectionFactory..cctor()"&lt;BR&gt;InnerException (ConfigurationErrorsException): Source="System.Configuration"; Target=null; Tag=null; Line=21; &lt;BR&gt;Message = &lt;BR&gt;"The value of the property 'traceOutputOptions' cannot be parsed. The error is: The enumeration value must be one of the following: None, LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack. (C:\Documents and&lt;BR&gt;Settings\JPagley\Desktop\Projects\CMPR\bin\Debug\CMPR.vshost.exe.config line 21)"&lt;BR&gt;StackTrace = &lt;BR&gt;" at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)&lt;BR&gt;at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object&amp;amp; result, Object&amp;amp; resultRuntimeObject)&lt;BR&gt;at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object&amp;amp; result, Object&amp;amp; resultRuntimeObject)&lt;BR&gt;at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object&amp;amp; result, Object&amp;amp; resultRuntimeObject)&lt;BR&gt;at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean ch... (truncated) ...olean checkPermission)&lt;BR&gt;at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)&lt;BR&gt;at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)&lt;BR&gt;at System.Configuration.ConfigurationManager.GetSection(String sectionName)&lt;BR&gt;at System.Configuration.PrivilegedConfigurationManager.GetSection(String sectionName)&lt;BR&gt;at System.Diagnostics.DiagnosticsConfiguration.GetConfigSection()&lt;BR&gt;at System.Diagnostics.DiagnosticsConfiguration.Initialize()&lt;BR&gt;at System.Diagnostics.Switch.InitializeConfigSettings()&lt;BR&gt;at System.Diagnostics.Switch.InitializeWithStatus()&lt;BR&gt;at System.Diagnostics.Switch.get_SwitchSetting()&lt;BR&gt;at System.Diagnostics.TraceSwitch.get_Level()&lt;BR&gt;at System.Data.ProviderBase.DbConnectionPoolCounters..ctor(String categoryName, String categoryHelp)&lt;BR&gt;at System.Data.SqlClient.SqlPerformanceCounters..ctor()&lt;BR&gt;at System.Data.SqlClient.SqlPerformanceCounters..cctor()"&lt;BR&gt;BareMessage = "The value of the property 'traceOutputOptions' cannot be parsed. The error is: The enumeration value must be one of the following: None, LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack."&lt;BR&gt;Filename = "C:\Documents and Settings\JPagley\Desktop\Projects\CMPR\bin\Debug\CMPR.vshost.exe.config"&lt;BR&gt;Errors (ConfigurationException[]): Length=1; Rank=1; Count=1; &lt;BR&gt;#0 (ConfigurationErrorsException): Source=null; Target=null; Tag=null; StackTrace=null; BareMessage=(-&amp;gt;BareMessage); Filename=(-&amp;gt;Filename); Line=21; &lt;BR&gt;Message = &lt;BR&gt;"The value of the property 'traceOutputOptions' cannot be parsed. The error is: The enumeration value must be one of the following: None, LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack. (C:\Documents and&lt;BR&gt;Settings\JPagley\Desktop\Projects\CMPR\bin\Debug\CMPR.vshost.exe.config line 21)"&lt;BR&gt;Errors (ConfigurationException[]): Length=1; Rank=1; Count=1; &lt;BR&gt;#0 (ConfigurationErrorsException): Source=null; Target=null; Tag=null; StackTrace=null; BareMessage=(-&amp;gt;BareMessage); Filename=(-&amp;gt;Filename); Line=21; &lt;BR&gt;Message = &lt;BR&gt;"The value of the property 'traceOutputOptions' cannot be parsed. The error is: The enumeration value must be one of the following: None, LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack. (C:\Documents and&lt;BR&gt;Settings\JPagley\Desktop\Projects\CMPR\bin\Debug\CMPR.vshost.exe.config line 21)"&lt;BR&gt;Errors (ConfigurationException[]): Length=1; Rank=1; Count=1; &lt;BR&gt;#0 (ConfigurationErrorsException): Source=null; Target=null; Tag=null; StackTrace=null; BareMessage=(-&amp;gt;BareMessage); Filename=(-&amp;gt;Filename); Line=21; &lt;BR&gt;Message = &lt;BR&gt;"The value of the property 'traceOutputOptions' cannot be parsed. The error is: The enumeration value must be one of the following: None, LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack. (C:\Documents and&lt;BR&gt;Settings\JPagley\Desktop\Projects\CMPR\bin\Debug\CMPR.vshost.exe.config line 21)"&lt;BR&gt;Errors (ConfigurationException[]): Length=1; Rank=1; Count=1; &lt;BR&gt;#0 (ConfigurationErrorsException): Source=null; Target=null; Tag=null; StackTrace=null; BareMessage=(-&amp;gt;BareMessage); Filename=(-&amp;gt;Filename); Line=21; &lt;BR&gt;Message = &lt;BR&gt;"The value of the property 'traceOutputOptions' cannot be parsed. The error is: The enumeration value must be one of the following: None, LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack. (C:\Documents and&lt;BR&gt;Settings\JPagley\Desktop\Projects\CMPR\bin\Debug\CMPR.vshost.exe.config line 21)"&lt;BR&gt;Errors (ConfigurationException[]): Length=1; Rank=1; Count=1; &lt;BR&gt;#0 (ConfigurationErrorsException): Source=null; Target=null; Tag=null; StackTrace=null; BareMessage=(-&amp;gt;BareMessage); Filename=(-&amp;gt;Filename); Line=21; &lt;BR&gt;Message = &lt;BR&gt;"The value of the property 'traceOutputOptions' cannot be parsed. The error is: The enumeration value must be one of the following: None, LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack. (C:\Documents and&lt;BR&gt;Settings\JPagley\Desktop\Projects\CMPR\bin\Debug\CMPR.vshost.exe.config line 21)"&lt;BR&gt;Errors (ConfigurationException[]): Length=1; Rank=1; Count=1; &lt;BR&gt;#0 (ConfigurationErrorsException): Source=null; Target=null; Tag=null; StackTrace=null; BareMessage=(-&amp;gt;BareMessage); Filename=(-&amp;gt;Filename); Line=21; &lt;BR&gt;Message = &lt;BR&gt;"The value of the property 'traceOutputOptions' cannot be parsed. The error is: The enumeration value must be one of the following: None, LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack. (C:\Documents and&lt;BR&gt;Settings\JPagley\Desktop\Projects\CMPR\bin\Debug\CMPR.vshost.exe.config line 21)"&lt;BR&gt;Errors (ConfigurationException[]): Length=1; Rank=1; Count=1; &lt;BR&gt;#0 (ConfigurationErrorsException): Source=null; Target=null; Tag=null; StackTrace=null; BareMessage=(-&amp;gt;BareMessage); Filename=(-&amp;gt;Filename); Line=21; &lt;BR&gt;Message = &lt;BR&gt;"The value of the property 'traceOutputOptions' cannot be parsed. The error is: The enumeration value must be one of the following: None, LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack. (C:\Documents and&lt;BR&gt;Settings\JPagley\Desktop\Projects\CMPR\bin\Debug\CMPR.vshost.exe.config line 21)"&lt;BR&gt;Errors (ConfigurationException[]): Length=1; Rank=1; Count=1; &lt;BR&gt;#0 (ConfigurationErrorsException): Source=null; Target=null; Tag=null; StackTrace=null; BareMessage=(-&amp;gt;BareMessage); Filename=(-&amp;gt;Filename); Line=21; &lt;BR&gt;Message = &lt;BR&gt;"The value of the property 'traceOutputOptions' cannot be parsed. The error is: The enumeration value must be one of the following: None, LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack. (C:\Documents and&lt;BR&gt;Settings\JPagley\Desktop\Projects\CMPR\bin\Debug\CMPR.vshost.exe.config line 21)"&lt;BR&gt;Errors (ConfigurationException[]): Length=1; Rank=1; Count=1; &lt;BR&gt;#0 = &lt;BR&gt;{System.Configuration.ConfigurationErrorsException: The value of the property 'traceOutputOptions' cannot be parsed. The error is: The enumeration value must be one of the following: None, LogicalOperationStack, DateTime, Timestamp, ProcessId,&lt;BR&gt;ThreadId, Callstack. (C:\Documents and Settings\JPagley\Desktop\Projects\CMPR\bin\Debug\CMPR.vshost.exe.config line 21) ---&amp;gt; UJ.ExceptionManagement.Classes.EmsInnerException: (This is EmsInnerException helper object)&lt;BR&gt;--- End of inner exception stack trace ---}&lt;BR&gt;Values = System.Configuration.ConfigurationException[]&lt;BR&gt;Values = System.Configuration.ConfigurationException[]&lt;BR&gt;Values = System.Configuration.ConfigurationException[]&lt;BR&gt;Values = System.Configuration.ConfigurationException[]&lt;BR&gt;Values = System.Configuration.ConfigurationException[]&lt;BR&gt;Values = System.Configuration.ConfigurationException[]&lt;BR&gt;Values = System.Configuration.ConfigurationException[]&lt;BR&gt;Values = System.Configuration.ConfigurationException[]&lt;BR&gt;Values = System.Configuration.ConfigurationException[]&lt;BR&gt;TypeName = "System.Data.SqlClient.SqlPerformanceCounters"&lt;BR&gt;TypeName = "System.Data.SqlClient.SqlConnectionFactory"&lt;BR&gt;Environment: ThreadIdentity="" DateTime=["2008-06-27 13:02:08.709"] ThreadName=null WindowsIdentity="STRUSS\JPagley" ThreadId="10" DomainName="CMPR.vshost.exe" OSVersion=["Microsoft Windows NT 5.1.2600 Service Pack 3"] MachineName="1LPJPAGLEY"&lt;BR&gt;UserName="JPagley"&lt;BR&gt;Remaining Stack Trace - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -&lt;BR&gt;at System.Data.SqlClient.SqlConnection..ctor()&lt;BR&gt;at System.Data.SqlClient.SqlConnection..ctor(String connectionString)&lt;BR&gt;at MicroFour.StrataFrame.Data.SqlDataSourceItem.CreateBlankDbConnection()&lt;BR&gt;at MicroFour.StrataFrame.Data.DbDataSourceItem.GetDataTable(DbCommand Command, OnChangeEventHandler CallBack)&lt;BR&gt;at MicroFour.StrataFrame.Data.SqlDataSourceItem.GetDataTable(DbCommand Command, OnChangeEventHandler CallBack)&lt;BR&gt;at MicroFour.StrataFrame.Data.DataLayer.GetDataTable(DbCommand Command, Boolean RegisterNotification)&lt;BR&gt;at MicroFour.StrataFrame.Business.BusinessLayer.FillDataTable(DbCommand CommandToExecute)&lt;BR&gt;at MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO.FillByUserName(String UserName)&lt;BR&gt;at MicroFour.StrataFrame.Security.Login.AuthenticateUser(String Username, String Password, String Domain, SFSUsersBO&amp;amp; User)&lt;BR&gt;at MicroFour.StrataFrame.Security.Login.AttemptLogin(Object sender, EventArgs e)&lt;BR&gt;at CMPR.LoginForm.OnAttemptLogin() in C:\Documents and Settings\JPagley\Desktop\Projects\CMPR\Forms\LoginForm.vb:line 30&lt;BR&gt;at CMPR.LoginForm.cmdOk_Click(Object sender, EventArgs e) in C:\Documents and Settings\JPagley\Desktop\Projects\CMPR\Forms\LoginForm.vb:line 285&lt;BR&gt;at System.Windows.Forms.Control.OnClick(EventArgs e)&lt;BR&gt;at System.Windows.Forms.Button.OnClick(EventArgs e)&lt;BR&gt;at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)&lt;BR&gt;at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)&lt;BR&gt;at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;BR&gt;at System.Windows.Forms.ButtonBase.WndProc(Message&amp;amp; m)&lt;BR&gt;at System.Windows.Forms.Button.WndProc(Message&amp;amp; m)&lt;BR&gt;at System.Windows.Forms.Control.ControlNative&amp;#119;indow.OnMessage(Message&amp;amp; m)&lt;BR&gt;at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp;amp; m)&lt;BR&gt;at System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;BR&gt;Comments: &lt;BR&gt;EMS warning: maximum number of iterations reached when processing objects.&lt;/P&gt;&lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Fri, 27 Jun 2008 13:09:13 GMT</pubDate><dc:creator>Jeff Pagley</dc:creator></item><item><title>RE: Database connection problems</title><link>http://forum.strataframe.net/FindPost17433.aspx</link><description>I understand...FWIW, this is a supported build and we actually use this ourselves in the field already.&amp;nbsp; We use ourselves as guinea pigs before our users.&amp;nbsp; So though this is still a beta, it is supported and I know that we already have a lot of other developers using it...and it has been really quiet, so I am pretty confident in the build.</description><pubDate>Fri, 27 Jun 2008 13:09:13 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Database connection problems</title><link>http://forum.strataframe.net/FindPost17431.aspx</link><description>Thanks for the reply! I weary about installing a BETA build on our development machines... lol</description><pubDate>Fri, 27 Jun 2008 13:06:39 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Database connection problems</title><link>http://forum.strataframe.net/FindPost17430.aspx</link><description>That just allows you to setup web projects versus web sites.&amp;nbsp; One thing I would recommend is loading the 1.6.6 beta build also as there were some template fixes for the web project solutions.&amp;nbsp; However, if you already have your solution created and working, then it wouldn't really buy you anything.&amp;nbsp; Just a little food for thought.</description><pubDate>Fri, 27 Jun 2008 13:04:01 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Database connection problems</title><link>http://forum.strataframe.net/FindPost17429.aspx</link><description>Hey Guys, I think I fixed it. I googled the "type initializer" and the System.Data.SqlClient.SqlConnection exception and it talked about invalid entries in the app.config file... so I just deleted the app.config file in the root folder of the project and the vshost.config file in the bin\debug folder... so far it works...</description><pubDate>Fri, 27 Jun 2008 13:00:35 GMT</pubDate><dc:creator>StarkMike</dc:creator></item></channel></rss>