473,406 Members | 2,390 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,406 software developers and data experts.

project runs fine in visual studio, but not as a standalone exe. Why?

I have a vb 'solution' which has 2 projects, one of which produces an
exe, and one of which produces a dll. (The exe uses the dll). When I
click on Debug/Start-without-debugging, it works well. But if I close
Visual Studio, and then double click on the 'exe', I get into
trouble. An error message comes up saying:
"System.IO.FileNotFoundException: Could not load file or assembly
'clslib' or one of its dependencies."
It sounds like either the exe cannot locate the dll, or the dll itself
cannot locate some of its dependencies (it depends on several dlls I
got from a developer).
But I'm not sure what I should do about this. Should I make a new
directory, and copy the exe, the dll, and all dependent dlls to that
directory? And why does it work when run from within Visual Studio?
Thanks,
HA

Jul 16 '07 #1
3 6358
On Jul 16, 4:38 pm, HONOREDANCES...@YAHOO.COM wrote:
I have a vb 'solution' which has 2 projects, one of which produces an
exe, and one of which produces a dll. (The exe uses the dll). When I
click on Debug/Start-without-debugging, it works well. But if I close
Visual Studio, and then double click on the 'exe', I get into
trouble. An error message comes up saying:
"System.IO.FileNotFoundException: Could not load file or assembly
'clslib' or one of its dependencies."
It sounds like either the exe cannot locate the dll, or the dll itself
cannot locate some of its dependencies (it depends on several dlls I
got from a developer).
But I'm not sure what I should do about this. Should I make a new
directory, and copy the exe, the dll, and all dependent dlls to that
directory? And why does it work when run from within Visual Studio?
Thanks,
HA
I would generate EXE with a setup project. As long as the EXE project
is configured to "depend" on the DLL project, you should be good to
go.

Jul 16 '07 #2
On Jul 16, 3:38 pm, HONOREDANCES...@YAHOO.COM wrote:
I have a vb 'solution' which has 2 projects, one of which produces an
exe, and one of which produces a dll. (The exe uses the dll). When I
click on Debug/Start-without-debugging, it works well. But if I close
Visual Studio, and then double click on the 'exe', I get into
trouble. An error message comes up saying:
"System.IO.FileNotFoundException: Could not load file or assembly
'clslib' or one of its dependencies."
It sounds like either the exe cannot locate the dll, or the dll itself
cannot locate some of its dependencies (it depends on several dlls I
got from a developer).
But I'm not sure what I should do about this. Should I make a new
directory, and copy the exe, the dll, and all dependent dlls to that
directory? And why does it work when run from within Visual Studio?
Thanks,
HA
Is the .dll located in the same folder as the .exe?

Chris

Jul 16 '07 #3
On Jul 16, 5:35 pm, Chris Dunaway <dunaw...@gmail.comwrote:
On Jul 16, 3:38 pm, HONOREDANCES...@YAHOO.COM wrote:
I have a vb 'solution' which has 2 projects, one of which produces an
exe, and one of which produces a dll. (The exe uses the dll). When I
click on Debug/Start-without-debugging, it works well. But if I close
Visual Studio, and then double click on the 'exe', I get into
trouble. An error message comes up saying:
"System.IO.FileNotFoundException: Could not load file or assembly
'clslib' or one of its dependencies."
It sounds like either the exe cannot locate the dll, or the dll itself
cannot locate some of its dependencies (it depends on several dlls I
got from a developer).
But I'm not sure what I should do about this. Should I make a new
directory, and copy the exe, the dll, and all dependent dlls to that
directory? And why does it work when run from within Visual Studio?
Thanks,
HA

Is the .dll located in the same folder as the .exe?

Chris
That was it! I had to copy the dll and the exe, and all the secondary
dlls that the dll depends on, to one folder. Then I double clicked on
the exe, and it found the dlls.
Thanks,
HA

Jul 17 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mark | last post by:
I am developing a Web site and can't figure out how to store the project files on the Web server instead of my local hard drive. There must be a way, otherwise people wouldn't be able to...
2
by: Qiao Yun | last post by:
I used vc++.net (visual studio .net ) to open a project which can work well in vc++6.0. I succeeded in compiling the project in vc++.net in release mode . But when I tried to compile the project...
3
by: Rob Mayo | last post by:
I am working in an environment with 4 developers. 2 groups of 2 people working on the same server on the same web project with no version control management on the web server. Programmers A & B...
4
by: mcwooq | last post by:
Hi, I just installed the VS.Studio 2005 Team Edition for Developper and encountered severe problems with debugging ASP.NET 2.0 projects. Even newly empty created ASP 2.0 projects can't debug...
4
by: Airw0lf | last post by:
Hi all, would appreciate help with some trouble I'm having after using the Visual C++ 2005 Express Conversion Wizard on my Visual C++ .NET 2003 project. The wizard completed successfully with...
6
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free)...
4
by: Jason Teagle | last post by:
I'm not sure which is the correct group to post this to, if either, so apologies for the crosspost and if it's OT. I have a Visual Studio.NET 2002-compiled solution that originated at work. At...
0
by: dfrench | last post by:
I have a visual studio 2008 solution(win forms) I have a Deployment project with it to install the software I upgrade the version number on the deployment project and build it When I run this on...
1
by: Cramer | last post by:
I'm running XP Pro/SP2 + patches and updates, with Visual Studio Professional 2008 (and no prior installation of Visual Studio ever installed). When attempting to open an ASP.NET Web application...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.