Hello,
I am a hosting website with a host who claims to have the latest version of the AJAX ASP.NET.. On my machine everything works fine while on the hosters it doesn't giving me an error like this
Configuration Error:
Parser Error Message:Couldnot load file or assembly 'System.Web.Extensions, Version=1.0.61025.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of itsdependencies. The system cannot find the file specified.
Line 38: </httpHandlers>
Line 39: <httpModules>
Line 40: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 41: </httpModules>
Line 42: </system.web>
Please anyone knows why I'm getting that error?
Thanks!Means the hoster does not have the 'System.Web.Extensions.dll install in the gac, you can put it on the bin directory and make sure the hoster is running in medium or full trust. Check this post for more details:http://alpascual.com/blog/al/archive/2006/12/20/Browse-all-AJAX-controls-at-ajax.alpascual.com.aspx
Hello AlbertPascual and thanks!
I will try that... but what if the Hoster is saying that the latest version is installed?... could be it wasn't installed correctly? I know this framework by default gets installed in the GAC, so there shouldn't be any problem with that!
THanks!
You can always override what they have by adding the dlls in your bin directory, if running at full trust, you'll be using your dlls instead of the hoster dlls.
Hope this helps
I belive still loading the old dll from your hoster and cannot find that method, check the public key PublicKeyToken=31bf3856ad364e35' to see if that's your dll public key
Thanks again!
in fact thanks to you it did help as moved on to another error now :)
Parser Error Message:Couldnot load type 'System.Web.UI.Compatibility.RequiredFieldValidator' fromassembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35'.
Line 1: <%@. master language="C#" autoeventwireup="true" inherits="Main, App_Web_main.master.cdcab7d2" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
What could this error be ?
How can I check the public key?
how can I make sure they are pointing to my bin directory? there are no <trust> tags in my web.config and not even in the default installation of the AJAX fframework
Thanks!
hello.
i think that you haven't updated your web.config to the last version. it seems like you're strill trying to get the compatibilty validadors from the ajax dll and in the current version they're in an extra download which you can get from one of the top posts of the ajax library forum
hmmmmm yes your right... I solved it now working
however I'm concerned about the hosters how they said they have the latest version of AJAX 1.0 and then I had to use the Bin... I wish to eliminate the Bin folder so as to use the GAC which should be faster!!!
Thanks anyway!
Actually - the only faster there is is the first time the app spins up... placing something in the Gac does not make it faster overall it just means that it is spun up before the first person has requested a method etc from what is contained withing... this is a major misconception... GACcing something only means it is already resident but once something that is not gacced versus something is is spun up - they are equal in perf...just FYI
No comments:
Post a Comment