473,809 Members | 2,506 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

web.config required elements

The following sections appears in my web.config file.

<configuratio n>
<system.web>
<compilation>

<assemblies>
<add assembly="Syste m.Core, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9" />
<add assembly="Syste m.Data.DataSetE xtensions, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= B77A5C561934E08 9" />
<add assembly="Syste m.Web.Extension s, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5" />
<add assembly="Syste m.Xml.Linq, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9" />
<add assembly="Syste m.Web.Extension s.Design, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5" />
<add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A" />
<add assembly="Syste m.Windows.Forms , Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9" />
</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 1846
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(eve ry page in the web application will be referencing them).

And here is a brief summary of these assemblies:
><assemblies>
<add assembly="Syste m.Core, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken =B77A5C561934E0 89" />
<add assembly="Syste m.Data.DataSetE xtensions, Version=3.5.0.0 ,
Culture=neutra l, PublicKeyToken= B77A5C561934E08 9" />
<add assembly="Syste m.Xml.Linq, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken =B77A5C561934E0 89" />
=============== =============== =======

These ones are the core assemblies for the .NET 3.5 components and
services(such as LINQ)
<add assembly="Syste m.Web.Extension s, Version=3.5.0.0 ,
Culture=neutral ,
>PublicKeyToken =31BF3856AD364E 35" />
<add assembly="Syste m.Web.Extension s.Design, Version=3.5.0.0 ,
Culture=neutra l, PublicKeyToken= 31BF3856AD364E3 5" />
=============== ==============

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="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken =B03F5F7F11D50A 3A" />
<add assembly="Syste m.Windows.Forms , Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken =B77A5C561934E0 89" />
</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****@microsof t.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="Syste m.Core, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken =B77A5C561934E0 89" />
<add assembly="Syste m.Data.DataSetE xtensions, Version=3.5.0.0 ,
Culture=neutra l, PublicKeyToken= B77A5C561934E08 9" />
<add assembly="Syste m.Web.Extension s, Version=3.5.0.0 ,
Culture=neutral ,
>PublicKeyToken =31BF3856AD364E 35" />
<add assembly="Syste m.Xml.Linq, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken =B77A5C561934E0 89" />
<add assembly="Syste m.Web.Extension s.Design, Version=3.5.0.0 ,
Culture=neutra l, PublicKeyToken= 31BF3856AD364E3 5" />
<add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken =B03F5F7F11D50A 3A" />
<add assembly="Syste m.Windows.Forms , Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken =B77A5C561934E0 89" />
</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(eve ry 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 "applicatio ns"?

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="Syste m.Core, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9" />
<add assembly="Syste m.Data.DataSetE xtensions, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= B77A5C561934E08 9" />
<add assembly="Syste m.Xml.Linq, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9" />
=============== =============== =======

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="Syste m.Web.Extension s, Version=3.5.0.0 ,
Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5" />
<add assembly="Syste m.Web.Extension s.Design, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5" />
=============== ==============

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.Exte nsions.Design is part of System.Web.Exte nsions, so why would
I need both? Can't I just reference System.Web.Exte nsions?

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(eve ry 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 "applicatio ns"?

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="Syste m.Core, Version=3.5.0.0 , Culture=neutral ,
>PublicKeyToken =B77A5C561934E0 89" />
<add assembly="Syste m.Data.DataSetE xtensions, Version=3.5.0.0 ,
>Culture=neutra l, PublicKeyToken= B77A5C561934E08 9" />
<add assembly="Syste m.Xml.Linq, Version=3.5.0.0 , Culture=neutral ,
>PublicKeyToken =B77A5C561934E0 89" />
=============== =============== =======

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="Syste m.Web.Extension s, Version=3.5.0.0 ,
Culture=neutral ,
>PublicKeyToken =31BF3856AD364E 35" />
<add assembly="Syste m.Web.Extension s.Design, Version=3.5.0.0 ,
>Culture=neutra l, PublicKeyToken= 31BF3856AD364E3 5" />
=============== ==============

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.Exte nsions.Design is part of System.Web.Exte nsions, so why would
I need both? Can't I just reference System.Web.Exte nsions?
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(pro ject). 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 "nonupdatab le" 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****@microsof t.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************ *************** *******@microso ft.com>
<TN************ **@TK2MSFTNGHUB 02.phx.gbl>
<3D************ *************** *******@microso ft.com>
>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(eve ry 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 "applicatio ns"?

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="Syste m.Core, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken =B77A5C561934E0 89" />
<add assembly="Syste m.Data.DataSetE xtensions, Version=3.5.0.0 ,
Culture=neutra l, PublicKeyToken= B77A5C561934E08 9" />
<add assembly="Syste m.Xml.Linq, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken =B77A5C561934E0 89" />
=============== =============== =======

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="Syste m.Web.Extension s, Version=3.5.0.0 ,
Culture=neutral ,
PublicKeyToken =31BF3856AD364E 35" />
<add assembly="Syste m.Web.Extension s.Design, Version=3.5.0.0 ,
Culture=neutra l, PublicKeyToken= 31BF3856AD364E3 5" />
=============== ==============

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.Ext ensions.Design is part of System.Web.Exte nsions, so why
would
>I need both? Can't I just reference System.Web.Exte nsions?
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.L inq’ 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.Exte nsions.Design is part of System.Web.Exte nsions, so why would
I need both? Can't I just reference System.Web.Exte nsions?

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****@microsof t.com.
--------------------
>References: <6A************ *************** *******@microso ft.com>
<TN************ **@TK2MSFTNGHUB 02.phx.gbl>
<3D************ *************** *******@microso ft.com>
<9E************ *************** *******@microso ft.com>
<80************ **@TK2MSFTNGHUB 02.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.L inq�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.Ext ensions.Design is part of System.Web.Exte nsions, so why
would
>I need both? Can't I just reference System.Web.Exte nsions?

Aug 25 '08 #7

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

Similar topics

1
1640
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 naming scheme for the elements. But am I limited to using the <appSettings> element for my settings? It would be good to have elements such as <myClass1Stuff> so that it's easy to tell which settings go with each class. But whether I put...
5
2640
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 regex. But after reading that config parser thread I feel stunned. Can somebody tell me some intro info how to parse huge data (most of them are input data to application softwares like nastran, abaqus etc)
4
7882
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 app.config file. Wish someone from microsoft would answer this, I am at a loss. thanks grs
3
4181
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, however: I am not sure how to go about doing this with a .dll, as the config file does not have a unique name. Is there something special you have to do? Is it possible? Worst case scenerio would be we pass into the dll (maybe as part of the...
1
1566
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 for some hint on how to include my own ressources in IDE-generated satellite-assemblies (because there can only be on assembly per each language) I decided to try to use the XML-editor for the IDE-generated .resx-files again. I noticed that the...
1
1012
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 configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication'...
3
1540
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 users="" /> section of a <location> in web.config, or do i have to add these users as key-value elements that can be accessed by AppSetting... ? i didn't find another solution, but that way is very unconfortable in a environment with many users.
10
3676
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 key="DEBUGCleanFile" value="true"/> </appSettings>
2
7605
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 Web Services section of the Web.config file. at System.Web.Services.Configuration.WebServicesConfiguration.get_Current() at System.Web.Services.Protocols.SoapClientType..ctor(Type type) at...
0
9722
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10391
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10121
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4333
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3862
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.