Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - web.config required elements

Reply
 
Old 08-20-2008   #1 (permalink)
MCM


 
 

web.config required elements

The following sections appears in my web.config file.

<configuration>
<system.web>
<compilation>

<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions.Design, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089" />
</assemblies>


What does each of these assemblies do and how do I know if I need them or if
I can delete them?

I am working on a .NET 3.5 web application which uses AJAX. It will be
hosted on Server 2008 w/ IIS 7.

My System SpecsSystem Spec
Old 08-20-2008   #2 (permalink)
Steven Cheng [MSFT]


 
 

RE: web.config required elements

Hi MCM,

As for the configuration elements you mentioned, they're those strong-named
assemblies which are referenced globally in your ASP.NET web
application(every page in the web application will be referencing them).

And here is a brief summary of these assemblies:
Quote:

><assemblies>
> <add assembly="System.Core, Version=3.5.0.0, Culture=neutral,
>PublicKeyToken=B77A5C561934E089" />
> <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0,
>Culture=neutral, PublicKeyToken=B77A5C561934E089" />
Quote:

> <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral,
>PublicKeyToken=B77A5C561934E089" />
=====================================

These ones are the core assemblies for the .NET 3.5 components and
services(such as LINQ)


Quote:

> <add assembly="System.Web.Extensions, Version=3.5.0.0,
Culture=neutral,
Quote:

>PublicKeyToken=31BF3856AD364E35" />
Quote:

> <add assembly="System.Web.Extensions.Design, Version=3.5.0.0,
>Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
=============================

These two ones are for ASP.NET ajax service (contains many extension
classes components which is necessary to make ASP.NET ajax work)



Quote:

> <add assembly="System.Design, Version=2.0.0.0, Culture=neutral,
>PublicKeyToken=B03F5F7F11D50A3A" />
> <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
>PublicKeyToken=B77A5C561934E089" />
></assemblies>
======================================
I'm a bit surprised that your application references the "winform"
assembly, are you using some winform class in your ASP.NET application?

Here is a blog entry which also give some general ideas on many new
asssmblies involved in ..NET 3.5

http://www.danielmoth.com/Blog/2007/...mework-35.html

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxx.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/...tance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
Quote:

>From: =?Utf-8?B?TUNN?= <MCM@xxxxxx>
>Subject: web.config required elements
>Date: Wed, 20 Aug 2008 12:46:42 -0700
Quote:

>The following sections appears in my web.config file.
>
><configuration>
><system.web>
><compilation>
>
><assemblies>
> <add assembly="System.Core, Version=3.5.0.0, Culture=neutral,
>PublicKeyToken=B77A5C561934E089" />
> <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0,
>Culture=neutral, PublicKeyToken=B77A5C561934E089" />
> <add assembly="System.Web.Extensions, Version=3.5.0.0,
Culture=neutral,
Quote:

>PublicKeyToken=31BF3856AD364E35" />
> <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral,
>PublicKeyToken=B77A5C561934E089" />
> <add assembly="System.Web.Extensions.Design, Version=3.5.0.0,
>Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
> <add assembly="System.Design, Version=2.0.0.0, Culture=neutral,
>PublicKeyToken=B03F5F7F11D50A3A" />
> <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
>PublicKeyToken=B77A5C561934E089" />
></assemblies>
>
>
>What does each of these assemblies do and how do I know if I need them or
if
Quote:

>I can delete them?
>
>I am working on a .NET 3.5 web application which uses AJAX. It will be
>hosted on Server 2008 w/ IIS 7.
>
My System SpecsSystem Spec
Old 08-21-2008   #3 (permalink)
MCM


 
 

RE: web.config required elements

> As for the configuration elements you mentioned, they're those strong-named
Quote:

> assemblies which are referenced globally in your ASP.NET web
> application(every page in the web application will be referencing them).
First - I tried deleting all of them and my application seemed to run just
fine. So I'm not clear on why I need them? Are they just need for web "sites"
but not web "applications"?

