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

web.config <assemblies> section being modified

Hi there,

I am having a strange problem which I have actually seen on 2 different
servers now. The problems manifests itself as a ConfigurationException, and
upon inspection, a new (invalid/non-existent) assembly reference is added in
the <assemblieselement of web.config.

In both cases, the assemblies being referenced have never existed on the
servers. In one case, a reference to System.Web.Extensions was added, and in
the other, a reference to a third-party UI component was added.

ACL's on the web directories look good and the only users with write access
are System and Administrators.

Any ideas would be appreciated!

Thanks,

--
-Steven Berkovitz
MBC Computer Solutions Ltd.
http://www.mbccs.com
May 14 '07 #1
5 3685
Hi Steven,

From your description, you're encountering some ConfigurationException when
running your ASP.NET application and the exception is related to some
registered assemblies in web.config ,correct?

Regarding on the assemblies, you said that those problem assembies are
automatically added into the web.config file and your application does not
originally use them? Also, what's your web application's virtual directory
hierarchy in the deployed IIS server, is there any web application at its
super level or nested child node? If so, you can try move it out to a
single alone virtual directory (with a separate application pool if it is
IIS6 server) to see whether the problem remain.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

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://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

May 15 '07 #2
Hi Steven,

Thanks for your reply. Just to clarify the issue, it is a
ConfigurationException, however the real "problem" is that the web.config is
being modified (not by a person), which in turn causes the
ConfigurationException.

In both cases, the websitse are their own website instances with a few child
virtual directories. All of the sites operate within their own application
pool.

--
-Steven Berkovitz
MBC Computer Solutions Ltd.
http://www.mbccs.com
"Steven Cheng[MSFT]" wrote:
Hi Steven,

From your description, you're encountering some ConfigurationException when
running your ASP.NET application and the exception is related to some
registered assemblies in web.config ,correct?

Regarding on the assemblies, you said that those problem assembies are
automatically added into the web.config file and your application does not
originally use them? Also, what's your web application's virtual directory
hierarchy in the deployed IIS server, is there any web application at its
super level or nested child node? If so, you can try move it out to a
single alone virtual directory (with a separate application pool if it is
IIS6 server) to see whether the problem remain.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

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://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

May 15 '07 #3
Thanks for your reply.

So the web.config file is modified by other program instead of developer or
admin? Is there any ASP.NET/.NET 2.0 configuration API used in your web
application or any pages in your application's sub directory? So far I
haven't found any built-in ones that will automatically add assemblies
binding at runtime. Some control (such as reportviewer) may add such
assemblies record at design-time in IDE.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

May 16 '07 #4
Hi Steven,

Yes that is correct about the web.config being modified by a process. The
configuration API is used for reading the appSettings element and a few other
custom configuration sections.

One of the projects uses the ReportViewer however the other does not.

--
-Steven Berkovitz
MBC Computer Solutions Ltd.
http://www.mbccs.com
"Steven Cheng[MSFT]" wrote:
Thanks for your reply.

So the web.config file is modified by other program instead of developer or
admin? Is there any ASP.NET/.NET 2.0 configuration API used in your web
application or any pages in your application's sub directory? So far I
haven't found any built-in ones that will automatically add assemblies
binding at runtime. Some control (such as reportviewer) may add such
assemblies record at design-time in IDE.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

May 21 '07 #5
Thanks for your reply.

If it does be changed by a certain process, you can use some file monitor
tool or the .NET FileSystemWatcher class to monitor which process access
that file.

However, I still suggest you try put the application to another isolated
site or virutal directory so that no other web application will affect it.
this can help determine which application is modifying it.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

May 22 '07 #6

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

Similar topics

2
by: Jiho Han | last post by:
This has been asked many times before but it seems there haven't been clear answers. I have an application root at http://localhost and subdirectories http://localhost/app1
8
by: Subra Mallampalli | last post by:
Hi, I am trying to use <runtime> section within the web.config file. However, the contents of the <runtime> section seem to be ignored. What am i missing here? Is <runtime> section not used by...
4
by: serge calderara | last post by:
Dear all, I have read that instead of registering an assembly on the top a a page with the Register directive we can use the <assembliea> section of Web config file as follow : <assemblies>...
2
by: theonlyzahid | last post by:
Hi, I am getting his weired error when i open my webpage. Parser Error Message: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 13, position 68. Source Error:
1
by: Wayne Sepega | last post by:
I have a web.config in the root of my website, in the web.config I have defined an HTTPModule that is to be loaded into any application under the website. Also defined in the web config is a custom...
5
by: Keith | last post by:
Hello all, I have a C# Windows Forms app. It is in namespace App.GUI. It builds to Nav.exe. I have entered an application level setting using the designer. Its type is string, name is "FOO"...
1
by: ad | last post by:
I find an assemblies section in web.config. There are some PublicKey in it. What do these PublicKey do? What does <assembliessession do? <assemblies> <add...
1
by: Ryan | last post by:
I created a custom event: MyPasswordChangedEvent. The .dll name is MyWebEvent. I created a strong name and added it to the GAC. So far so good. I know want to define an event using the new...
10
by: =?Utf-8?B?TUNN?= | last post by:
What does this do? <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
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
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...

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.