﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » Enterprise Server - V1 » Issues  » Error access data via ES</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 02 May 2026 23:53:40 GMT</lastBuildDate><ttl>20</ttl><item><title>Error access data via ES</title><link>http://forum.strataframe.net/FindPost8813.aspx</link><description>I getting a very reproducible (on my side anyway) error side when attempting to access some data via ES.  Other data is accessed fine.  Here is the error reported to the client:&lt;br&gt;
&lt;br&gt;
[quote]BusinessLayerException&lt;br&gt;
An error occurred while refreshing the data from field 'ProjectOrganizationBO.Owner' to property 'Text' on control 'txtOwner.'&lt;br&gt;
BusinessLayerException&lt;br&gt;
An error occurred while refreshing property 'Text' to control 'txtOwner'&lt;br&gt;
TargetInvocationException&lt;br&gt;
Exception has been thrown by the target of an invocation.&lt;br&gt;
CryptographicException&lt;br&gt;
Bad Data.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Source     : MicroFour StrataFrame Business&lt;br&gt;
&lt;br&gt;
Stack Trace:&lt;br&gt;
   at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)&lt;br&gt;
   at System.Security.Cryptography.Utils._DecryptData(SafeKeyHandle hKey, Byte[] data, Int32 ib, Int32 cb, Byte[]&amp; outputBuffer, Int32 outputOffset, PaddingMode PaddingMode, Boolean fDone)&lt;br&gt;
   at System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)&lt;br&gt;
   at System.Security.Cryptography.CryptoStream.Read(Byte[] buffer, Int32 offset, Int32 count)&lt;br&gt;
   at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)&lt;br&gt;
   at System.IO.Stream.ReadByte()&lt;br&gt;
   at System.IO.BinaryReader.FillBuffer(Int32 numBytes)&lt;br&gt;
   at System.IO.BinaryReader.ReadBoolean()&lt;br&gt;
   at MicroFour.StrataFrame.Data.Enterprise.BaseResults.ReadDataFromStream(BinaryReader Reader)&lt;br&gt;
   at MicroFour.StrataFrame.Data.Enterprise.ExecuteScalarResults.ReadDataFromStream(BinaryReader Reader)&lt;br&gt;
   at MicroFour.StrataFrame.Data.Enterprise.ExecuteScalarResults.CreateFromStream(BinaryReader Reader)&lt;br&gt;
   at MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.?(BaseParams A_0, RemoteDataSourceCommand A_1)&lt;br&gt;
   at MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.?(DbCommand A_0, Boolean A_1, String A_2)&lt;br&gt;
   at MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.ExecuteScalar(DbCommand Command)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.ExecuteScalar(DbCommand CommandToExecute)&lt;br&gt;
   at FOXSystems.RAMS.BusinessObjects.Project.ProjectOrganizationBO.get_Owner() in E:\FoxSystems\RAMS\RAMS.NET\BusinessObjects\Project\ProjectOrganizationBO.vb:line 387&lt;br&gt;
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct&amp; sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)&lt;br&gt;
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)&lt;br&gt;
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)&lt;br&gt;
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)&lt;br&gt;
   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)&lt;br&gt;
   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)&lt;br&gt;
   at MicroFour.StrataFrame.Business.ReflectionPropertyDescriptor.GetValue(Object component)&lt;br&gt;
   at System.Windows.Forms.BindToObject.GetValue()&lt;br&gt;
   at System.Windows.Forms.Binding.PushData(Boolean force)&lt;br&gt;
   at System.Windows.Forms.Binding.ReadValue()&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.RefreshValue(Control ControlToRefresh, String PropertyName)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.RefreshControl(IBusinessBindable ControlToRefresh, Boolean DataPresent)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.RefreshBoundControls()&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.raise_Navigated(NavigatedEventArgs e)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.OnNavigated(NavigatedEventArgs e)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.Navigate(BusinessNavigationDirection Direction, Int32 AbsoluteIndex, Object[] PrimaryKeyValues, Boolean AttemptToCheckRules, Boolean IsRefill)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.NavigateToPrimaryKey(Object[] PrimaryKeyValues)&lt;br&gt;
   at FOXSystems.RAMS.MitaAnalysis.OrgTools.SynchBoToTree(TreeView anyTree, BusinessLayer anyBO) in E:\FoxSystems\RAMS\RAMS.NET\MitaAnalysis\OrgTools.vb:line 421&lt;br&gt;
   at FOXSystems.RAMS.MitaAnalysis.MITAWizardPages.OrgDefinePage.tvwOrg_AfterSelect(Object sender, TreeViewEventArgs e) in E:\FoxSystems\RAMS\RAMS.NET\MitaAnalysis\MITAWizardPages\OrgDefinePage.vb:line 303&lt;br&gt;
   at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)&lt;br&gt;
   at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)&lt;br&gt;
   at System.Windows.Forms.TreeView.WmNotify(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.TreeView.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Control.ControlNative&amp;#119;indow.OnMessage(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&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;
[/quote]&lt;br&gt;
&lt;br&gt;
Here is the error reported via ES:&lt;br&gt;
&lt;br&gt;
[quote]ArgumentNullException&lt;br&gt;
Object Graph cannot be null.&lt;br&gt;
Parameter name: graph&lt;br&gt;
&lt;br&gt;
Source : mscorlib&lt;br&gt;
&lt;br&gt;
Stack Trace:&lt;br&gt;
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)&lt;br&gt;
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)&lt;br&gt;
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph)&lt;br&gt;
at MicroFour.StrataFrame.Data.Enterprise.ExecuteScalarResults.WriteDataToStream(BinaryWriter Writer)&lt;br&gt;
at MicroFour.StrataFrame.Enterprise.Server.RemoteDataSource.ProcessRequest(HttpContext context)[/quote]&lt;br&gt;
&lt;br&gt;
Some info about what is going on:&lt;br&gt;
&lt;br&gt;
 - This error does not happen if I connect directly. &lt;br&gt;
 - If I step through the code, the error occurs on the line that fills the data table of the BO. &lt;br&gt;
 - The Owner property is actually a custom property that is doing a separate ExecuteScalar command to get that value.&lt;br&gt;
 - txtOwner is bound to the Owner property.&lt;br&gt;
