Windows表单应用程序问题 [英] Windows form application problem

查看:72
本文介绍了Windows表单应用程序问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我刚刚用VB.NET编写了我的第一个应用程序。当我在.NET中运行它以进行调试时,该应用程序正常工作

但是当我尝试从.NET创建的.exe文件中运行应用程序
时得到以下

错误消息:


"'System.IO.FileNotFoundException'类型未处理的异常发生

在VisioTimeline.exe中


附加信息:找不到文件或程序集名称AxInterop.VisOcx,或其中一个

的依赖项。


我试过从应用程序中删除AxInterop.VisOcx引用,重建

然后将引用放回到解决方案中并重新构建它

但我仍然得到同样的错误。


当应用程序尝试运行并进行调试时,反汇编显示为

但这是在机器中代码,虽然我在大学处理过,

对我来说并不意味着什么。


任何人都可以帮忙吗?


谢谢对于任何和所有的帮助,非常感谢


reagrds


Lee

Hi,

I have just written my first application using VB.NET. The app works fine
when i am running it within .NET for debugging purposes, however when i try
to run the app from the .exe file that .NET creates i get the following
error message:

"An unhandled exception of type ''System.IO.FileNotFoundException'' occurred
in VisioTimeline.exe

Additional information: File or assembly name AxInterop.VisOcx, or one of
its dependencies, was not found."

I have tried removing the AxInterop.VisOcx refernce from the app, rebuilding
it then putting the reference back into the solution and rebuilding it again
but i still get the same error.

When the app tries to run and consequently debugs, the disassembly is
displayed but this is in machine code, which although i touched on at uni,
doesn''t mean a thing to me.

Can anyone help??

Thanks for any and all help, it is greatly appreciated

reagrds

Lee

推荐答案

如何引用AxInterop.VisOcx?你确定它是在你的应用程序的编译版本的

正确的位置吗?


你是否在应用程序的设置中包含它或让你刚刚编译了

项目并尝试从bin文件夹运行exe文件?

-

Gerry O''Brien

Visual Basic.NET MVP

" Lee Newson" <乐******** @ hotmail.com>在留言中写道

新闻:或************** @ TK2MSFTNGP14.phx.gbl ...
How is the AxInterop.VisOcx referenced? Are you certain it is in the
correct location for the compiled version of your app?

Do you include it in the setup of your app or have you just compiled the
project and attempted to run the exe from the bin folder?
--
Gerry O''Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP14.phx.gbl...

我刚刚使用VB.NET编写了我的第一个应用程序。该应用程序正常工作当我在.NET中运行它以进行调试时,但是当我尝试从.NET创建的.exe文件运行应用程序时,我得到以下<错误消息:

VisioTimeline.exe中发生了'System.IO.FileNotFoundException'类型未处理的异常

附加信息:找不到文件或程序集名称AxInterop.VisOcx,或其中一个依赖项。

我试过从应用程序中删除AxInterop.VisOcx引用,
重建
然后将引用放回到解决方案并重新构建

但我仍然得到相同的错误。

当应用程序尝试运行并因此调试时,显示了反汇编,但这是在机器代码中,虽然我在大学时触及,但对我来说并不意味着什么。

任何人都可以帮忙吗? ?

感谢您提供的所有帮助,非常感谢

r eagrds


Hi,

I have just written my first application using VB.NET. The app works fine
when i am running it within .NET for debugging purposes, however when i
try
to run the app from the .exe file that .NET creates i get the following
error message:

"An unhandled exception of type ''System.IO.FileNotFoundException'' occurred
in VisioTimeline.exe

Additional information: File or assembly name AxInterop.VisOcx, or one of
its dependencies, was not found."

I have tried removing the AxInterop.VisOcx refernce from the app,
rebuilding
it then putting the reference back into the solution and rebuilding it
again
but i still get the same error.

When the app tries to run and consequently debugs, the disassembly is
displayed but this is in machine code, which although i touched on at uni,
doesn''t mean a thing to me.

Can anyone help??

Thanks for any and all help, it is greatly appreciated

reagrds

Lee



嗨Gerry,


