Deploying ASP.net Ajax 1.0 and 3.5 Web Application on the Same Server

We have a production server in which there is an ASP.net 2.0 application that works with Ajax 1.0 and the corresponding set of tools (Toolkit version 1.0.20229).

I was asked to move another assembly of the application using ASP.net 3.5, which also utilities the latest ASP.NET AJAX and related tools (Toolkit Version 3.0.X).

Can these two applications exist on the same server if I install the .NET Framework 3.5 (current version on server 2.0)?

What should I do to make sure there are no compatibility issues?

Please let me know if the question is not clear.

Thank,

The mar

RESULT: Installed structure 3.5. Changes to the configuration file were made in accordance with the errors received: deleted the following entry:

<httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </httpModules> 

I had to remove the next section for the WCF service in addition to the above

<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
+3
source share
1 answer

Applications should work well side by side.

If you distribute ajax management tools as a local .dll link (in other words, you added the .dll file to your project and referenced this local file), then you should not have problems with the toolbox.

As for Ajax links (System.Web.Extensions), you can do two things:

2) Go through the links in the project and set "SpecificVersion" to "true", and this will make the project always refer to version 2.0.

3) 3.5. SpecificVersion true, , , , web.config bindingRedirect , :

<configuration>
   <runtime>
      <assemblyBinding>
         <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions"
                              publicKeyToken="31bf3856ad364e35"
                              culture="neutral" />
            <bindingRedirect oldVersion="1.0.61025.0"
                             newVersion="3.5.0.0"/>
         </dependentAssembly>
      </assemblyBinding>
   </runtime>
</configuration>

, . dll, 1.0 System.Web.Extensions.

2.0 Ajax 3.5 .

!

+1

Source: https://habr.com/ru/post/1728861/


All Articles