473,503 Members | 1,711 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem in running the exe on any location other than debug folder

198 New Member
Hi
i am getting probleum in running the exe on any other location on my computer except bin\debug when i execute the exe file which is in bin\debug folder it works fine and when i copy this exe and save on any location like desktop ,D:,C: it shows a dialog box which contains the follwoing errors
************************************************** ***********************************
System.IO.FileNotFoundException: Could not load file or assembly 'Interop.DAO, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'Interop.DAO, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null'
at Create_FinTiff.frmMain.frmMain_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************************************************** ****************************************
please tell me what is going to be wrong with my code or how i can make my exe so that it could not display this error

with best regards
varinder
Jun 7 '08 #1
5 2537
CyberSoftHari
487 Recognized Expert Contributor
You should do proper installation, there may some dll, Ocx or any third party tool may missing which is having reference to your project.
Jun 7 '08 #2
Plater
7,872 Recognized Expert Expert
What other files are in that directory?
There is probably the interop dll you use sitting there with it.
Jun 9 '08 #3
veer
198 New Member
Hi
yes there is interop.dll file in the debug directory and many other files like interop.dao.dll,interop.excel.dll,interop.adodb.dl l ,office.dll and if i copy all the files in the other directory with exe then it works fine .Is there any thing wrong in my project so that with out these dll files how can i run my exe
i also want to know
------ every time when i execute my programe the follwoing lines are displayed in immediate window

A first chance exception of type 'System.IO.IOException' occurred in Microsoft.VisualBasic.dll

what does this mean








What other files are in that directory?
There is probably the interop dll you use sitting there with it.
Jun 10 '08 #4
vijayB
40 New Member
Hi
yes there is interop.dll file in the debug directory and many other files like interop.dao.dll,interop.excel.dll,interop.adodb.dl l ,office.dll and if i copy all the files in the other directory with exe then it works fine .Is there any thing wrong in my project so that with out these dll files how can i run my exe
i also want to know
------ every time when i execute my programe the follwoing lines are displayed in immediate window

A first chance exception of type 'System.IO.IOException' occurred in Microsoft.VisualBasic.dll

what does this mean
Hmmm,
The exe which is getting created in bin\debug folder is not the actual one.
Build your project in release mode, you will get same exe at bin\release.
Then either use installshield or you can use setup wizard provided by VS 2k5 IDE. Through any of the above create setup, properly install it like any other software.
It should work..
Jun 10 '08 #5
veer
198 New Member
thanks for reply
it is working

i asked you antoher question in my previous post
how i disable exception like "A FIRST CHANCE EXCEPTION OCCURS OF TYPE " in vs2008

i got the idea by browsing on net and find
tools\options\debuging
but im not getting the debugging tab

is it right method if not then please how to do it


varinder



Hmmm,
The exe which is getting created in bin\debug folder is not the actual one.
Build your project in release mode, you will get same exe at bin\release.
Then either use installshield or you can use setup wizard provided by VS 2k5 IDE. Through any of the above create setup, properly install it like any other software.
It should work..
Jun 11 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1097
by: Visually Seen # | last post by:
Hey everybody, I'm doing a project called Science Talent Search, where I had to research about a topic in which I chose nuclear energy. I chose to present this as a computer program, and I...
1
1042
by: Peter | last post by:
Hi, I'm getting the following error when I run/debug my application: Could not load type 'MyApplication.SomeNamespace.SomeClassInNamespace' To give you more background information I...
5
1224
by: moondaddy | last post by:
I'm setup with a new ISP where we were given an account which we could setup multiple domains. To do this we were given a root directory where we setup a folder for each domain. then we mapped...
8
3364
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set...
2
1809
by: Richard Lionheart | last post by:
Hi All, I generated a WebForm and created a Virtual Directory for it IIS. But I got an error message (shown below) saying something like my app lacked appropriate privileges. David Wang...
13
3910
by: Lee Newson | last post by:
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...
5
4062
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
8
9645
by: =?Utf-8?B?TWlrZSBSYW5k?= | last post by:
I am trying to get a list of files from a specified directory using the System.IO namespace classes, and then use that list as the datasource for a GridView. I have been able to do this...
0
2102
by: james.mcdonagh | last post by:
Hi I am a newbie using nAnt for .net 2.0. As such I have not come across this bug before, and I would be happy of any help that you may be able to provide. In order to help I have included the...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.