473,378 Members | 1,447 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,378 software developers and data experts.

dll not found

Hello,
I have usercontrol dll. If I reference it in the calling application with
local copy=true it works fine. If I set local copy to false. I get an error
saying the dll cannot be found. What do I have to set to ensure the dll in
the bin of the usercontrol is used?
The reference path in the projectproperties refers to that bin. Someplace
else I have to set something?
Thanks
Frank

Nov 20 '05 #1
8 1949
Hi, may I ask why you need to set local copy to false? If the usercontrol
DLL is recompiled, then the new version of the DLL is copied to your
application directory... if that's what you're worrying about.

--
HTH,
-- Tom Spink, Über Geek

Woe be the day VBC.EXE says, "OrElse what?"

Please respond to the newsgroup,
so all can benefit
"Frank" <fr***@frank.com> wrote in message
news:cc**********@news3.tilbu1.nb.home.nl...
Hello,
I have usercontrol dll. If I reference it in the calling application with
local copy=true it works fine. If I set local copy to false. I get an error saying the dll cannot be found. What do I have to set to ensure the dll in
the bin of the usercontrol is used?
The reference path in the projectproperties refers to that bin. Someplace
else I have to set something?
Thanks
Frank

Nov 20 '05 #2
Thanks, I didn't know/noticed and it solves my problem. But....it doesn't
answer the question, why is the dll not found?
Frank
"Tom Spink" <thomasdotspinkatsp@mntlworlddotcom> wrote in message
news:eK**************@TK2MSFTNGP09.phx.gbl...
Hi, may I ask why you need to set local copy to false? If the usercontrol
DLL is recompiled, then the new version of the DLL is copied to your
application directory... if that's what you're worrying about.

--
HTH,
-- Tom Spink, Über Geek

Woe be the day VBC.EXE says, "OrElse what?"

Please respond to the newsgroup,
so all can benefit
"Frank" <fr***@frank.com> wrote in message
news:cc**********@news3.tilbu1.nb.home.nl...
Hello,
I have usercontrol dll. If I reference it in the calling application with local copy=true it works fine. If I set local copy to false. I get an

error
saying the dll cannot be found. What do I have to set to ensure the dll in the bin of the usercontrol is used?
The reference path in the projectproperties refers to that bin. Someplace else I have to set something?
Thanks
Frank


Nov 20 '05 #3
Any supporting DLL that is not in your path, your current directory, or the
application directory will not be found (Since it doesn't know where to look
when it goes to do the runtime bind.) Local Copy copies the file into your
program's application directory. Since your DLL isn't in any of the folders
listed otherwise, the usercontrol file can't be found. Remember, there's no
class registry like there was in ActiveX to look it up in, (Which most
consider a good thing as it solves the DLL hell problem and allows for
side-by-side multiple version support.)

If you where to move your user control to, say, your system32 (on NT
systems) folder, you would no longer receive the error, but would have to
move it there every time you recompiled the user control, and would loose
side-by-side multi-versioning, so usually Local Copy is the method of
choice.

Hope that answers your question. ^.^

--

Signed,
John-Michael O'Brien
Student, Urban Drainage and Flood Control District
"Frank" <fr***@frank.com> wrote in message
news:cc**********@news3.tilbu1.nb.home.nl...
Thanks, I didn't know/noticed and it solves my problem. But....it doesn't
answer the question, why is the dll not found?
Frank


Nov 20 '05 #4
Yes, thanks JM,
but is there is way to change the path inside/during my VB session. So while
developing Appl A have the active path for ApplA also point to the bin of
appl B. Where/how is that path created?
Thanks
Frank

