Apoplication.Designer.vb中的运行时错误 [英] Runtime error in Apoplication.Designer.vb

查看:145
本文介绍了Apoplication.Designer.vb中的运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

加载form1时发生错误

''Global.System.Diagnostics.DebuggerStepThroughAttribute()_
受保护的重写Sub OnCreateMainForm()
Me.MainForm = Global.OfficeManager.Form1
结束子

错误是
System.InvalidOperationException未处理消息;创建表单时发生错误.有关详细信息,请参见Exception.InnerException.错误是:无法加载文件或程序集omlb,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null'';或其依赖项之一.系统找不到指定的文件

但是omlb已加载,并以其所有方法等出现在Object Browsewr中.

我从哪里开始看?

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?

推荐答案

检查项目的引用.它的属性将告诉路径它在哪里寻找文件.它应该在设计时就在那儿.在运行时,文件应与可执行文件位于同一位置.
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.


这篇关于Apoplication.Designer.vb中的运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