ScriptResource.axd error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • baruchb1
    New Member
    • Jan 2009
    • 4

    #1

    ScriptResource.axd error

    On occasions I am getting the following error: ...ScriptResour ce.axd?d=Iq477G BHSA3uehfZbYUvC pV9INTAkcqP-nT7iBF02k0zYuEH UtyypbGPZzlkJzq FYWfoA9rTWE2a3T QdDIn9bDIkZQ]An Error Has Occurred.... Does anyone knows why this happens and how this could be fixed?

    Examining the rest of the message I get the following: STACK: at system.runtimem ethodhandle._in vokemethodfast( object target, object[] arguments, signaturestruct & sig, methodattribute s methodattribute s, runtimetypehand le typeowner) at system.runtimem ethodhandle.inv okemethodfast(o bject target, object[] arguments, signature sig, methodattribute s methodattribute s, runtimetypehand le typeowner) at system.reflecti on.runtimemetho dinfo.invoke(ob ject obj, bindingflags invokeattr, binder binder, object[] parameters, cultureinfo culture, boolean skipvisibilityc hecks) at system.reflecti on.runtimemetho dinfo.invoke(ob ject obj, bindingflags invokeattr, binder binder, object[] parameters, cultureinfo culture) at system.reflecti on.methodbase.i nvoke(object obj, object[] parameters) at system.web.hand lers.scriptreso urcehandler.dec ryptstring(stri ng s) at system.web.hand lers.scriptreso urcehandler.dec ryptparameter(n amevaluecollect ion querystring) at system.web.hand lers.scriptreso urcehandler.pro cessrequest(htt pcontext context) at system.web.hand lers.scriptreso urcehandler.sys tem.web.ihttpha ndler.processre quest(httpconte xt context) at system.web.http application.cal lhandlerexecuti onstep.system.w eb.httpapplicat ion.iexecutions tep.execute() at system.web.http application.exe cutestep(iexecu tionstep step, boolean& completedsynchr onously) :: INNER STACK: at system.web.ui.p age.decryptstri ng(string s) :: INNER EXCEPTION: System.Web.Http Exception: Invalid viewstate. at System.Web.UI.P age.DecryptStri ng(String s) :: MESSAGE: Exception has been thrown by the target of an invocation.
    Last edited by Frinavale; Jan 9 '09, 02:46 PM. Reason: Moved to ASP.NET from .NET
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    It's probably happening because of a JavaScript error on your web page, which aren't handling.
    Please make sure that the JavaScript isn't changing your Object's states.
    If you do this your Objects will no longer validate on the server and it will crash.

    Comment

    • baruchb1
      New Member
      • Jan 2009
      • 4

      #3
      This is code inherited from previous developer. All errors are trapped in global.asp and logged to DB. From what I can tell, the page (I assume gets the error) does not contain any JavaScript. Is there a way to pinpoint (or narrow down) from above error message what code is failing so I can trace it the actual source? I am a little lost as there are tons of JavaScript in the application and I would not know where to even start? Let me reiterate that these errors happen only occasionally on visitor’s stations. I cannot duplicate this error on my stations. Thanks so much for your help.

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        For this type of thing I would use start by using the FireFox's FireBug utility to debug the ScriptResource. axd?d=Iq477GBHS A3uehfZbYUvCpV9 IN... JavaScript resource.

        Comment

        • baruchb1
          New Member
          • Jan 2009
          • 4

          #5
          Excuse my ignorance. What is ScriptResource. axd? I can't see it under any of project's folders. Also, where do I get FireBug and Can I use IE instead, for debugging this?

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            The ScriptResource. axd is generated by the ScriptManager. The ScriptManager manages all of the page's Scripts. It lets all of the controls used by your page register scripts so that they can be used properly by the web browser.

            Anyways, once you know what control the problematic script belongs to you can probably set debugging points in Visual Studio to debug it using Internet Explorer. There are probably tools out there that let you debug scripts in IE like the FireBug tool for FireFox, but FireBug is the best I've found so far.

            To get new add-ons in FireFox go to the Tools menu -> add-ons -> and then click Browse All Add-ons and search for the one you want. Lucky you, I've already done it: you can get FireBug from here.

            Once you have it installed a little Bug Icon will appear in the bottom right corner of FireFox. If you click on it FireBug will appear. Go to the Script Menu and click "Enabled". This will enable debugging for Scripts. You will see an "Options" menu on the right hand side...click it and pick "Break on all errors".

            By selecting this you will be able to see what script is causing the problem and what the problem is.

            Do not keep this setting or else every website you visit will be stopped by the debugger on error and this can be quite annoying.

            Once you've found out what script is causing the error and what the error is you'll have a better chance at solving your problem

            :)

            -Frinny

            Comment

            • baruchb1
              New Member
              • Jan 2009
              • 4

              #7
              Tnanks Frinny. I will try and follow your instructions. Thanks again for all your advice. Baruch.

              Comment

              Working...