&lt;br&gt;
Any ideas why this isn't working with ES?</description><pubDate>Fri, 25 May 2007 12:52:21 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost9090.aspx</link><description>Thanks for help Ben! It is working now.</description><pubDate>Fri, 25 May 2007 12:52:21 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost9083.aspx</link><description>OK, here's the ES site with the refreshed manifest for the MicroFour License Base.dll.</description><pubDate>Fri, 25 May 2007 11:50:19 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost9074.aspx</link><description>Nope, didn't get it. That email is feeling a bit sick. Sent you a pm with alternate email and phone.  Thanks!</description><pubDate>Fri, 25 May 2007 09:21:45 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost9071.aspx</link><description>I sent you an email to your dev@ email address yesterday... did you get it?&amp;nbsp; I'd like to setup a screen sharing session with you if possible.</description><pubDate>Fri, 25 May 2007 08:36:17 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost9059.aspx</link><description>Anything more I can do to help figure out the problem...experiments to try, incantations to say???!? :alien:</description><pubDate>Thu, 24 May 2007 16:32:53 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost9053.aspx</link><description>Yes, once we get this resolved, there is a fix for the error you are experiencing, Larry.&amp;nbsp; We just have to figure out what is causing Greg so much grief.</description><pubDate>Thu, 24 May 2007 15:45:02 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost9047.aspx</link><description>I'm having a problem that is likely related to the issue that started this thread. I use ExecuteScalar in a couple of places to populate custom properties in a BO. It works fine when connected directly to the DB but fails to return values when connected via ES. While it's annoying to my users it's not a critical error and given the issues that Greg is having I'm reluctant to update ES and risk brining down my entire application. I'm waiting to hear how this all turns out:unsure:&lt;P&gt;-Larry</description><pubDate>Thu, 24 May 2007 14:09:40 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost9019.aspx</link><description>Spoke too soon...Nothing in the GAC, but all the mircofour dlls where in the C:\Windows\Microsoft.NET\Framework\2.0.50727\Temporary ASP.Net Files\root\....  (6 more folders deep) folder. I deleted them, restarted IIS. Same error.</description><pubDate>Wed, 23 May 2007 16:47:54 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost9018.aspx</link><description>No microfour files anywhere but in the installation folder (and the zip file).</description><pubDate>Wed, 23 May 2007 16:38:33 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8995.aspx</link><description>OK, the version that I sent you is the same version that we are using on our test servers.&amp;nbsp; Do you have the MicroFour License Base.dll in the GAC?&amp;nbsp; If it's in the GAC, the ES will be pulling it from there and ignoring the one that is in the bin\ folder... and if it wasn't updated to that version, will cause the ES to fail.</description><pubDate>Wed, 23 May 2007 13:50:20 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8967.aspx</link><description>I'm getting a reference error in License Base. I don't know how I can fix that problem.&lt;br&gt;
&lt;br&gt;
Here's what I did:&lt;br&gt;
&lt;br&gt;
- d/l the es.zip (the second one) that Ben posted, with all the ES files in it&lt;br&gt;
- Stopped the site with ES&lt;br&gt;
- Deleted all the files in my ES folder, except my License file in the bin folder, my datasources and web config files.&lt;br&gt;
- Copied all the files from ES.zip into my folder, except the datasource and web config files&lt;br&gt;
- Started the site&lt;br&gt;
- Restarted IIS&lt;br&gt;
&lt;br&gt;
I have no other ES or SF files on this machine.&lt;br&gt;
&lt;br&gt;
Here is the stack trace, found at the bottom of the error page returned when attempting to hit the Status.aspx page:&lt;br&gt;
&lt;br&gt;
[quote][FileLoadException]: Could not load file or assembly 'MicroFour License Base, Version=1.6.0.0, Culture=neutral, PublicKeyToken=7bb29517c3189d04' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)&lt;br&gt;
   at MicroFour.StrataFrame.Enterprise.Server.Status.Status_PreInit(Object sender, EventArgs e)&lt;br&gt;
   at System.Web.UI.Page.OnPreInit(EventArgs e)&lt;br&gt;
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)&lt;br&gt;
[HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown.&lt;br&gt;
   at System.Web.UI.Page.HandleError(Exception e)&lt;br&gt;
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)&lt;br&gt;
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)&lt;br&gt;
   at System.Web.UI.Page.ProcessRequest()&lt;br&gt;
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)&lt;br&gt;
   at System.Web.UI.Page.ProcessRequest(HttpContext context)&lt;br&gt;
   at ASP.status_aspx.ProcessRequest(HttpContext context)&lt;br&gt;
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()&lt;br&gt;
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)[/quote]&lt;br&gt;
&lt;br&gt;
I'm at a loss of what I could have done wrong to get this error.  ES was working on this machine prior to upgrading to the version that fixed the null argument problem.&lt;br&gt;</description><pubDate>Tue, 22 May 2007 13:11:41 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8923.aspx</link><description>If you download the es.zip from earlier in this thread (&lt;A href="http://forum.strataframe.net/FindPost8830.aspx"&gt;http://forum.strataframe.net/FindPost8830.aspx&lt;/A&gt;) and you do not have anything in your GAC relating to the ES, then you should be good to go.&amp;nbsp; There isn't anything left on our side that needs to be done.&amp;nbsp; We have been testing this version and running it for quite some time now and it is working fine.</description><pubDate>Mon, 21 May 2007 14:03:26 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8922.aspx</link><description>[quote][b]Trent L. Taylor (05/21/2007)[/b][hr]I was pretty sure that Ben had already given you a resolution on another thread and had posted the assemblies for you. So I am not sure of anything outstanding here.[/quote]&lt;br&gt;
&lt;br&gt;
That would explain the lack of a response!  ;)&lt;br&gt;
&lt;br&gt;
OK, I'll recap (all in this thread, if more details needed)....&lt;br&gt;
&lt;br&gt;
- I was getting the Null argument error&lt;br&gt;
- Ben posted dll with the fix&lt;br&gt;
- I then got another error, ben apparently didn't do build right with obfuscation&lt;br&gt;
- Ben posted full ES folder&lt;br&gt;
- I then got this error:&lt;br&gt;
[quote/Could not load file or assembly 'MicroFour License Base, Version=1.6.0.0, Culture=neutral, PublicKeyToken=7bb29517c3189d04' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)[/quote]&lt;br&gt;
- Ben had some idea about what problem was, but....&lt;br&gt;
- I think I got confused here, thinking Ben wanted me to check GAC, but I think he actually was suggesting putting the license base in GAC???&lt;br&gt;
&lt;br&gt;
Anyway that as far as we got, and I'm still stuck with the quoted error above. I got side tracked on something else but I'm back on this now.  So, what do I try next?  &lt;br&gt;
&lt;br&gt;
Thanks!&lt;br&gt;</description><pubDate>Mon, 21 May 2007 13:27:44 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8919.aspx</link><description>I was pretty sure that Ben had already given you a resolution on another thread and had posted the assemblies for you.&amp;nbsp; So I am not sure of anything outstanding here.</description><pubDate>Mon, 21 May 2007 13:03:02 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8916.aspx</link><description>Status on this?  I'd really like to get this resolved in the next day or so.</description><pubDate>Mon, 21 May 2007 12:03:05 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8862.aspx</link><description>Got it.  That is good. I was checking because Ben is trying to run down a problem I'm having and (I think) he wanted to make sure I didn't have some other version hanging around in GAC.  Any progress on that Ben? Anything I need to do/test?</description><pubDate>Thu, 17 May 2007 09:34:14 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8860.aspx</link><description>Greg,&lt;/P&gt;&lt;P&gt;We do not store any of the MicroFour assemblies in the GAC when installing the ES.&amp;nbsp; It actually reduces the complexity of the ES and installation process and ultimately makes it easier to migrate a single ES server forward while leaving another in tact in the future.&amp;nbsp; You will find the MicroFour DLLs in the Bin folder of the ES install.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/a7032a0b-73c5-4521-84d9-9747.png"&gt;</description><pubDate>Thu, 17 May 2007 09:20:09 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8852.aspx</link><description>No Microfour dlls in the GAC. (c:\windows\assembly right?)</description><pubDate>Wed, 16 May 2007 19:50:04 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8847.aspx</link><description>OK, what I have found so far is that the DLL version referenced does not exactly match the binary for the DLL that was found... does the machine have MicroFour License Base.dll in the GAC?&amp;nbsp; It might need to be removed, or the one that is in that ZIP file might need to be put into the GAC.</description><pubDate>Wed, 16 May 2007 17:04:39 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8845.aspx</link><description>Well, by golly, that's a new one.&amp;nbsp; Give me a bit...</description><pubDate>Wed, 16 May 2007 17:00:44 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8843.aspx</link><description>And it doesn't work...get a 500 error (internal error)</description><pubDate>Wed, 16 May 2007 15:33:53 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8842.aspx</link><description>This is the error being returned when attempting to look at the status page:&lt;br&gt;
&lt;br&gt;
[quote]Could not load file or assembly 'MicroFour License Base, Version=1.6.0.0, Culture=neutral, PublicKeyToken=7bb29517c3189d04' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)[/quote]&lt;br&gt;
&lt;br&gt;
The ServerCheck.aspx page returns "OK.".</description><pubDate>Wed, 16 May 2007 15:29:13 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8839.aspx</link><description>Your license file will still work.&amp;nbsp; If you're still having problems activating that MAC address, send it to me so I can debug it.</description><pubDate>Wed, 16 May 2007 15:12:57 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error access data via ES</title><link>http://forum.strataframe.net/FindPost8837.aspx</link><description>I don't think my existing license file will work with this...reference problem.  How do I get a new license file for 1.6.0 ES?</description><pubDate>Wed, 16 May 2007 14:32:14 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>