This is a migrated thread and some comments may be shown as answers.

Problem since moving to .Net 4.0

3 Answers 91 Views
Compression
This is a migrated thread and some comments may be shown as answers.
David Penny
Top achievements
Rank 2
David Penny asked on 24 Feb 2011, 01:55 PM
Hi,

I have recently upgraded my project to use .Net 4.0 and all seemed fine until I started trying to run some reports using Crystal which were all fine previously.  I get the following error when I try to run the report and print to PDF. The message seems to indicate some issue with the Script Manager or Compression, both of which are enabled.

  SCRIPT5007: 'undefined' is null or not an object  Telerik.Web.UI.WebResource.axd?
_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-GB%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.3.1317.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-GB%3a9506cff2-3a86-46c5-b869-6ba1478f3c27%3a16e4e7cd%3af7645509%3a24ee1bba%3af46195d3%3a1e771326%3aaa288e2d%3a19620875%3a874f8ea2%3a490a9d4e%3abd8f85e4%3aed16cbdc, line 6 character 55898

length,n=b.length;g<n;g++,m++)d[m]=b[g]}else if(typeof b==="object"&&Object.getType(b)===Object){d=f.apply(a);Sys$Component$_setProperties(d,b)}}}if(h)a.endUpdate()}function Sys$Component$_setReferences(c,b){for(var a in b){var e=c["set_"+a],d=$find(b[a]);e.apply(c,[d])}}var $create=Sys.Component.create=function(h,f,d,c,g){var a=g?new h(g):new h,b=Sys.Application,i=b.get_isCreatingComponents();a.beginUpdate();if(f)Sys$Component$_setProperties(a,f);if(d)for(var e in d)a["add_"+e](d[e]);if(a.get_id())b.addComponent(a);if(i){b._createdComponents[b._createdComponents.length]=a;if(c)b._addComponentToSecondPass(a,c);else a.endUpdate()}else{if(c)Sys$Component$_setReferences(a,c);a.endUpdate()}return a};Sys.UI.MouseButton=function(){throw Error.notImplemented()};Sys.UI.MouseButton.prototype={leftButton:0,middleButton:1,rightButton:2};Sys.UI.MouseButton.registerEnum("Sys.UI.MouseButton");Sys.UI.Key=function(){throw Error.notImplemented()};Sys.UI.Key.prototype=

When I debug the following line is highlighted (shown in bold below):

{backspace:8,tab:9,enter:13,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,del:127};Sys.UI.Key.registerEnum("Sys.UI.Key");Sys.UI.Point=function(a,b){this.x=a;this.y=b};Sys.UI.Point.registerClass("Sys.UI.Point");Sys.UI.Bounds=function(c,d,b,a){this.x=c;this.y=d;this.height=a;this.width=b};Sys.UI.Bounds.registerClass("Sys.UI.Bounds");Sys.UI.DomEvent=function(e){var a=e,b=this.type=a.type.toLowerCase();th


Any ideas why this is happening?

Dave Penny

3 Answers, 1 is accepted

Sort by
0
David Penny
Top achievements
Rank 2
answered on 24 Feb 2011, 04:00 PM
Oops,

Ignore me, I had done something stupid (as usual).
0
Michael
Top achievements
Rank 1
answered on 04 Aug 2011, 11:29 AM
This is a long shot I know, but do you recall how you fixed your problem?  I'm banging my head against the wall with exactly the same issue.

Thanks.
0
David Penny
Top achievements
Rank 2
answered on 04 Aug 2011, 12:35 PM
Wow Michael, it was a long time ago now.

I recall it was really stupid, and I THINK I had left some old references to previous versions of telerik in my project. I think it was that, but could not swear to it. Might be worth checking your app references because I believe after upgrading the old .Net 2 telerik dll's were still in the list.
Tags
Compression
Asked by
David Penny
Top achievements
Rank 2
Answers by
David Penny
Top achievements
Rank 2
Michael
Top achievements
Rank 1
Share this question
or