Errors populating combo boxes using the PopulationDataSourceSettings/PopulationType properties
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Errors populating combo boxes using the...Expand / Collapse
Author
Message
Posted 05/01/2008 11:04:16 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 05/01/2008 12:27:38 PM
Posts: 35, Visits: 74
Hi Strataframe Team,

I made some simple changes to some forms and I rebuilt a new exe and redistribute it to the clients machines.   The application runs fine on my development machine.  But when I try to run it on the client machines it gives me the errors below.  From what I can tell through additional testing, the errors are occuring for ALL combo boxes I am populating using the BO with the PopulationDataSourceSettings/PopulationType properties.   What is really strange is all of these forms and combo boxes and BOs have been working fine for a long time!?!?   Help?

====================================================================================================================================================
Type 'CMPR.LocationsViewBO' could not be found in the referenced assemblies.
  Exception (Exception): Source="MicroFour StrataFrame Base"; Target=null; Tag=null;
    Message = "Type 'CMPR.LocationsViewBO' could not be found in the referenced assemblies."
    InnerException (FileNotFoundException): Source="mscorlib"; Target=null; Tag=null;
      Message = "Could not load file or assembly 'DevExpress.XtraReports.v8.1, Version=8.1.1.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1' or one of its dependencies. The system cannot find the file specified."
      StackTrace =
          "   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
             at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
             at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
             at MicroFour.StrataFrame.Tools.Common.GetTypeFromReferencedAssemblies(String TypeName)"
      FileName = "DevExpress.XtraReports.v8.1, Version=8.1.1.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
      FusionLog =
          "WRN: Assembly binding logging is turned OFF.
          To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
          Note: There is some performance penalty associated with assembly bind failure logging.
          To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
          "
  Environment: ThreadIdentity="" DateTime=["2008-05-01 11:41:17.099"] ThreadName=null WindowsIdentity="STRUSS\JPagley" ThreadId="1" DomainName="cmpr.exe" OSVersion=["Microsoft Windows NT 5.0.2195 Service Pack 4"] MachineName="INVENTORY"
    UserName="JPagley"
  Remaining Stack Trace  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    at MicroFour.StrataFrame.Tools.Common.GetTypeFromReferencedAssemblies(String TypeName)
    at MicroFour.StrataFrame.UI.Windows.Forms.ListControl.PopulateComboFromBusinessObject(IListControl lstControl, Object[] Parameters)
    at MicroFour.StrataFrame.UI.Windows.Forms.ListControl.PopulateCombo(Control lstControl, Object[] Parameters)
    at MicroFour.StrataFrame.UI.Windows.Forms.DevEx.ComboBoxEdit.PopulateCombo(Object[] Parameters)
    at MicroFour.StrataFrame.UI.Windows.Forms.DevEx.ComboBoxEdit.Requery()
    at MicroFour.StrataFrame.UI.Windows.Forms.DevEx.ComboBoxEdit.InitializeObject()
    at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InitializeFormLoadObjects()
    at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)
    at System.Windows.Forms.Form.WmShowWindow(Message& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
    at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Post #16068
Posted 05/01/2008 11:11:05 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:38:37 PM
Posts: 3,775, Visits: 3,950
This is one of the most common redistribution issues that I see.  You do you have the assemblies up to date on the client machine.  This can happen due to the following issues:

  • Old assemblies are still in the GAC or on disk
  • New assemblies did not get distributed
  • Permission issues prevents the assemblies from being updated
  • Multiple versions of the same assembly are in the GAC (i.e. MSIL, x86 builds)

It is going to be something along these lines, so you might start with the above "gotchas" and go from there.

Post #16069
Posted 05/01/2008 12:30:44 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 05/01/2008 12:27:38 PM
Posts: 35, Visits: 74
Hi Trent,

As you suggested, I found I was missing an .dll file.  As always, excellent support and help.  Thanks!

Post #16071
Posted 05/01/2008 1:36:48 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:38:37 PM
Posts: 3,775, Visits: 3,950
Glad you found it
Post #16073
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 2:57pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.