473,569 Members | 3,054 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.NET 2002 IDE Failing to update local dependencies

Nak
Hi there,

I have come across a rather frustrating bug with the 2002 VB.NET
Standard IDE. I am currently developing an application framework to use my
my new products, all is pretty straight forward except for when using the
assembly in another assembly. Compiling the applcation that is using the
assembly *should* update its references to any new version, but it does
*not* always do this!

For example, I make a change to my framework, compile and then close the
solution, open the application that is consuming the assembly and recompile
that. The referenced version stays on the previous version! Sometimes I
have noticed that the IDE will even not compile a new version, repeat
attempts will result in the same old version being placed in the bin
directory.

As a solution, close the IDE, restart the PC, load the class library
back up, compile (it should now be updated and placed in the bin directory).
Then open the "consumer" remove the reference to the old assembly, add a new
one and compile. Sometimes I need to even replace and usercontrols with the
new ones, which is pretty strange because I am unsure where the IDE is
caching this old assembly.

Is there any work around for this because its making debugging a
complete nightmare because your unsure whether your changes were even
compiled! I've now started including an assemblyVersion property to all
user controls and components just so I can see quickly whether they are upto
date. Anyway, thanks in advance for any advice on this one.

Nick.
Nov 21 '05 #1
9 1312
Nak
Hi again,

I can't really believe my eyes, I'm sitting trying to compile my
assembly and it keeps reverting back to an old version!! I make a change,
delete the bin and obj folders then save and recompile and the old dll is
back!!! Over and over again! I restart and it all starts working again!

Nick.

"Nak" <a@a.com> wrote in message
news:uB******** ******@TK2MSFTN GP12.phx.gbl...
Hi there,

I have come across a rather frustrating bug with the 2002 VB.NET
Standard IDE. I am currently developing an application framework to use
my my new products, all is pretty straight forward except for when using
the assembly in another assembly. Compiling the applcation that is using
the assembly *should* update its references to any new version, but it
does *not* always do this!

For example, I make a change to my framework, compile and then close
the solution, open the application that is consuming the assembly and
recompile that. The referenced version stays on the previous version!
Sometimes I have noticed that the IDE will even not compile a new version,
repeat attempts will result in the same old version being placed in the
bin directory.

As a solution, close the IDE, restart the PC, load the class library
back up, compile (it should now be updated and placed in the bin
directory). Then open the "consumer" remove the reference to the old
assembly, add a new one and compile. Sometimes I need to even replace and
usercontrols with the new ones, which is pretty strange because I am
unsure where the IDE is caching this old assembly.

Is there any work around for this because its making debugging a
complete nightmare because your unsure whether your changes were even
compiled! I've now started including an assemblyVersion property to all
user controls and components just so I can see quickly whether they are
upto date. Anyway, thanks in advance for any advice on this one.

Nick.

Nov 21 '05 #2
Nak
Hi again,

I can't really believe my eyes, I'm sitting trying to compile my
assembly and it keeps reverting back to an old version!! I make a change,
delete the bin and obj folders then save and recompile and the old dll is
back!!! Over and over again! I restart and it all starts working again!

Nick.

"Nak" <a@a.com> wrote in message
news:uB******** ******@TK2MSFTN GP12.phx.gbl...
Hi there,

I have come across a rather frustrating bug with the 2002 VB.NET
Standard IDE. I am currently developing an application framework to use
my my new products, all is pretty straight forward except for when using
the assembly in another assembly. Compiling the applcation that is using
the assembly *should* update its references to any new version, but it
does *not* always do this!

For example, I make a change to my framework, compile and then close
the solution, open the application that is consuming the assembly and
recompile that. The referenced version stays on the previous version!
Sometimes I have noticed that the IDE will even not compile a new version,
repeat attempts will result in the same old version being placed in the
bin directory.

As a solution, close the IDE, restart the PC, load the class library
back up, compile (it should now be updated and placed in the bin
directory). Then open the "consumer" remove the reference to the old
assembly, add a new one and compile. Sometimes I need to even replace and
usercontrols with the new ones, which is pretty strange because I am
unsure where the IDE is caching this old assembly.

