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

Where are ASP.NET 2.0 References Stored?

If you add a reference to an ASP.NET 2.0 Web Project, where does it
save that reference?

I don't mean the DLL, I mean the reference to the DLL.
In 2003 I believe it would put 1 line per assembly in the vbproj file,
but there is no project file anymore in 2005.

Apr 12 '06 #1
5 2197
DWS
web.config

"cmay" wrote:
If you add a reference to an ASP.NET 2.0 Web Project, where does it
save that reference?

I don't mean the DLL, I mean the reference to the DLL.
In 2003 I believe it would put 1 line per assembly in the vbproj file,
but there is no project file anymore in 2005.

Apr 13 '06 #2
This is a bit more complicated than that, DWS.

They are stored...nowhere, AFAIK.

Without a project file for web projects in ASP.NET 2.0, there is no way to register
referenced assemblies other than adding the assemblies to the web project's Bin folder
- which is what a web project's "Add Reference" applet does.

This has been criticicized very much.

When you have a solution with a web project and a couple of class libraries,
new versions of those class library assemblies are copied to the web project's
Bin folder each time they are built.

With multiple people on the team building the solution, they will constantly get check-in
conflicts in the web project's Bin folder because they are constantly creating new versions
of the assemblies in the Bin folder with each build in their own dev environments.

The work around is to not put the web project's Bin folder under source control and to add
a post build event to every project "referenced" by the web project to "push" the complied
class libraries to the web project's Bin folder.

This allows the web project to have the right assembly references and to keep the
source control mechanism from having to play a part in the web project references.

This was supposed to be fixed by RTM by having the references stored in the solution file.
Apparently, it didn't make it to RTM.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"DWS" <DW*@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com...
web.config
"cmay" wrote:

If you add a reference to an ASP.NET 2.0 Web Project, where does it
save that reference?

I don't mean the DLL, I mean the reference to the DLL.
In 2003 I believe it would put 1 line per assembly in the vbproj file,
but there is no project file anymore in 2005.

Apr 13 '06 #3
On Wed, 12 Apr 2006 23:06:29 -0400, Juan T. Llibre wrote:
This is a bit more complicated than that, DWS.

They are stored...nowhere, AFAIK.


Why then, when i add a reference to something, such as DirectoryServices,
is an <assemblies> section added to web.config with references to that
assembly?
Apr 13 '06 #4
I believe these are only for the case of DLLs that are registered in
the GAC.

Just try adding a reference to a project in your solution, or a
reference to the output DLL of another .net project you are working on.

It won't show up in your web.config.

Apr 13 '06 #5
Juan,

This is really disappointing to me how they decided to make this work.

I found that my references ARE stored in the solution file, but the
issues that I am really having a lot of problems with this setup.

I wrote up all the problems I am experiencing in a blog post:
http://www.chrismay.org/2006/04/13/V...ThisSUCKS.aspx
Chris

Apr 13 '06 #6

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

Similar topics

6
by: David Isaac | last post by:
Default parameter values are evaluated once when the function definition is executed. Where are they stored? (A guess: in a dictionary local to the function.) Where is this documented? As a...
4
by: David Shadovitz | last post by:
Where are PL/pgSQL functions stored? I want to retrieve the text of a function that I've created. Thanks. -David
25
by: pm940 | last post by:
Hello. I've been reading some past discussions on the NULL vs. zero. References are always made to systems or machienes that use values other than zero to represent the NULL pointer. Although...
3
by: Frederik Vanderhaegen | last post by:
Hi, I have created a datalayer which connect with a SQL-Server and in the datalayer I store the objects that are created in a static hashtable (for performance reasons) so I don't have to...
1
by: John Dalberg | last post by:
I have a web site application (no solution or project files). I did a search on the site's folder to find where any of the references are stored and nothing came up. Where are the app's references...
9
by: igor.kulkin | last post by:
References is a relatively basic feature of C++ language. It might be a good thing to think of references as aliases to the variables. However it's good to think of references this way when you...
43
by: Kislay | last post by:
Which of the following is correct regarding the storage of global variables : 1. Global variables exist in a memory area that exists from before the first reference in a program until after the...
2
by: chris fellows | last post by:
Can someone tell me if .NET 2.0 framework has a namespace to enable project references to be changed programmatically? My C# project files are stored in source control with DLL references but I...
20
by: David Thielen | last post by:
Hi; When we add a reference to a web app, where is that information stored? There is no project file, it's not in the web.config or solution file. ??? - thanks - dave ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
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
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,...

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.