Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900