473,219 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,219 software developers and data experts.

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

198 100+
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 2529
CyberSoftHari
487 Expert 256MB
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 Expert 4TB
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 100+
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
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 100+
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
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
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
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
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
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
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
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
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
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
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.