Is there any work around for this because its making debugging a
complete nightmare because your unsure whether your changes were even
compiled! I've now started including an assemblyVersion property to all
user controls and components just so I can see quickly whether they are
upto date. Anyway, thanks in advance for any advice on this one.

Nick.

Nov 21 '05 #3
Hi Nick,

It seems that your project works now.
If you still have any concern on this issue, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #4
Nak
Hi Peter,

Well I wouldn't exactly put it like that. This is my current procedure
for updating my assembly,

1) Open the class library
2) Make changes
3) Save and compile
4) Open the consuming assembly
5) Remove the reference to the old DLL
6) Add a reference to the new DLL
7) Attempt to save and compile
8) Recieve an error message saying it can't find the strong name key,
which is either fixed by closing the solution and re-opening it.

I have to do this *every* time I want to update my class library. Also
I get the error in point 8 quite regularly, I believe that VB.NET has a
resource leak and forgets to close the strong name key file, so technically
it should say it can't "open" it rather than "find" it!

The joys or developing with VB.NET 2002 Standard, I'm thinking of
writing a book... ;-)

Nick.

""Peter Huang"" <v-******@online.m icrosoft.com> wrote in message
news:wm******** ******@cpmsftng xa10.phx.gbl...
Hi Nick,

It seems that your project works now.
If you still have any concern on this issue, please feel free to post
here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 21 '05 #5
Hi Nick,

Based on your description, I understand that your scenario is as below.
You have a solution which included two projects(1.clas s libray(stongnam ed),
2. a windowform,I assume it is a window form)

I think we can develop the solution as below.
1. in the windows form project we can add a project reference to the class
library project
2. set the start up project as the windows form project
3. so that after we change the class library code, we may just press
Ctrl+F5 or F5 to run the winform, then the IDE will help to build the
classlibrary first and then the winform one and then lauch the winform exe
to run the app
4. And now we will find the class library's chaning will take effect here.
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #6
Nak
Hi Peter,
Based on your description, I understand that your scenario is as below.
You have a solution which included two projects(1.clas s
libray(stongnam ed),
2. a windowform,I assume it is a window form)
Nope, I have 2 solutions, 1 for my class library/s and 1 for the windows
forms application that is consuming the class library.

Both of which are strong named using the same snk file.

I think I found part of the problem,

My class library solution had 3 projects, 1 for a private class library
containing my application framework, a public class library that I wish to
be used to create 3rd party plug-ins for my framework, and another class
library to be used for creating 3rd party plug-ins for the windows forms
application that is consuming the framework (application specific).

I've resolved the versioning issues by prenting the public class library
for making plug-ins for my application framework from being compiled each
time the solution is compiled. What was happening was it was compiling it
*again* last, thus breaking the compatbility with the other assemblies using
that class library! I hadn't thought about this problem occuring before to
be honest with you, can you specify the build order of projects in a
solution?

Application specific Interfaces & Plugins --> Framework Interfaces &
Plugins --> Framework

From what I could tell it was building the "Framework Interfaces &
Plugins" last, and breaking compatability. I don't understand how fixing
this has managed to fix the issue with no changes being made to the
"Framework" but it works now. Hmm, maybe I should arrange my solutions
differently. But now I can make a change, save & compile, open up the
consuming application and just run it, it will then update the framework and
use my recent changes. I'm relieved this is working now because it was
making development a complete nightmare!!

Nick.

""Peter Huang"" <v-******@online.m icrosoft.com> wrote in message
news:FC******** ********@cpmsft ngxa10.phx.gbl. .. Hi Nick,

I think we can develop the solution as below.
1. in the windows form project we can add a project reference to the class
library project
2. set the start up project as the windows form project
3. so that after we change the class library code, we may just press
Ctrl+F5 or F5 to run the winform, then the IDE will help to build the
classlibrary first and then the winform one and then lauch the winform exe
to run the app
4. And now we will find the class library's chaning will take effect here.
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 21 '05 #7
Hi Nick,

