473,396 Members | 2,139 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.

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.
Aug 20 '08 #1
6 1826
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:
><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.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)
<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)

<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:
ms****@microsoft.com.

==================================================
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.

--------------------
>From: =?Utf-8?B?TUNN?= <MC*@newsgroup.nospam>
Subject: web.config required elements
Date: Wed, 20 Aug 2008 12:46:42 -0700
>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.
Aug 21 '08 #2
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?

<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?

<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
I need both? Can't I just reference System.Web.Extensions?

Aug 21 '08 #3
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:
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?

<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?

<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
I need both? Can't I just reference System.Web.Extensions?
Aug 21 '08 #4
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:
ms****@microsoft.com.

==================================================
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.

--------------------
>From: =?Utf-8?B?TUNN?= <MC*@newsgroup.nospam>
References: <6A**********************************@microsoft.co m>
<TN**************@TK2MSFTNGHUB02.phx.gbl>
<3D**********************************@microsoft.co m>
>Subject: RE: web.config required elements
Date: Thu, 21 Aug 2008 15:02:05 -0700
>
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:
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?

<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?

<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
>I need both? Can't I just reference System.Web.Extensions?
Aug 22 '08 #5
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.
The exact warning message is:

Namespace or type specified in the Imports ‘System.Xml.Linq’ doesn’t contain
any public member or cannot be found. Make sure the namespace or the type is
defined and containes at least one public member. Make sure the imported
element name doesn’t use any aliases.

I would like to remove the assembly since I don't use it, but I want to find
the source of the warning and correct it - not just ignore it.

Also, for the assemblies I do need, should they be exactly matched between
web.config and My Project? Why are there 2 places to configure this?

System.Web.Extensions.Design is part of System.Web.Extensions, so why would
I need both? Can't I just reference System.Web.Extensions?

Aug 22 '08 #6
Thanks for your reply MCM,

The reason there're two setting for assemblies is probabaly due to the
project type. As I mentioned ealier there are two project types, and for
the "Web Application Project", it can let you configure assemblies at both
project level and in web.config.

In such case, the two configuration will help on the following parts:

1. The project level assemblies are used for building assemblies that is
generated (from code behind and other source file) at design-time in IDE

2. the web.config assemblies are still used for dynamic compilation occurs
at runtime.

They're different and not duplicatad.

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:
ms****@microsoft.com.
--------------------
>References: <6A**********************************@microsoft.co m>
<TN**************@TK2MSFTNGHUB02.phx.gbl>
<3D**********************************@microsoft.co m>
<9E**********************************@microsoft.co m>
<80**************@TK2MSFTNGHUB02.phx.gbl>
>Subject: RE: web.config required elements
Date: Fri, 22 Aug 2008 00:18:00 -0700
>
The exact warning message is:

Namespace or type specified in the Imports ‘System.Xml.Linq�doesn’t
contain
>any public member or cannot be found. Make sure the namespace or the type
is
>defined and containes at least one public member. Make sure the imported
element name doesn’t use any aliases.

I would like to remove the assembly since I don't use it, but I want to
find
>the source of the warning and correct it - not just ignore it.

Also, for the assemblies I do need, should they be exactly matched between
web.config and My Project? Why are there 2 places to configure this?

System.Web.Extensions.Design is part of System.Web.Extensions, so why
would
>I need both? Can't I just reference System.Web.Extensions?

Aug 25 '08 #7

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

Similar topics

1
by: Marty McDonald | last post by:
Many of an app's classes could read the config file. The config file could contain many elements, and it will be difficult to know which config file entry belongs to which class. I could adopt a...
5
by: qqcq6s59 | last post by:
Hi all I am a newbie and I just saw a ongoing thread on Fileprocessing which talks abt config parser. I have writen many pyhton program to parse many kind of text files by using string module and...
4
by: grs | last post by:
Can a class library have a app.config file. Reason for asking is that the microsoft application blocks all read from myApp.exe.config. How can you use the application blocks if you do not have an...
3
by: Andy | last post by:
Hello All: When you develop a C# app that is deployed as an .exe, you can use a .exe.config file to set some parameters to avoid changing code. I would like to do the same thing using a .dll,...
1
by: Rolf Molini | last post by:
Hello everybody, I put this in a separate thread because altough it is connected to the localization-problem in my former thread this is a completely different "joke" of the IDE. While waiting...
1
by: aa | last post by:
I am using VS2003 and when I am launching the web application in the sub folder page he me show the error Configuration Error Description: An error occurred during the processing of a...
3
by: Dan | last post by:
hi ng, i'd like to add control elements on a page, but only for users that are authotized to access a certain location, defined in web.config. my question: is it possible to read the <allow...
10
by: Brett Romero | last post by:
I'd like to store something such as the following the my app.config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="DEBUG" value="true"/> <add...
2
by: ken | last post by:
We have a user that has reported the following error when starting up our client application that uses a web service on our back end: System.Configuration.ConfigurationException: Missing required...
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: 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: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.