472,378 Members | 1,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,378 software developers and data experts.

config section <runtime>

What does this do?

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions"
publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0"
newVersion="3.5.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design"
publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0"
newVersion="3.5.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>

Aug 20 '08 #1
10 1955
I'm guessing the several questions you are asking might be better answered
in the ASP.Net group. It seems a little odd though that you are asking what
certains sections in a site do, or how to change things in code that you
see. Did you inherit some code that now you must maintain without ASP.Net
before?
"MCM" <MC*@newsgroup.nospamwrote in message
news:D2**********************************@microsof t.com...
What does this do?

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions"
publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0"
newVersion="3.5.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design"
publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0"
newVersion="3.5.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
Aug 21 '08 #2
I'm guessing the several questions you are asking might be better answered
in the ASP.Net group.
This is a managed newsgroup and is definitely where my questions belong.
It seems a little odd though that you are asking what
certains sections in a site do, or how to change things in code that you
see. Did you inherit some code that now you must maintain without ASP.Net
before?
Most of the code sections I am asking about are auto-generated by Visual
Studio. Sometimes the auto code in VS adds things for the "average" case that
do not apply to all solutions. Just cause VS created it does not mean it
belongs. I'm trying to squeeze the maximum performance out of my site.
>

"MCM" <MC*@newsgroup.nospamwrote in message
news:D2**********************************@microsof t.com...
What does this do?

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions"
publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0"
newVersion="3.5.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design"
publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0"
newVersion="3.5.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
Aug 21 '08 #3
I don't believe the group is managed.

I'm just suggesting more web developers hang out in the ASP.Net newsgroup,
rather than .Net.General.

"MCM" <MC*@newsgroup.nospamwrote in message
news:61**********************************@microsof t.com...
>I'm guessing the several questions you are asking might be better
answered
in the ASP.Net group.

This is a managed newsgroup and is definitely where my questions belong.
>>
Aug 21 '08 #4
Hello MCM,

Although the XML is redirecting the web development related assemblies, the
question is not Asp.net specific. So dotnet.general can be suitable
newsgroup here.

In short, these XML elements redirect assembly versions using
bindingRedirection element
(http://msdn.microsoft.com/en-us/library/eftw1fys.aspx).

In this config file, they redirect the version of assembly
System.Web.Extensions and System.Web.Extensions.Design from
"1.0.0.0-1.1.0.0" to "3.5.0.0". That means if the application tries to use
the old version of the assembly specified by the "oldVersion" attribute,
CLR will load the new version of it specified by "newVersion" attribute.

For more information about this feature, please visit the following article:
Introduction to Versioning and
BindingRedirect(http://blogs.msdn.com/thottams/archi.../30/introducti
on-to-versioning-and-bindingredirect.aspx).

Hope this helps.

Best regards,
Feng Chen
Microsoft Online Community Support

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

Aug 21 '08 #5
Does that mean if I am not using the old version in my code, I can delete the
entire <runtimesection?
""Feng Chen[MSFT]"" wrote:
Hello MCM,

Although the XML is redirecting the web development related assemblies, the
question is not Asp.net specific. So dotnet.general can be suitable
newsgroup here.

In short, these XML elements redirect assembly versions using
bindingRedirection element
(http://msdn.microsoft.com/en-us/library/eftw1fys.aspx).

In this config file, they redirect the version of assembly
System.Web.Extensions and System.Web.Extensions.Design from
"1.0.0.0-1.1.0.0" to "3.5.0.0". That means if the application tries to use
the old version of the assembly specified by the "oldVersion" attribute,
CLR will load the new version of it specified by "newVersion" attribute.

For more information about this feature, please visit the following article:
Introduction to Versioning and
BindingRedirect(http://blogs.msdn.com/thottams/archi.../30/introducti
on-to-versioning-and-bindingredirect.aspx).

Hope this helps.

Best regards,
Feng Chen
Microsoft Online Community Support

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

Aug 21 '08 #6
Hello MCM,

We can remove the <assemblyBindingelement and all of its child elements
if our application does not need assembly version redirection or assembly
relocation. In addition, if the <runtimeelement does not contain any
other kind of child elements (A list of its child elements can be found
here: http://msdn.microsoft.com/en-us/library/6bs4szyc.aspx), we can remove
it safely.

Could you also let me know if the xml comes from the machine.config or the
web.config file? What's the reason you want to remove them?

Please let me know the information above so that I can provide further
assistance on this problem. I look forward to your reply.

Thanks.

Best regards,
Feng Chen
Microsoft Online Community Support
=========================================
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.

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

Aug 22 '08 #7
We can remove the <assemblyBindingelement and all of its child elements
if our application does not need assembly version redirection or assembly
relocation.
How can I confirm that my application is not trying to use the old version?

In addition, if the <runtimeelement does not contain any
other kind of child elements (A list of its child elements can be found
here: http://msdn.microsoft.com/en-us/library/6bs4szyc.aspx), we can remove
it safely.
Ok.

Could you also let me know if the xml comes from the machine.config or the
web.config file? What's the reason you want to remove them?
web.config. These entries were made automatically by Visual Studio - not by
me. I'm trying to understand every layer of my application and I don't
understand why I would want to include code that doesn't do anything.

Aug 22 '08 #8
Hello MCM,

The two assemblies are from AJAX Control Toolkit. And versions 1.0.* of
them are for ASP.NET AJAX version 1.0 and .NET Framework 2.0, while 3.5.*
of them are for .NET Framework 3.5 and Visual Studio 2008. So this section
will make sure that the web application compiled using .net 3.5 will always
load the 3.5 version of the assemblies.

If the web project and any custom control used by the project have not
added the old version of the assemblies as reference, we can confirm the
application will not try to use the old version.

Hope this helps.

Best regards,
Feng Chen
Microsoft Online Community Support
=========================================
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.

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

Aug 25 '08 #9
Hello MCM,

I haven¡¯t heard back from you so I wanted to follow up to find out if the
information that I supplied has resolved your issue. If there is anything
more I can help with, please don¡¯t hesitate to let me know.

Thanks.

Best regards,
Feng Chen
Microsoft Online Community Support
=========================================
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.

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

Aug 27 '08 #10
Yes, it was helpful. That's why I marked the question as answered. Thank you.

""Feng Chen[MSFT]"" wrote:
Hello MCM,

I haven¡¯t heard back from you so I wanted to follow up to find out if the
information that I supplied has resolved your issue. If there is anything
more I can help with, please don¡¯t hesitate to let me know.

Thanks.

Best regards,
Feng Chen
Microsoft Online Community Support
=========================================
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.

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

Sep 4 '08 #11

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

Similar topics

3
by: Peter Blum | last post by:
I have built an assembly (dll) from which I expect third parties to subclass. As a result, when my assembly has a version change, it will cause any third party assembly based on it to break unless...
4
by: tommy | last post by:
hello everbody, i write a little asp-application with forms-authentication. i copy my aspx-files with web.config to my webspace and i get the error above... i tried to set the...
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...
3
by: MikeM | last post by:
I've been trying to locate some property or method that will allow programmatic access to the "loginUrl" attribute in the web.config file in the <system.web> -> <authentication> element when the...
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>...
1
by: Joseph Geretz | last post by:
Why isn't the ASP.NET runtime providing a valid reference for this object to my WebService? I'm trying to use WSE and DIME to send attachments via Web Service. I've provided a whole lot of...
5
by: =?Utf-8?B?U3RldmVuIEJlcmtvdml0eg==?= | last post by:
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

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.