Binary Fortress Software

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: dumb question? "Could not load file or assembly X..."  (Read 2214 times)

bklynkid

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
    • View Profile
dumb question? "Could not load file or assembly X..."
« on: August 20, 2009, 03:59:53 pm »

I'm using the AjaxControlToolkit (semi-official) on my pages and as a result the ViewState Helper views everything as invalid. It even tells me "Could not load file or assembly 'AjaxControlToolkit ..." So it possible for me to provide this dll so it's able to "load" it and decode the viewstate?

Thanks, I hope this is a dumb question (and that there's a simple solution).  :wink:
« Last Edit: September 19, 2009, 11:48:54 pm by Jon Tackabury »
Logged

Jon Tackabury

  • Administrator
  • Ultra Poster
  • *****
  • Offline Offline
  • Posts: 3755
    • View Profile
    • Binary Fortress Software
    • Email
Re: dumb question? "Could not load file or assembly X..."
« Reply #1 on: August 21, 2009, 10:01:25 am »

Can you post the viewstate, and the exact error message (with the assembly name/version)? Thanks!
Logged
Lead Developer
Binary Fortress Software
http://www.binaryfortress.com

bklynkid

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
    • View Profile
Re: dumb question? "Could not load file or assembly X..."
« Reply #2 on: August 21, 2009, 01:32:39 pm »

Sure, I'm using .NET 3.5 SP1 and in this page the AjaxControlToolkit (http://www.asp.net/ajax/AjaxControlToolkit/Samples/)

The ViewState:
Code: [Select]
/wEPDwUJMTE0Nzg1MTUwD2QWAgIDD2QWBAIDD2QWBGYPDxYCHglNYXhMZW5ndGhmZGQCAg8WGh4ZQ3VsdHVyZURlY2ltYWxQbGFjZWhvbGRlcgUBLh4OSW5wdXREaXJlY3Rpb24LKYoBQWpheENvbnRyb2xUb29sa2l0Lk1hc2tlZEVkaXRJbnB1dERpcmVjdGlvbiwgQWpheENvbnRyb2xUb29sa2l0LCBWZXJzaW9uPTMuMC4zMDUxMi4yMDMwNiwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0yOGYwMWIwZTg0YjZkNTNlAB4LQ3VsdHVyZU5hbWUFBWVuLVVTHg5BY2NlcHROZWdhdGl2ZQsphgFBamF4Q29udHJvbFRvb2xraXQuTWFza2VkRWRpdFNob3dTeW1ib2wsIEFqYXhDb250cm9sVG9vbGtpdCwgVmVyc2lvbj0zLjAuMzA1MTIuMjAzMDYsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49MjhmMDFiMGU4NGI2ZDUzZQAeFkN1bHR1cmVUaW1lUGxhY2Vob2xkZXIFAToeCkFjY2VwdEFtUG1oHhtDdWx0dXJlVGhvdXNhbmRzUGxhY2Vob2xkZXIFASweDERpc3BsYXlNb25leQsrBQAeE092ZXJyaWRlUGFnZUN1bHR1cmVoHhZDdWx0dXJlRGF0ZVBsYWNlaG9sZGVyBQEvHhFDdWx0dXJlRGF0ZUZvcm1hdAUDTURZHiBDdWx0dXJlQ3VycmVuY3lTeW1ib2xQbGFjZWhvbGRlcgUBJB4WQ3VsdHVyZUFNUE1QbGFjZWhvbGRlcgUFQU07UE1kAgkPDxYCHgRUZXh0BRlUaHVyc2RheSwgQXVndXN0IDI1LCAxOTgzZGRk3M0cgk0F07r9LTtmB/rg7VERXW4=
Errors:
  • Errors while Decoding to the TreeView
  • The serialized data is invalid
  • Could not load file or assembly 'AjaxControlToolkit, Version=3.030512.20306, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The system cannot find the file specified.

Thanks!


[edit] Also not sure if it was clear. The tool works great on all my vanilla ASP.NET pages but as soon as the AjaxControlToolkit is introduced it blows up.
Logged

Jon Tackabury

  • Administrator
  • Ultra Poster
  • *****
  • Offline Offline
  • Posts: 3755
    • View Profile
    • Binary Fortress Software
    • Email
Re: dumb question? "Could not load file or assembly X..."
« Reply #3 on: August 21, 2009, 02:12:09 pm »

Can you also post a copy of "AjaxControlToolkit.dll" for us to test with? It seems that there is only a newer build available through the CodePlex site, and we will need to test with the build you are using. Thanks!
Logged
Lead Developer
Binary Fortress Software
http://www.binaryfortress.com

Jon Tackabury

  • Administrator
  • Ultra Poster
  • *****
  • Offline Offline
  • Posts: 3755
    • View Profile
    • Binary Fortress Software
    • Email
Re: dumb question? "Could not load file or assembly X..."
« Reply #4 on: September 19, 2009, 11:48:48 pm »

Version 1.4.1 has just been released, and now has the ability to load custom assemblies to properly decode a viewstate with custom objects (like this one). You can find it here:
http://www.binaryfortress.com/aspnet-viewstate-helper/

Just add your assemblies path to the "Assembly Search Path" in the Settings window, and it should be able to decode the viewstate with no problems. :)
Logged
Lead Developer
Binary Fortress Software
http://www.binaryfortress.com