Mono support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Mono Support AJAX Control Toolkit (Closed)

Viewed 13766 time(s), 10 post(s). 10 month(s) agoby developer
developer
1

developer 10 month(s) ago

Hello,

I need to use new version of AJAX Control Toolkit - v4.1.60623. When I add it to project references and use component from it, I get this error:

"Could not load file or assembly 'AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

In another thread I found this config settings:

<runtime>
<assemblyBinding>
<dependentAssembly>
<bindingRedirect oldVersion="0.0.0.0-4.1.60623.0"
newVersion="4.1.60623.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>"

I tried it, but it absolutely doesn't work.

Is there a way to use the newest AJAX control Toolkit in Mono-X?



This content has not been rated yet. 
165 Reputation 19 Total posts
developer
2

developer 10 month(s) ago

<bindingRedirect> settings I tried in machine.config and also in web.config.
This content has not been rated yet. 
165 Reputation 19 Total posts
khorvat
3

khorvat 10 month(s) ago

Hi,

please try to use something similar to code below, although this is for older version this approach should work:
<dependentAssembly>
  <assemblyIdentity name="AjaxControlToolkit" publicKeyToken="28f01b0e84b6d53e"/>
  <bindingRedirect oldVersion="1.0.10920.23476" newVersion="3.0.30930.28736"/>
</dependentAssembly>

Also please take a look at the following
http://www.mono-software.com/Mono/Pages/Discussion/dtopic/5g2sMDkZR0KyP57eAJewDw/Danish-alphabet/?dmsgId=1oZZcSW2IkGAkZ7gAQRexg#Post1oZZcSW2IkGAkZ7gAQRexg 

Regards
This content has not been rated yet. 
11551 Reputation 1644 Total posts
geobirbilis
4

geobirbilis 10 month(s) ago

I guess you were missing the <assemblyIdentity...> so it didn't know which assembly you were speaking of

btw, you may need to have an assembly compiled with same version of .NET of your MonoX build (maybe also doublecheck which .net runtime your apppool uses). I guess a 3 or 3.5 .net assembly would load in .net 4, but the other way arround might not always work (?)
This content has not been rated yet. 
155 Reputation 23 Total posts
developer
5

developer 10 month(s) ago

Same results, still not working.

Can you explain me differences between mine and yours solution? It seems to me, that your code is the same as mine.
This content has not been rated yet. 
165 Reputation 19 Total posts
developer
6

developer 10 month(s) ago

I try it also with <assemblyIdentity> and still not working. I use Mono-X .NET4 version and my project is also .NET 4 project.

<runtime>
<assemblyBinding>
<dependentAssembly>
<assemblyIdentity name="AjaxControlToolkit" publicKeyToken="28f01b0e84b6d53e" culture="neutral" />
<bindingRedirect oldVersion="3.0.30930.28736" newVersion="4.1.60623"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
This content has not been rated yet. 
165 Reputation 19 Total posts
khorvat
7

khorvat 10 month(s) ago

Hi,

can you please try to use this, we are using this without any issues:
<runtime>
   <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
     <dependentAssembly>
       <assemblyIdentity name="AjaxControlToolkit" publicKeyToken="28f01b0e84b6d53e" culture="neutral" />
       <bindingRedirect oldVersion="0.0.0.0-3.0.30930.28736" newVersion="4.1.60623.0" />
     </dependentAssembly>
   </assemblyBinding>
 </runtime>

Note: you have 0 at the end of the AjaxControlToolkit version - 4.1.60623.0

Regards
This content has not been rated yet. 
11551 Reputation 1644 Total posts
geobirbilis
8

geobirbilis 10 month(s) ago

If it's not the ".0" you were mising at the end of "newVersion", an other question is whether you're placing this statement at the correct position in web.config file (guess if you use Visual Studio.net to edit it it will check the schema and also I think ASP.net also checks if it follows the correct XML schema at runtime). So it would remain that you're placing it at wrong web.config (at some parent folder it should work too I think, so should it do at machine.config for all ASP.net I guess)
This content has not been rated yet. 
155 Reputation 23 Total posts
developer
9

developer 9 month(s) ago

Hello boys,

finally it works. Many thanks to all. Whole problem was based on mising ".0" in newVersion attribute.
This content has not been rated yet. 
165 Reputation 19 Total posts
khorvat
10

khorvat 9 month(s) ago

I'm glad that you have fixed the issue, I'm closing the topic and if you have any further questions please open a new one.

Regards
This content has not been rated yet. 
11551 Reputation 1644 Total posts