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

Builds, but not runs

Hi,

My application contains some projects. I can build the solution without
error, but when I try to run it, on reports a
System.IO.FileNotFoundException and refers, that one of the projects can't
find the file or assembly, but the reported project do not holds reference
to the missing assembly!

Moreover, this error occurs in all referenced assemblies, if I do not set
the local copy property to true.

When I set a local copy however, frenquently get warnings or errors, that on
can't copy the file to the run dirrectory, because on could overwrite an
another version.

How can I solve this problem, and why is it occur at all?

Thanks in advance

Gabor
Nov 20 '05 #1
1 782
On Tue, 18 Nov 2003 15:58:15 +0100, Gabor wrote:
When I set a local copy however, frenquently get warnings or errors, that on
can't copy the file to the run dirrectory, because on could overwrite an
another version.


I believe that this is caused by the version numbers set in your
Assembly.vb file. It probably has 1.0.* or something similar. You should
always explicitly set the version number and NOT use the * syntax, because
having it auto increment the version can cause problems with dependent
assemblies. I think you may be experiencing a symptom of that here.

Jeffrey Richter's book, "Applied Microsoft .Net Framework Programming" has
more detailed information on this "bug"

Hope this helps

--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
Nov 20 '05 #2

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

Similar topics

6
by: Nick Dreyer | last post by:
In VB.NET I would like to not have to create property get/set procedures for every class variable I want to expose to Excel VBA projects in COM builds. Can anyone tell me if that is possible, or...
2
by: adolf garlic | last post by:
hi, i'm having problems running something in vs.net (it builds ok with no errors or warnings) scenario: - c# dll class library is used to log events to perf mon/counters - interop is...
2
by: brianlanning | last post by:
I'm trying to write a function that can reliably know the name of the calling method. I've figured out how to do this: string methodname = (new StackTrace()).GetFrame(1).GetMethod().Name; ...
0
by: Rob | last post by:
Hope you can help me on this one. The scenario is this - i have integrated VS.NET with VSS and am now trying to set-up an automated build script which does the following: 1) Labels most recent...
3
by: Bob | last post by:
I Debug build my (WinForms) assemblies and then deploy them (simple copy to client) without the .pdb files. This works fine, but I like to know: - Without the .pdb files, will the .dll's act...
0
by: WildRide | last post by:
Hi there Was hopeing someone could point me in the direction of some info for the following. Our company runs seperate dev and build environments. In .NET 1.1 we simply sucked the projects...
0
by: Theo Kanter | last post by:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 22 Message-ID: <Ca52h.21400$E02.8869@newsb.telia.net> Date: Wed, 01 Nov 2006 17:53:38 GMT...
9
by: Bern McCarty | last post by:
I am porting stuff from MEC++ syntax to the new C++/CLI syntax. Something that we did in the old syntax that proved to be very valuable was to make sure that the finalizer would purposefully...
4
by: Chuck P | last post by:
I setup a new win03 64bit box. Specifically because sql reports rendered locally with the asp.net 2.0 report viewer control would crash because of memory problems in the worker process (very...
1
by: Daniel | last post by:
do release builds have the same amount of info in exceptions? e.g. will exceptions cought in release builds contain stack trace etc.?
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: 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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...
0
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...

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.