它是在解决方案资源管理器的参考部分中引用(并且我已经在coed中通过import AxVisOcx =

AxMicrosoft.Office.Interop.VisOcx


与工作同事交谈之后,我们认为问题可能会有一些问题,因为他没有加入GAC会议时... ... br />
汇总到GAC我收到一条错误消息,说它不是很强烈

命名。


我相信大会来了使用Visio 2003 SDK。


不幸的是我没有更多信息。这是我第一次使用Visual Studio创建一个应用程序并且第一次使用hte

Visio ActiveX控件,所以它让我有点难过。


编译并尝试从bin文件夹运行程序是我做的第一个

事情(假设它可以工作)。之后,我删除了

参考,重建,重新引用和重建..仍然没有运气。


感谢您的帮助。
< br $>
问候


Lee


" Gerry O''Brien" < GK ****** @ hotmail.com>在消息中写道

新闻:Oz ************** @ TK2MSFTNGP10.phx.gbl ...
Hi Gerry,

It is referenced in the references section of the solution explorer (and i
have referenced it in the coed by "import AxVisOcx =
AxMicrosoft.Office.Interop.VisOcx"

After speaking with a work colleague we think the problem may have something
to do witht he assembly not being in the GAC... when trying to add this
assembly to the GAC i get an error message saying that it is not strongly
named.

I believe that the assembly came with the Visio 2003 SDK.

Unfortunately i do not have any more information. This is the first time i
have created an application using Visual Studio and the first time using hte
Visio ActiveX control so it has got me a little stumped.

Compiling and trying to run the program form the bin folder was the first
thing i did (assuming that it would work). after that i removed the
reference, rebuilt, re-referenced and rebuilt.. still no luck.

Thanks for you help.

regards

Lee

"Gerry O''Brien" <gk******@hotmail.com> wrote in message
news:Oz**************@TK2MSFTNGP10.phx.gbl...
AxInterop是怎样的。 VisOcx引用了什么?你确定它在你的应用程序的编译版本的正确位置吗?

你是否在应用程序的设置中包含它或者你刚刚编译了
项目并尝试从bin文件夹运行exe?

-
Gerry O'Brien
Visual Basic.NET MVP

" Lee纽森" <乐******** @ hotmail.com>在消息中写道
新闻:或************** @ TK2MSFTNGP14.phx.gbl ...
How is the AxInterop.VisOcx referenced? Are you certain it is in the
correct location for the compiled version of your app?

Do you include it in the setup of your app or have you just compiled the
project and attempted to run the exe from the bin folder?
--
Gerry O''Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP14.phx.gbl...

我刚刚使用VB.NET编写了我的第一个应用程序。当我在.NET中运行它以进行调试时,该应用程序可以正常工作
,但是当我尝试从.NET创建的.exe文件运行应用程序时,我得到以下<错误消息:

VisioTimeline.exe中出现'System.IO.FileNotFoundException''
类型的未处理异常

其他信息:找不到文件或程序集名称AxInterop.VisOcx或其依赖项的一个


我已尝试从应用程序中删除AxInterop.VisOcx引用,
重建
然后将引用放回到解决方案并重新构建

但我仍然得到相同的错误。

当应用程序尝试运行并因此调试时,显示了反汇编,但这是在机器代码中,虽然我在
uni上触及,对我来说并不意味着什么。

任何人都可以帮忙吗? ?

感谢您提供的所有帮助,非常感谢

reagr ds


Hi,

I have just written my first application using VB.NET. The app works fine when i am running it within .NET for debugging purposes, however when i
try
to run the app from the .exe file that .NET creates i get the following
error message:

"An unhandled exception of type ''System.IO.FileNotFoundException'' occurred in VisioTimeline.exe

Additional information: File or assembly name AxInterop.VisOcx, or one of its dependencies, was not found."

I have tried removing the AxInterop.VisOcx refernce from the app,
rebuilding
it then putting the reference back into the solution and rebuilding it
again
but i still get the same error.

When the app tries to run and consequently debugs, the disassembly is
displayed but this is in machine code, which although i touched on at uni, doesn''t mean a thing to me.

Can anyone help??

Thanks for any and all help, it is greatly appreciated

reagrds

Lee




我找不到SDK中的ocx,我不确定你会在2003 SDK中找到并且

ActiveX控件。虽然有一个基于COM的

对象库与SDK一起安装,但我无法找到你b $ b所指的控件。


我还没有在.NET中为Visio开发任何东西,所以我可能不是这里最好的帮助,但我会尝试。


这是一个供您查看的网站。关于C#的网站是关于
,这篇文章的代码示例是VB。


我想你可能会找到你的答案的一部分你可能没有在bx文件上运行tlbimp.exe来在它周围应用一个COM包装器。


这篇文章解释了如何做到这一点,然后如何通过使用sn.exe实用程序创建一个强命名的程序集来将它放入GAC中。

http://www.csharpfriends.com/Article...x?articleID=43


希望它有所帮助。


格里

" Lee Newson" <乐******** @ hotmail.com>在消息中写道

news:u%****************** @ TK2MSFTNGP10.phx.gbl ...
I''m not able to find the ocx in the SDK and I''m not sure you will find and
ActiveX control in the 2003 SDK anyway. Although there is a COM based
object library that installs with the SDK, I cannot locate the control you
are referring to.

I have yet to develop anything in .NET for Visio so I may not the be the
best person to help here but I will try nonetheless.

Here is a for a web site for you to take a look at. Althouth the site is
about C#, the code samples are in VB for this article.

I think you may find part of your answer in the fact that you may not have
run tlbimp.exe on the ocx file to apply a COM wrapper around it.

This article explains how to do just that and then how to isntall it into
the GAC by using the sn.exe utility to create a strongly named assembly.

http://www.csharpfriends.com/Article...x?articleID=43

Hope it helps.

Gerry
"Lee Newson" <le********@hotmail.com> wrote in message
news:u%******************@TK2MSFTNGP10.phx.gbl...
嗨Gerry,

它在解决方案资源管理器的参考部分中被引用(并且我已经通过import AxVisOcx =
AxMicrosoft.Office.Interop在coed中引用了它) .VisOcx"

在与同事交谈之后,我们认为问题可能有什么事情要做,因为他没有加入GAC ...当试图添加这个时
汇总到GAC我收到一条错误消息,说它没有被强烈命名。

我相信该程序集附带了Visio 2003 SDK。
<不幸的是我没有更多信息。这是第一次使用Visual Studio创建应用程序并且第一次使用
hte
Visio ActiveX控件所以它让我有点难过。

编译并尝试从bin文件夹运行程序是第一个
事物id id(假设它可以工作)。之后,我删除了
参考,重建,重新引用和重建..仍然没有运气。

感谢您的帮助。

问候

Lee

Gerry O''Brien < GK ****** @ hotmail.com>在消息中写道
新闻:Oz ************** @ TK2MSFTNGP10.phx.gbl ...
Hi Gerry,

It is referenced in the references section of the solution explorer (and i
have referenced it in the coed by "import AxVisOcx =
AxMicrosoft.Office.Interop.VisOcx"

After speaking with a work colleague we think the problem may have
something
to do witht he assembly not being in the GAC... when trying to add this
assembly to the GAC i get an error message saying that it is not strongly
named.

I believe that the assembly came with the Visio 2003 SDK.

Unfortunately i do not have any more information. This is the first time
i
have created an application using Visual Studio and the first time using
hte
Visio ActiveX control so it has got me a little stumped.

Compiling and trying to run the program form the bin folder was the first
thing i did (assuming that it would work). after that i removed the
reference, rebuilt, re-referenced and rebuilt.. still no luck.

Thanks for you help.

regards

Lee

"Gerry O''Brien" <gk******@hotmail.com> wrote in message
news:Oz**************@TK2MSFTNGP10.phx.gbl...
如何引用AxInterop.VisOcx?你确定它在你的应用程序的编译版本的正确位置吗?

你是否在应用程序的设置中包含它或者你刚刚编译了
项目并尝试从bin文件夹运行exe?

-
Gerry O'Brien
Visual Basic.NET MVP

" Lee纽森" <乐******** @ hotmail.com>在消息中写道
新闻:或************** @ TK2MSFTNGP14.phx.gbl ...
How is the AxInterop.VisOcx referenced? Are you certain it is in the
correct location for the compiled version of your app?

Do you include it in the setup of your app or have you just compiled the
project and attempted to run the exe from the bin folder?
--
Gerry O''Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP14.phx.gbl...
>
>
>我刚刚用VB.NET编写了我的第一个应用程序。该应用程序工作正常>当我在.NET中运行它以进行调试时,但是当我在
>试试
>从.NET创建的.exe文件运行应用程序我得到以下
>错误讯息:
>
> 发生了'System.IO.FileNotFoundException'类型未处理的异常>在VisioTimeline.exe
>
>附加信息:文件或程序集名称AxInterop.VisOcx,或者是>找不到它的依赖关系。
>
>我试过从应用程序中删除AxInterop.VisOcx引用,
>重建
>然后将引用放回到解决方案中并重建它
>再次
>但我仍然得到同样的错误。
>
>当应用程序尝试运行并因此进行调试时,反汇编是
>显示但这是在机器代码中,虽然我在uni上触及,>对我来说并不意味着什么。
>
>任何人都可以帮忙吗?
>
>感谢您提供的任何帮助,非常感谢
>
> reagrds
>
> Lee
>
>
> Hi,
>
> I have just written my first application using VB.NET. The app works fine > when i am running it within .NET for debugging purposes, however when i
> try
> to run the app from the .exe file that .NET creates i get the following
> error message:
>
> "An unhandled exception of type ''System.IO.FileNotFoundException'' occurred > in VisioTimeline.exe
>
> Additional information: File or assembly name AxInterop.VisOcx, or one of > its dependencies, was not found."
>
> I have tried removing the AxInterop.VisOcx refernce from the app,
> rebuilding
> it then putting the reference back into the solution and rebuilding it
> again
> but i still get the same error.
>
> When the app tries to run and consequently debugs, the disassembly is
> displayed but this is in machine code, which although i touched on at uni, > doesn''t mean a thing to me.
>
> Can anyone help??
>
> Thanks for any and all help, it is greatly appreciated
>
> reagrds
>
> Lee
>
>





这篇关于Windows表单应用程序问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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