简体   繁体   English

Microsoft Visual Studio 2005(Vb.net)

[英]Microsoft Visual Studio 2005 (Vb.net)

I'm doing my project in Vb.net. 我正在Vb.net中做我的项目。 my project name is "Bellows". 我的项目名称是“ Bellows”。 My front end is Vb.net. 我的前端是Vb.net。 Back end is Ms Access. 后端是Access女士。 i Create My project in Windows Application 我在Windows应用程序中创建我的项目

i complete my project. 我完成我的项目。 i copy the .exe file from "E:\\BellowNet(new)\\Bellows\\obj\\Debug" and put the shortcut into my desktop. 我从“ E:\\ BellowNet(new)\\ Bellows \\ obj \\ Debug”复制.exe文件,并将快捷方式放入我的桌面。 now it's running. 现在它正在运行。

similarly i copied my Bellows.exe from another system desktop but it not running. 同样,我从另一个系统桌面复制了Bellows.exe,但没有运行。

How i want to run my Bellows.exe from another systems (maximum 10 systems). 我要如何从另一个系统(最多10个系统)运行Bellows.exe。

Note : In my system only having Microsoft Visual Studio 2005. Remaining system doesn't have. 注意:在我的系统中,只有Microsoft Visual Studio2005。其余的系统则没有。

I put bellows.exe from another system. 我从另一个系统放了bellows.exe。 in that system doesn't having E Drive. 在该系统中没有E盘。 it showing this error 它显示此错误

The application Filed to initialize properly(0xc0000135). 应用程序已归档以正确初始化(0xc0000135)。 Click Ok to terminate the application 单击确定终止应用程序

Similarly I put bellows.exe from another system. 同样,我从另一个系统放了bellows.exe。 in that system having E Drive. 在具有E盘的系统中。

if i click that Bellows.exe the login form is open.. and main form is open. 如果我单击该Bellows.exe,则登录表单已打开..并且主表单已打开。 in that main form wen i click button it show the error. 在该主要形式中,我单击按钮会显示错误。

Unhandled exception has occurred in your application. 您的应用程序中发生了未处理的异常。 If u click continue the application will ignore this error and attempt to continue. 如果单击继续,应用程序将忽略此错误并尝试继续。 If u click Quit, the application will close immediately. 如果您单击退出,应用程序将立即关闭。 Could not load file or assembly 'ADODB, Version=7.0.3300.0, Culture=neutral, PublickeyToken=b03f5f7f11d50a3a' or one of its dependencies. 无法加载文件或程序集“ ADODB,版本= 7.0.3300.0,文化=中性,PublickeyToken = b03f5f7f11d50a3a”或其依赖项之一。 The system cannot find the file specified 该系统找不到指定的文件

Good practice to run your project on another systems is to create its setup file and then install it on to another systems on which you want to run your project and of course you need to install .NetFramework as well with the same version which you used to developed your project. 在另一个系统上运行项目的一种好习惯是创建其安装文件,然后将其安装到要在其上运行项目的另一个系统上,当然,您还需要安装.NetFramework以及以前使用的相同版本。开发了您的项目。 How to create setup and how to add Serial Key for those steps refer my blog 如何创建设置以及如何为这些步骤添加序列号, 请参阅我的博客

It sounds like either the .Net Framework is not installed on your target system or that there's an app.config file (Bellows.app.config) that you need to copy over as well. 听起来好像.net Framework未安装在目标系统上,或者您还需要复制一个app.config文件(Bellows.app.config)。

Another thing that concerns me is what your expectations are for the access database. 与我有关的另一件事是您对访问数据库的期望。 Do you want all the workstations to share a common database? 是否要所有工作站共享一个公共数据库? If so, I highly recommend you convert your app to use Sql Server Express Edition (free). 如果是这样,我强烈建议您将应用程序转换为使用Sql Server Express Edition(免费)。 Access is an in-process database engine, and like all such engines it doesn't behave well when shared. Access是一个进程内数据库引擎,与所有此类引擎一样,它在共享时表现也不佳。 If you don't expect them to share the database, you probably want to make sure you copy that *.mdb file over to your target machines as well. 如果不希望他们共享数据库,则可能要确保将* .mdb文件也复制到目标计算机上。

Finally, let me re-iterate the advice in other answers about using a Release build and/or deployment project. 最后,让我再次重申其他有关使用发行版构建和/或部署项目的建议。

What errors do you see? 您看到什么错误?

It could be: 它可能是:

  • The other system does not have .Net framework 2.0 installed 其他系统未安装.Net Framework 2.0
  • You copied only the exe from the dev machine without other required files from the Debug directory (eg, app.config, supporting DLLs). 您仅从开发机上复制了exe,而没有从Debug目录中复制其他必需的文件(例如,app.config,支持DLL)。

If you are going to copy and paste the exe file then the all Prerequiest should be installed on that machine like framework.So make a setup file which is easy and add all Prerequiest on the setup after that do setup on new machine.. 如果您要复制并粘贴exe文件,则应将所有Prerequiest安装在该计算机上,例如Framework.So,创建一个易于安装的文件,然后在新计算机上进行安装后将所有Prerequiest添加到安装程序中。

Thanks 谢谢

I can only guess, but try this suggestions. 我只能猜测,但可以尝试此建议。

The application Filed to initialize properly(0xc0000135). 应用程序已归档以正确初始化(0xc0000135)。 Click Ok to terminate the application 单击确定终止应用程序

.NET framework is not installed on this machine. .NET框架未安装在此计算机上。 Install the runtime. 安装运行时。

Could not load file or assembly 'ADODB, Version=7.0.3300.0, Culture=neutral, PublickeyToken=b03f5f7f11d50a3a' or one of its dependencies. 无法加载文件或程序集“ ADODB,版本= 7.0.3300.0,文化=中性,PublickeyToken = b03f5f7f11d50a3a”或其依赖项之一。 The system cannot find the file specified 该系统找不到指定的文件

ADO.NET drivers are missing. 缺少ADO.NET驱动程序。 You need to install Microsoft Data Access Components 您需要安装Microsoft数据访问组件

You can avoid this problems if you make an install procedure and do the proper install on every machine. 如果执行安装过程并在每台计算机上进行正确的安装,则可以避免此问题。

The appropriate .NET framework must be installed in each machine as well as the appropriate MDAC. 必须在每台计算机上安装适当的.NET框架以及适当的MDAC。 You can add them as part of the installation package. 您可以将它们添加为安装软件包的一部分。

http://msdn.microsoft.com/en-us/library/ms994427.aspx http://msdn.microsoft.com/en-us/library/ms994427.aspx

And if you want to make it even more easier for your clients to get hold of it; 如果您想使客户更容易掌握它, use ClickOnce to distribute it from a central server. 使用ClickOnce从中央服务器分发它。

http://www.15seconds.com/issue/041229.htm http://www.15seconds.com/issue/041229.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM