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

DLL References Not Updating

Maybe someone can give an idea of why I am having this problem before I
put my fist through the computer screen.
My problem goes like this....

Lets say I keep my DLLs in a folder called "DLLS".

I have an asp.net application called "app" that references some of
these dlls.

I make a change to one of the DLLs in the DLLS directory. (I open the
project, make the changes, build it (successfully), go to the bin
folder and copy it into the DLLS folder).

I open my asp.net application and "rebuild". (The DLL references are
pointing to the right place, and have "Copy local" set to true). The
rebuild does in fact copy the new DLL into the applications bin
directory (I can tell by file size, date, and using ILDASM).

But the rebuild does not enable my new application to gain any of the
changes in the DLL.

For example, lets say I added a class called "WhyDoesntThisCrapWork" in
the new DLL. That class is NOT available to me in the asp.net project.
I open the new DLL in ILDASM and it has everything.

I add the new dll to a new test application and it has everything.

So where could my asp.net application be caching its reference to the
old DLL, and what can I do to fix this and undo the reference?

What is the way you are supposed to be able to update a referenced DLL?

Nov 19 '05 #1
4 6505
How are you "referencing" dll's so they can be
referenced to a directory other than the bin directory ?


Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
==========================

"cmay" <cm**@walshgroup.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Maybe someone can give an idea of why I am having this problem before I
put my fist through the computer screen.
My problem goes like this....

Lets say I keep my DLLs in a folder called "DLLS".

I have an asp.net application called "app" that references some of
these dlls.

I make a change to one of the DLLs in the DLLS directory. (I open the
project, make the changes, build it (successfully), go to the bin
folder and copy it into the DLLS folder).

I open my asp.net application and "rebuild". (The DLL references are
pointing to the right place, and have "Copy local" set to true). The
rebuild does in fact copy the new DLL into the applications bin
directory (I can tell by file size, date, and using ILDASM).

But the rebuild does not enable my new application to gain any of the
changes in the DLL.

For example, lets say I added a class called "WhyDoesntThisCrapWork" in
the new DLL. That class is NOT available to me in the asp.net project.
I open the new DLL in ILDASM and it has everything.

I add the new dll to a new test application and it has everything.

So where could my asp.net application be caching its reference to the
old DLL, and what can I do to fix this and undo the reference?

What is the way you are supposed to be able to update a referenced DLL?

Nov 19 '05 #2
First, the correct way, when using Visual Studio.Net, to reference a DLL in
another project is to include the other project in the same Solution as the
ASP.Net project, and make a reference to the other project. VS.Net will then
manage the placing of the latest DLL from the other project into the correct
path in the ASP.Net project's bin folder at compile time. It is possible to
include a project in many solutions.

There are times when you may use a DLL that is not in a project, and copying
the DLL into the bin folder of the ASP.Net project should work fine.
However, as you are rebuilding the other project, you may be running into
some issue that is caused by your method of updating the DLL in the ASP.Net
project. I would suggest doing it the right way.

You may also be having a problem with not using the bin folder (recommended)
to store your DLLs. When you do this, you may need to make some changes to
your web.config file to tell your ASP.Net app where to look for DLLs. The
following .Net SDK article should be helpful if you decide to continue with
this method:

http://msdn.microsoft.com/library/de...assemblies.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"cmay" <cm**@walshgroup.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Maybe someone can give an idea of why I am having this problem before I
put my fist through the computer screen.
My problem goes like this....

Lets say I keep my DLLs in a folder called "DLLS".

I have an asp.net application called "app" that references some of
these dlls.

I make a change to one of the DLLs in the DLLS directory. (I open the
project, make the changes, build it (successfully), go to the bin
folder and copy it into the DLLS folder).

I open my asp.net application and "rebuild". (The DLL references are
pointing to the right place, and have "Copy local" set to true). The
rebuild does in fact copy the new DLL into the applications bin
directory (I can tell by file size, date, and using ILDASM).

But the rebuild does not enable my new application to gain any of the
changes in the DLL.

For example, lets say I added a class called "WhyDoesntThisCrapWork" in
the new DLL. That class is NOT available to me in the asp.net project.
I open the new DLL in ILDASM and it has everything.

I add the new dll to a new test application and it has everything.

So where could my asp.net application be caching its reference to the
old DLL, and what can I do to fix this and undo the reference?

What is the way you are supposed to be able to update a referenced DLL?

Nov 19 '05 #3
I'll look over that file to see if I can gain some insight into what is
going on.
Is using project references really the prescribed best practice? I use
project references when I need to debug a component from within another
application, but we have always compiled our components and referenced
them as DLLs just like you would with any 3rd party DLL.
If we changed our setup to use project references I would have to load
up 50 projects or so in visual studio just to change a line of code in
our application.

Nov 19 '05 #4
What I mean is, we have 1 folder where we keep our DLLs, so in each
project you say Add Reference and point to this folder for the DLL you
need to reference. Then this folder is kept in VSS.

Nov 19 '05 #5

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

Similar topics

0
by: HeroOfSpielburg | last post by:
hi, I know this is a much-travelled subject, but I was wondering what people's thoughts were on the bare minimum (and conversely the grand scheme) for augmenting standard memory references to...
8
by: DanielEKFA | last post by:
Hmm... Not sure how to crack this one. I have this code: typedef bool execFunctionType(const commandDataType&); struct commandDataType { SymbolSequence Sequence; string command;...
3
by: arthur-e | last post by:
A new Machine was set up by our IS department - it came with Office Pro 2003. Access97, Word97 and Excel 97 were added. I'm trying to update an Access 97database to 2003 but get weird compiling...
14
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will...
7
by: penguin732901 | last post by:
I update code on several machines and find myself constantly correcting references (e.g. Word 11 to Word 9, adding ADO x.x library, sometimes even Jet Expression Service Type Library) when I copy...
3
by: GHawley | last post by:
I have a fairly large application with about 200 users that uses Session variables. It would seem that occasionally these variables are being referenced incorrectly to the extent that different...
7
by: zombek | last post by:
Hi. I'd like to know which is faster and when to use: this (int type is just an example I mean it generally): int* ptr = new int (123); int* arr = new int ; and this: int num = 123; int...
4
by: iKiLL | last post by:
Hi all, I am using C# on VS2005. I have a solution with 2 projects, a Webservice and a Client application. Both of these to projects can build compile and run.
4
by: Dean Slindee | last post by:
I have a project with many References to other projects of mine (data access layer projects, for instance). When I compile a data access layer project, the Reference in the parent project goes...
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
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
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,...
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
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...

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.