The Script Resource and the Web Resource files are generating intermittent errors in my application. I have been trying to chase the cause of the problem but to no avail. I notice that the d parameter that is passed is some how corrupted and I cant for the life of me figure out whats causing this parameter to be corrupted. I noticed that JavaScript code that in my application is some how getting intertwined with the hash code thats generated for the d parameter.



Exception genereated on Sunday, January 25, 2009, at 7:04 PM
Page location: /ScriptResource.axd?d=70kBR-jPBTx9R89FxObjhipHPS9CMlta5StoreUrl'%20is%20alread y%20set.%20*/function%20runSearchForField(eventObj,%20id){%20%2 0%20%20if%20((eventObj.which%20==%2013)%20||%20(ev entObj.keyCode%20==%2013))%20%20%20%20%20{%20%20%2 0%20%20%20%20%20var%20cat_gallery%20=%20%20getPara m('gallery');%20%20%20%20%20%20%20%20var%20cat%20= %20getParam('cat')%20%20%20%20%20%20%20%20var%20se archTerm%20=%20escape(document.getElementById(id). value);%20//%20must%20use%20escape()%20function%20to%20urlenco de%20search%20term%20to%20avoid%20issues%20with%20 '&'%20and%20'='%20symbols%20%20%20%20%20%20%20%20v ar%20url;%20%20%20%20%20%20%20%20%20%20%20%20if%20 (cat_gallery%20!=
Requested Url : Buy Garmin GPS Nuvi 350, Nuvi 660, C330 and more at Garmin Factory Outlet Store' is already set. */function runSearchForField(eventObj, id){ if ((eventObj.which == 13) || (eventObj.keyCode == 13)) { var cat_gallery = getParam('gallery'); var cat = getParam('cat') var searchTerm = escape(document.getElementById(id).value); // must use escape() function to urlencode search term to avoid issues with '&' and '=' symbols var url; if (cat_gallery !=
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
Method: System.Object _InvokeMethodFast(System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeTypeHandle)
Stack Trace: at System.RuntimeMethodHandle._InvokeMethodFast(Objec t target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at System.Web.Handlers.ScriptResourceHandler.DecryptS tring(String s) at System.Web.Handlers.ScriptResourceHandler.DecryptP arameter(NameValueCollection queryString) at System.Web.Handlers.ScriptResourceHandler.ProcessR equest(HttpContext context) at System.Web.Handlers.ScriptResourceHandler.System.W eb.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e() at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)
Inner Exception: System.Web.HttpException: Invalid viewstate. at System.Web.UI.Page.DecryptStringWithIV(String s, IVType ivType) at System.Web.UI.Page.DecryptString(String s)
User IP: 66.26.65.167