"John-Michael O'Brien" <jm@udfcd.org> wrote in message
news:IH***********@fe39.usenetserver.com...
Any supporting DLL that is not in your path, your current directory, or the application directory will not be found (Since it doesn't know where to look when it goes to do the runtime bind.) Local Copy copies the file into your
program's application directory. Since your DLL isn't in any of the folders listed otherwise, the usercontrol file can't be found. Remember, there's no class registry like there was in ActiveX to look it up in, (Which most
consider a good thing as it solves the DLL hell problem and allows for
side-by-side multiple version support.)

If you where to move your user control to, say, your system32 (on NT
systems) folder, you would no longer receive the error, but would have to
move it there every time you recompiled the user control, and would loose
side-by-side multi-versioning, so usually Local Copy is the method of
choice.

Hope that answers your question. ^.^

--

Signed,
John-Michael O'Brien
Student, Urban Drainage and Flood Control District
"Frank" <fr***@frank.com> wrote in message
news:cc**********@news3.tilbu1.nb.home.nl...
Thanks, I didn't know/noticed and it solves my problem. But....it doesn't answer the question, why is the dll not found?
Frank


Nov 20 '05 #5
Well, the search path is derived from your PATH environment variable. In
Windows XP you can find where this variable is set (Well, where you can
change it anyway) by bringing up the system properties and then selecting
the advanced tab, clicking the environment variables button on the bottom,
and finding Path in the system variables list. However, this change applies
globally to your system. To make a change that only applies to your project,
(but may lead to unexpected results) you can change the working path for
your project under the project properties/configuration properties/working
directory. However, this only applies while working in the IDE and does not
affect the program anywhere else (I.E. will not fix it for release.)

You could also change the folder that Project B compiles to (in your
example), but that means that it will no longer compile to the bin folder in
its own directory and would only place the code in project A's folder, but
Local Copy has roughly the same effect while leaving the original binary
where it belongs.

--

Signed,
John-Michael O'Brien
Student, Urban Drainage and Flood Control District
"Frank" <fr***@frank.com> wrote in message
news:cc**********@news2.tilbu1.nb.home.nl...
Yes, thanks JM,
but is there is way to change the path inside/during my VB session. So while developing Appl A have the active path for ApplA also point to the bin of
appl B. Where/how is that path created?
Thanks
Frank


Nov 20 '05 #6
I'm new to VB.Net and look thru the newsgroups to learn new things. I haven't seen local copy used. Could you explain where you can set it to true/false, i.e., in the dll declaration, etc. Thanks.
--
Dennis in Houston
"Frank" wrote:
Hello,
I have usercontrol dll. If I reference it in the calling application with
local copy=true it works fine. If I set local copy to false. I get an error
saying the dll cannot be found. What do I have to set to ensure the dll in
the bin of the usercontrol is used?
The reference path in the projectproperties refers to that bin. Someplace
else I have to set something?
Thanks
Frank

Nov 20 '05 #7
"Dennis" <De****@discussions.microsoft.com> wrote in message news:AA**********************************@microsof t.com...
I'm new to VB.Net and look thru the newsgroups to learn new things. I haven't seen local copy used.
Could you explain where you can set it to true/false, i.e., in the dll declaration, etc. Thanks.


Dennis,

Copy Local isn't part of the VB.NET language, it's a project management feature of Visual Studio .NET.

If you're running Visual Studio .NET and you view the Solutions Explorer, there will be a node under
every .NET Project named "References." Expanding that node lists the assemblies referenced by that
particular project (when Importing a namespace, you must specify it both in a .vb source file "Imports
Such.And.Such.Namespace" and ensure that the assembly defining that namespace has been added
to the References: in Visual Studio .NET by right-clicking and selecting Add Reference.., or from the
command-line vbc compiler through /R:assembly.name.dll).

The properties for each of these assembly references contain the Copy Local option. Setting this option
to True copies the assembly from it's referenced location to the application's /bin folder, that's all. In some
cases, like web applications, you want all assemblies the web application depends upon to be copied to
that folder to make them easy for ASP.NET to find.
Derek Harmon
Nov 20 '05 #8
Thank you very much for the information. I learn something new about vb.net every day.
--
Dennis in Houston
"Derek Harmon" wrote:
"Dennis" <De****@discussions.microsoft.com> wrote in message news:AA**********************************@microsof t.com...
I'm new to VB.Net and look thru the newsgroups to learn new things. I haven't seen local copy used.
Could you explain where you can set it to true/false, i.e., in the dll declaration, etc. Thanks.


Dennis,

Copy Local isn't part of the VB.NET language, it's a project management feature of Visual Studio .NET.

If you're running Visual Studio .NET and you view the Solutions Explorer, there will be a node under
every .NET Project named "References." Expanding that node lists the assemblies referenced by that
particular project (when Importing a namespace, you must specify it both in a .vb source file "Imports
Such.And.Such.Namespace" and ensure that the assembly defining that namespace has been added
to the References: in Visual Studio .NET by right-clicking and selecting Add Reference.., or from the
command-line vbc compiler through /R:assembly.name.dll).

The properties for each of these assembly references contain the Copy Local option. Setting this option
to True copies the assembly from it's referenced location to the application's /bin folder, that's all. In some
cases, like web applications, you want all assemblies the web application depends upon to be copied to
that folder to make them easy for ASP.NET to find.
Derek Harmon

Nov 20 '05 #9

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

Similar topics

3
by: Rutger Claes | last post by:
Code and problem are from PHP5: When I execute the following piece of code, the DomException is thrown with a message: Not Found Exception. I assume this means that the node I extracted from the...
4
by: amywolfie | last post by:
I would like to put code behind a Find button on a form which: 1) Performs a find based on a field on the form 2) If NO RECORDS ARE FOUND, then displays a custom "No Records Found" message box. ...
2
by: Kevin R. | last post by:
I have been ignoring this problem for a few weeks now, but it's becoming a bit annoying not to mention unproductive. Here it goes: I compile my project with no errors. Then after I debug/run it,...
2
by: ypul | last post by:
on my local server i am getting ".net error" of "page not found " but on my hosting server I am not getting .net error ...I am getting the normal page not found error what could be the reason ?...
14
by: NormD | last post by:
We have a client-server app using Web Services on an IIS machine. The trace below shows that .NET is searching around for some things (e.g., SystemDrawing.DLL and System.Drawing.EXE) and taking a...
1
by: solarin | last post by:
Hi, I've developed a program under VS 6.0. I can compile it and run it, but when I try to debbug , all my breakpoints are dissabled and I can see the following messages: Loaded...
0
by: cwho.work | last post by:
Hi! We are using apache ibatis with our MySQL 5.0 database (using innodb tables), in our web application running on Tomcat 5. Recently we started getting a number of errors relating to...
5
by: Amit_Basnak | last post by:
Dear Friends I have been getting the following error Error 185: "WorkFlow_dce.cpp", line 58 # Left side of '->' requires a pointer to class; type found was 'struct WF_SEARCH_WU'....
1
Dököll
by: Dököll | last post by:
Greetings, Good buddies! I am for the first time, since I started learning VB, going to build an application I wanted to build for my first son, a language and activities program that will allow...
1
by: sora | last post by:
Hi, I've developed a MFC program under VS 6.0. My debugger *was* working fine and I've used it often for my project. Then, one day, the errors below appear and they prevent me from using the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.