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

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 1287
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**************@TK2MSFTNGP12.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**************@TK2MSFTNGP12.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.microsoft.com> wrote in message
news:wm**************@cpmsftngxa10.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.class libray(stongnamed),
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.class
libray(stongnamed),
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.microsoft.com> wrote in message
news:FC****************@cpmsftngxa10.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
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...
2
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...
9
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...
2
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)...
6
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...
0
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...
52
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...
10
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...
1
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...
1
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.