Click here to Skip to main content
13,629,232 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
error occurs loading form1

'Global.System.Diagnostics.DebuggerStepThroughAttribute() _
Protected Overrides Sub OnCreateMainForm()
Me.MainForm = Global.OfficeManager.Form1
End Sub

error is
System.InvalidOperationException was unhandled Message;An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly omlb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; or one of its dependencies. The system cannot find the file specified

However omlb is loaded and appears in Object Browsewr with all its methods etc.

Where do I start looking please?
Posted 29-Mar-11 0:28am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Check the references for your project. It's properties will tell the path where it is looking for the file. It should be there at design time. At run time, the file should be in same location as the executable.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web02-2016 | 2.8.180712.1 | Last Updated 29 Mar 2011
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100