Click here to Skip to main content
13,861,454 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=, 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?

1 solution

Rate this: bad
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.

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
Web06 | 2.8.190214.1 | Last Updated 29 Mar 2011
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

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