I am glad that you have resolved the problem.
As for the build oder, I think we can right click on the solution file and
then click Project Build Order.
For project dependencies, we can check the dialog by right click on the
solution file and then click Project Dependencies.

If you still have any concern on this issue, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #8
Nak
Hi Peter,
I am glad that you have resolved the problem.
As for the build oder, I think we can right click on the solution file and
then click Project Build Order.
Oh cool, I thought it must be somewhere but couldn't find it. It's a
shame you can't just set the "build order" in the "build order" dialog, the
automated way of doing it constantly has them in the same order for me, so
maybe the build order wasn't the problem, which is a little confusing as I
definitely had 2 different versions of my public interface library being
created with each build.
For project dependencies, we can check the dialog by right click on the
solution file and then click Project Dependencies.


Cool, that's in the same dialog, but anyway, thanks for the help, much
appreciated.

Nick.
Nov 21 '05 #9
Hi Nick,

If you still have any concern on this issue, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #10

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

Similar topics

1
121518
by: jiing | last post by:
Now let me describe what I have done and my purpose: Originally, I want to user ports to install phpBB But I found that phpBB doesn't support mysql 5.x (but the ports installed mySQL 5.0.0 alpha) so I deinstall mysql5-server and mysql5-client And then I install mysql41-server and mysql41-client on FreeBSD 5.3 by ports but now , mysql is...
2
31261
by: B Squared | last post by:
This is a bit of a newbie question -- I've just installed MySQL 4.1.13 on a Fedora core 3 system. It installed great. It wasn't hard to get it running and create a few databases. But I can't seem to make the client shell run from anywhere but the mysql/bin directory. I've placed the /usr/local/mysql/bin directory in my PATH, but I still...
9
2867
by: Rob | last post by:
Scenario: O/S: Win XP Professional Back-end: Access 2002 on network server I have an Access 97 application, in production on our network, that takes appoximately 5 minutes to process monthly data. I find this tolerable. The Access 2002 test version, on the network, takes approximately 50
2
1802
by: pisaac | last post by:
I am considering purchasing Visual Basic .net 2003 Standard Editon to do some development work with Web Forms and I need to know whether this edit will allow me to update an Access database (mdb) file. I already have a database which is updated through an Access front-end, I want to update the database through web forms, is this possible?...
6
1206
by: nx-2000 | last post by:
Last night I dutifuly installed all the server 2000 updates that where released and I finally get called a few hours ago by a client wondering why our site was down. Then a steady flood of calls happened after that. I'm assuming that MS05-004 ASP.NET Path Validation Vulnerability has somehow completely hosed my site and I can't for the life...
0
254
by: Nak | last post by:
Hi there, I have come across a rather frustrating bug with the 2002 VB.NET Standard IDE. I am currently developing an application framework to use my my new products, all is pretty straight forward except for when using the assembly in another assembly. Compiling the applcation that is using the assembly *should* update its references to...
52
9939
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server 2005, and, since he already has licenses for Office Pro 2002, he wants to upgrade to that. I've been saying that we need to upgrade to Access...
10
8182
by: Steve | last post by:
I am trying to create a DLL in Visual Studio 2005-Visual Basic that contains custom functions. I believe I need to use COM interop to allow VBA code in Excel 2002 to access it. I've studied everything I can find on COM Interop and .NET. I've also tried many of the 'Walkthroughs' on the MSDN site relating to COM add-ins, .NET and Office XP...
1
3586
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in some files and work on it. Let say, I want add new page to web project named websiteOrder.sln, i will open websiteOrder.sln in my local computer,...
1
3179
by: sphinney | last post by:
All, I'm not sure how to adequately explain my problem in two sentences or less, so at the risk of providing TMI, here's the condensed verion. I have developed an Access 2002 database file that contains a form, multiple queries and multiple reports. The purpose of the form is to allow the user to run various queries against my company's...
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7619
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7681
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7983
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6290
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3662
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2118
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 we have to send another system
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.