Second - if I do need them, should I keep them matched up with the project
references? What happens if there is a mismatch between the project
references and the wbe.config? Why are these listed in 2 places anyway?

Quote:
Quote:

> > <add assembly="System.Core, Version=3.5.0.0, Culture=neutral,
> >PublicKeyToken=B77A5C561934E089" />
> > <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0,
> >Culture=neutral, PublicKeyToken=B77A5C561934E089" />
> > <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral,
> >PublicKeyToken=B77A5C561934E089" />
> =====================================
>
> These ones are the core assemblies for the .NET 3.5 components and
> services(such as LINQ)
If I am not using LINQ, then I don't need the assembly right?

Quote:
Quote:

> > <add assembly="System.Web.Extensions, Version=3.5.0.0,
> Culture=neutral,
Quote:

> >PublicKeyToken=31BF3856AD364E35" />
> > <add assembly="System.Web.Extensions.Design, Version=3.5.0.0,
> >Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
> =============================
>
> These two ones are for ASP.NET ajax service (contains many extension
> classes components which is necessary to make ASP.NET ajax work)
System.Web.Extensions.Design is part of System.Web.Extensions, so why would
I need both? Can't I just reference System.Web.Extensions?

My System SpecsSystem Spec
Old 08-21-2008   #4 (permalink)
MCM


 
 

RE: web.config required elements

An additional note:

If I delete the assembly System.Xml.Linq, my app still compiles fine and
runs fine, but I get a green underline below @Page directive that says it
can't find System.Xml.Linq. Even though I am not using Linq at all, it is
still looking for it. So it must be getting used somewhere by the
compiler/framework/iis/something? Can you tell me what it is being used for
and what the other assemblies are used for *specifically*?


"MCM" wrote:
Quote:
Quote:

> > As for the configuration elements you mentioned, they're those strong-named
> > assemblies which are referenced globally in your ASP.NET web
> > application(every page in the web application will be referencing them).
>
> First - I tried deleting all of them and my application seemed to run just
> fine. So I'm not clear on why I need them? Are they just need for web "sites"
> but not web "applications"?
>
> Second - if I do need them, should I keep them matched up with the project
> references? What happens if there is a mismatch between the project
> references and the wbe.config? Why are these listed in 2 places anyway?
>
>
Quote:
Quote:

> > > <add assembly="System.Core, Version=3.5.0.0, Culture=neutral,
> > >PublicKeyToken=B77A5C561934E089" />
> > > <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0,
> > >Culture=neutral, PublicKeyToken=B77A5C561934E089" />
> > > <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral,
> > >PublicKeyToken=B77A5C561934E089" />
> > =====================================
> >
> > These ones are the core assemblies for the .NET 3.5 components and
> > services(such as LINQ)
>
> If I am not using LINQ, then I don't need the assembly right?
>
>
Quote:
Quote:

> > > <add assembly="System.Web.Extensions, Version=3.5.0.0,
> > Culture=neutral,
Quote:

> > >PublicKeyToken=31BF3856AD364E35" />
> > > <add assembly="System.Web.Extensions.Design, Version=3.5.0.0,
> > >Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
> > =============================
> >
> > These two ones are for ASP.NET ajax service (contains many extension
> > classes components which is necessary to make ASP.NET ajax work)
>
> System.Web.Extensions.Design is part of System.Web.Extensions, so why would
> I need both? Can't I just reference System.Web.Extensions?
>
My System SpecsSystem Spec
Old 08-21-2008   #5 (permalink)
Steven Cheng [MSFT]


 
 

RE: web.config required elements

Thanks for your reply MCM,

If you haven't used any LINQ feature, you can certainly remove the
reference. As for the green line warning, I think it is likely a
design-time error producted by IDE, I cannot get the exact cause from the
general appearnce.

