Where are web app references stored?

This is a discussion on Where are web app references stored? within the DOTNET forums in Framework and Interface Programming category; 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 david @ at-at-at @ windward.dot.dot.net Windward Reports -- http://www.WindwardReports.com me -- http://dave.thielen.com Cubicle Wars - http://www.windwardreports.com/film.htm...

Go Back   Application Development Forum > Framework and Interface Programming > DOTNET

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-06-2008, 01:26 PM
David Thielen
Guest
 
Default Where are web app references stored?

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

david@at-at-at@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Reply With Quote
  #2  
Old 09-06-2008, 05:03 PM
Stan
Guest
 
Default Re: Where are web app references stored?

On 6 Sep, 18:26, David Thielen <thie...@nospam.nospam> wrote:
> 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
>
> david@at-at...@windward.dot.dot.net
> Windward Reports --http://www.WindwardReports.com
> me --http://dave.thielen.com
>
> Cubicle Wars -http://www.windwardreports.com/film.htm


Hi David

Beg to differ. It IS stored in web.config

Look in section:

<system.web>
<compilation>
<assemblies>
<add assembly=" ... (the reference goes here)

HTH
Reply With Quote
  #3  
Old 09-06-2008, 06:30 PM
John Saunders
Guest
 
Default Re: Where are web app references stored?

"David Thielen" <thielen@nospam.nospam> wrote in message
news:59f5c4h8oc048ch8dq38ek02cpo5ca87k7@4ax.com...
> 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.


David, if you are using a Web Application Project (and you should be), then
your references are in the project file, just like any other project.

--
John Saunders | MVP - Connected System Developer

Reply With Quote
  #4  
Old 09-06-2008, 08:02 PM
bruce barker
Guest
 
Default Re: Where are web app references stored?

I've never seen a reason to use a web application. it just leads to bad
coding practices (pages calling global methods on other pages, etc).

-- bruce (sqlwork.com)

John Saunders wrote:
> "David Thielen" <thielen@nospam.nospam> wrote in message
> news:59f5c4h8oc048ch8dq38ek02cpo5ca87k7@4ax.com...
>> 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.

>
> David, if you are using a Web Application Project (and you should be),
> then your references are in the project file, just like any other project.
>

Reply With Quote
  #5  
Old 09-06-2008, 09:27 PM
John Saunders
Guest
 
Default Re: Where are web app references stored?

"bruce barker" <nospam@nospam.com> wrote in message
news:ukTYL0HEJHA.4040@TK2MSFTNGP02.phx.gbl...
> I've never seen a reason to use a web application. it just leads to bad
> coding practices (pages calling global methods on other pages, etc).


Huh? That doesn't happen if you don't _permit_ it to happen! If you permit
bad coding practices, then that's what you'll get.

I just did the same thing in a web site project. It doesn't prevent bad
habits at all. What makes you think that a web site project prevents this?
--
John Saunders | MVP - Connected System Developer

Reply With Quote
  #6  
Old 09-07-2008, 08:20 AM
Anthony Jones
Guest
 
Default Re: Where are web app references stored?

"Stan" <googlestan@philhall.net> wrote in message
news:95720f5f-ab50-4af8-bd4c-5cfa2a81e0c1@l42g2000hsc.googlegroups.com...
> On 6 Sep, 18:26, David Thielen <thie...@nospam.nospam> wrote:
>> 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
>>
>> david@at-at...@windward.dot.dot.net
>> Windward Reports --http://www.WindwardReports.com
>> me --http://dave.thielen.com
>>
>> Cubicle Wars -http://www.windwardreports.com/film.htm

>
> Hi David
>
> Beg to differ. It IS stored in web.config
>
> Look in section:
>
> <system.web>
> <compilation>
> <assemblies>
> <add assembly=" ... (the reference goes here)
>


In addition the anything in the bin folder is assumed to be referenced and
the solution file will contain info related to other projects that are
referenced by the web site.

--
Anthony Jones - MVP ASP/ASP.NET

Reply With Quote
  #7  