If you want to get the usage of each of those assemblies, I recommend you
use the reflector utility to inspect those assemblies and you can clearly
get all the available classes in the assembly.

Also, one means for checking whether your application can work
correctly(with the current assembly reference list) is perform a
"precompilation" on your web application(project). In visual studio, you
can use "Build --> Publish Web Site" to do precompilation"

precompilation just predo the dynamic compilation before you publish/deploy
the web application:

#Precompilation In ASP.NET 2.0
http://www.odetocode.com/Articles/417.aspx

it will report error if there is any assembly reference problem(you should
choose "nonupdatable" mode when precompile the site).

BTW, I've also replied you in another thread mentioned some information
about different project type of ASP.NET 2.0 application which is also
helpful to you.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxx.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Quote:

>From: =?Utf-8?B?TUNN?= <MCM@xxxxxx>
>References: <6A29D201-46D6-4969-8BEB-61ECAA0B81C0@xxxxxx>
<TN1RxzzAJHA.5744@xxxxxx>
<3D8B2B0C-F2B2-4040-A24F-4B668CF1EF61@xxxxxx>
Quote:

>Subject: RE: web.config required elements
>Date: Thu, 21 Aug 2008 15:02:05 -0700
Quote:

>
>An additional note:
>
>If I delete the assembly System.Xml.Linq, my app still compiles fine and
>runs fine, but I get a green underline below @Page directive that says it
>can't find System.Xml.Linq. Even though I am not using Linq at all, it is
>still looking for it. So it must be getting used somewhere by the
>compiler/framework/iis/something? Can you tell me what it is being used
for
Quote:

>and what the other assemblies are used for *specifically*?
>
>
>"MCM" wrote:
>
Quote:
Quote:

>> > As for the configuration elements you mentioned, they're those
strong-named
Quote:
Quote:
Quote:

>> > assemblies which are referenced globally in your ASP.NET web
>> > application(every page in the web application will be referencing
them).
Quote:
Quote:

>>
>> First - I tried deleting all of them and my application seemed to run
just
Quote:
Quote:

>> fine. So I'm not clear on why I need them? Are they just need for web
"sites"
Quote:
Quote:

>> but not web "applications"?
>>
>> Second - if I do need them, should I keep them matched up with the
project
Quote:
Quote:

>> references? What happens if there is a mismatch between the project
>> references and the wbe.config? Why are these listed in 2 places anyway?
>>
>>
Quote:

>> > > <add assembly="System.Core, Version=3.5.0.0, Culture=neutral,
>> > >PublicKeyToken=B77A5C561934E089" />
>> > > <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0,
>> > >Culture=neutral, PublicKeyToken=B77A5C561934E089" />
>> > > <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral,
>> > >PublicKeyToken=B77A5C561934E089" />
>> > =====================================
>> >
>> > These ones are the core assemblies for the .NET 3.5 components and
>> > services(such as LINQ)
>>
>> If I am not using LINQ, then I don't need the assembly right?
>>
>>
Quote:

>> > > <add assembly="System.Web.Extensions, Version=3.5.0.0,
>> > Culture=neutral,
>> > >PublicKeyToken=31BF3856AD364E35" />
>> > > <add assembly="System.Web.Extensions.Design, Version=3.5.0.0,
>> > >Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
>> > =============================
>> >
>> > These two ones are for ASP.NET ajax service (contains many extension
>> > classes components which is necessary to make ASP.NET ajax work)
>>
>> System.Web.Extensions.Design is part of System.Web.Extensions, so why
would
Quote:
Quote:

>> I need both? Can't I just reference System.Web.Extensions?
>>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Extending app.config with addtional config .NET General
Adobe Photoshop Elements 6 & Adobe Premiere Elements 4 Vista music pictures video
Can't delete elements in folder Recent elements Vista General
Support for Adobe photoshop elements 5 or premier elements 3 on Vista 64 bits Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46