Old 09-07-2008, 04:03 PM
David Thielen
Guest
 
Default Re: Where are web app references stored?

It must be the Bin rule as it's not in web.config. Is there anyway to
force it to be added there so I don't have to look up the full
assembly name (public key, etc)?

thanks - dave


On Sun, 7 Sep 2008 13:20:23 +0100, "Anthony Jones"
<AnthonyWJones@yadayadayada.com> wrote:

>"Stan" <googlestan@philhall.net> wrote in message
>news:95720f5f-ab50-4af8-bd4c-5cfa2a81e0c1@l42g2000hsc.googlegroups.com...
>> On 6 Sep, 18:26, David Thielen <thie...@nospam.nospam> wrote:
>>> 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
>>>
>>> david@at-at...@windward.dot.dot.net
>>> Windward Reports --http://www.WindwardReports.com
>>> me --http://dave.thielen.com
>>>
>>> Cubicle Wars -http://www.windwardreports.com/film.htm

>>
>> Hi David
>>
>> Beg to differ. It IS stored in web.config
>>
>> Look in section:
>>
>> <system.web>
>> <compilation>
>> <assemblies>
>> <add assembly=" ... (the reference goes here)
>>

>
>In addition the anything in the bin folder is assumed to be referenced and
>the solution file will contain info related to other projects that are
>referenced by the web site.



david@at-at-at@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Reply With Quote
  #8  
Old 09-07-2008, 04:04 PM
David Thielen
Guest
 
Default Re: Where are web app references stored?

Is there a good url that explains using the Web Application Project
approach?

thanks - dave


On Sat, 6 Sep 2008 18:30:55 -0400, "John Saunders"
<no@dont.do.that.com> wrote:

>"David Thielen" <thielen@nospam.nospam> wrote in message
>news:59f5c4h8oc048ch8dq38ek02cpo5ca87k7@4ax.com.. .
>> 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.

>
>David, if you are using a Web Application Project (and you should be), then
>your references are in the project file, just like any other project.



david@at-at-at@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Reply With Quote
  #9  
Old 09-07-2008, 04:25 PM
John Saunders
Guest
 
Default Re: Where are web app references stored?

"David Thielen" <thielen@nospam.nospam> wrote in message
news:0tc8c4176qn0t4i5v96rdh3ec7f0dstgbo@4ax.com...
> Is there a good url that explains using the Web Application Project
> approach?


David, I don't know of any such URL, and I wish I did. It would be much
easier to explain that way.

Just consider a couple of things:

1) Web Application Projects is what everyone successfully used in .NET 1.0
and 1.1
2) Everything else you create in Visual Studio is a project. Web Sites are
the only exception
3) Microsoft thought Web Sites were so great that the got rid of Web
Application Projects in Visual Studio 2005
4) They reacted quickly to the outrage and restored them in Visual Studio
2005 SP1 - a very quick service pack

In my opinion, if you are creating an application that happens to be
web-based, then you should use a Web _Application_ Project. If you are
creating a web site, for instance, your company's web site, then go ahead
and use a Web Site (though maybe you should consider using Expression Web or
something instead).

There is no excuse for using the "Web Site" technique for web services, BTW.
The "Web Site" paradigm is that whatever you happen to have in the folder
you designated as a web site is part of the web site, whether you have
pages, images, or whatever. That kind of looseness should not apply to a web
service.
--
John Saunders | MVP - Connected System Developer

Reply With Quote
  #10  
Old 09-07-2008, 04:29 PM
Anthony Jones
Guest
 
Default Re: Where are web app references stored?

"David Thielen" <thielen@nospam.nospam> wrote in message
news:uqc8c4h1grolv1gl33hlkk1mikk9efugth@4ax.com...
> It must be the Bin rule as it's not in web.config. Is there anyway to
> force it to be added there so I don't have to look up the full
> assembly name (public key, etc)?
>



Find the dll and drop a copy of it in the bin folder. Job done.

--
Anthony Jones - MVP ASP/ASP.NET

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 01:30 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.