Configuration :: ScriptResource 'Sys' Is Undefined?
May 11, 2010
my project contain two config files. first config file in root directory, second config file in child directory
part of .config in root directory:
<httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
</httpHandlers>
part of .config in child directory:
<httpHandlers>
<remove verb="*" path="*.asmx" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> [code]....
When 'ScriptResource' in root config file, all's well. But when 'ScriptResource' in child .config file. I have error "Error: 'Sys' is undefined".
View 2 Replies
Similar Messages:
Oct 6, 2010
Running some code on a test server, everything is checking out fine, deploy it to live and suddenly, Sys.Application is undefined script errors. Checked the versions of ASP.NET AJAX toolkit installed, both are running only 3.5.0.0. Same web.config file. Pared the code down to its simplest (one UpdatePanel with an ID and 'Test' between the tags) and it still throws the error. Originally thought perhaps the live server was using an older dll but they match up. Both are running IIS 6. I'm not a server configuration guru,
View 2 Replies
Nov 22, 2010
I have a GridView with the following event:
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
foreach (TableCell c in e.Row.Cells)
{
c.Attributes.Add("full","false");
}
}
And in my javascript I have an onClick event for every cell:
if(source.full="false")
{
...
source.full="true";
}
else
{
...
source.full="false";
}
Why is it that source.full is always undefined on the first click?
View 1 Replies
Dec 22, 2010
We have a site running FW 2.0 on IIS 6. Actually two sites (on the same server), one works and one has that little Done with errors note in the lower left. The errors are 'Sys' is undefined & WebForm_SaveScrollPositionSubmit' is undefined. I have cleaned the bad site, copied the code from the good site, including web.config, and still see the problem. This was working for a number of months, then I guess we didsomething, and now the errors.
View 2 Replies
Nov 23, 2010
I have ScriptResource.axd file which is use and whithout compression. also I have JavaScript files that are not compressed too.
this is making website loads reallu slow....20 seconds....:
What can I do to reduce this and compress everything?
View 3 Replies
Mar 21, 2010
My website is looking in the wrong place for the scriptresource.axd and webresource.axd. How do I point it at the correct subfolder? Or how do I set it so that scriptresource.axd and webresource.axd are stored in the root of the website?All the ajax is done within subfolders. The web.config is at the root of the website.
View 2 Replies
Oct 30, 2010
Scenario: I have a complex Asp.net app serving various units through programmatically constructed control collections in HttpModules. Some of these controls use Asp.NET Ajax.
Across many different units, ScriptResource.axd averages a transfer size of ~27k.
I have a ceiling that only allows ~3k for it.
There definitely isn't time to retrofit all the Ajax functionality with jQuery or hand-rolled js functions or whatnot. We already have the .axd coming over with gzip encoding (uncompressed it's more like 97k). It's often cached, but that doesn't matter: I have to hit a hard, low, externally-imposed limit on first-request total transfer size... markup, scripts, images & all summed up a-la firebug. I've been avoiding the .axds, but there really isn't anywhere else to shave bytes, and I have 24k to go.
Possible approaches: I'm not yet using Asp.NET 3.5 SP1's compositescript functionality, but I figure that would only save on request/response headers, and I'm not even sure headers count against me.
I don't have any other ideas other than something radical, like creating a response filter that uses reflection & some dictionaries to figure out what js functions are actually needed, and only emit those. I could cache the resulting list for each unit, since I have a low response time ceiling as well, and I don't think the .axds change from one request to another. Is this feasible? Any other ideas? ...what if I buy beer for the hero with a solution?
View 2 Replies
Jan 11, 2010
I have setup my website (ASP.NET 3.5) with AJAX, running with no problems at all.
When I test my website locally and on my main top level domain, there are no problems.
When I'm on a subdomain page, AJAX client side framework fails to load. I observed the problem deeply and found that whenever I'm on a subdomain page, WebResource.axd DOES load but ScriptResource.axd DOESN'T load (returns 404 Not Found error). I think I should modify some entries at web.config file, but I have no idea on what to do?
View 3 Replies
Mar 9, 2011
Google Page Speed is saying we should combine external JavaScript. Fair enough.
I know that the way to do this is to use a CompositeScript tag inside asp:ScriptManager.
<asp:ScriptManager runat="server">
<CompositeScript>
<Scripts>
<asp:ScriptReference Name="AjaxControlToolkit.Common.Common.js" Assembly="AjaxControlToolkit" />
<asp:ScriptReference Name="AjaxControlToolkit.Calendar.CalendarBehavior.js" Assembly="AjaxControlToolkit" />
< ... />
</Scripts>
</CompositeScript>
</asp:ScriptManager>
What I don't know is which script references to add. In my page I have lots of <script src="/ScriptResource.axd?d=big-string-here" type="text/javascript"></script>
How do I discover what <asp:ScriptReference Name="x" Assembly="Y" /> tags I should add to the CompositeScript tag? There's a usercontrol out there with this specific aim, and we even have already used it before, but I can't find it again o Google.
EDIT
The usercontrol I was looking for is ScriptReferenceProfiler. How to use it.
View 1 Replies
Feb 12, 2010
In my website i have used ajax. I have made a subdomain. All the files are in the subdomain. But no ajax controls are working. When viewing source,
<script src="/subdomain/ScriptResource.axd?d=pIGD9Q63Ayfy9TvkTDZXYa7KKGxArRY0b7cvnO2ePCz6Y3RvV0egKLh8SptZV4uh0uHt-WTAswFxYQAekdl0wytwvJVYp1G-DPHL4quv6Vc1&t=633528638860312500"
type="text/javascript"></script> is coming.
In web.config i have written
[Code]....
View 1 Replies
Mar 25, 2010
combining these type of files so that there are fewer http requests? Or for that matter any other tips on making them more efficient?
View 5 Replies
Jun 9, 2010
I built the asp.net website in release mode, set the debug flag to false in web.config, but still some of the webresource.axd and scriptresource.axd and javascript files are not getting cached. fiddler shows the status code "200" for these items instead of "304". what else I am missing to cache these files?
View 1 Replies
Jul 12, 2010
I have a site that uses the Ajax Control Toolkit that's been running for several weeks and a week ago all of a sudden users are seeing script errors. I'm getting 'Sys' is undefined errors, as well as 'object required' and other JavaScript exceptions. The site does not function because of this.
I checked the page source and looked for the WebResource.axd and ScriptResource.axd's and tried navigating to them directly by putting the URL in the browser. I got a 404 error - file not found. If I do the same in our test environment, it comes back and asks me if I want to save or open the file. If I open it, I see the JavaScript that I am expecting (from the Ajax Control Toolkit).
In our test environment, with the same code, everything works fine. This tells me there was something on the production server that's preventing this from working. About 4 days before this started happening, we found that some user documentation (PDF) wasn't being protected by Forms Authentication (we need only legitmate users having access to it) so we added a wildcard mapping in IIS with "verify that file exists" was unchecked, knowing that if it were checked, we'd have this problem. I had one of the network admins check this setting after this started happenig and he said that it was still unchecked. I asked him to remove the wildcard mapping altogether and I still see the same behavior.
I am certain that this isn't a coding problem; again, as it went through the QA process in our test environment, everything works perfectly. And after the last deployment to production three weeks ago, everything was perfect as well. We added the wildcard mapping (which shouldn't have had an effect) and four days later the site breaks. I've asked our IT department if any changes were made to the server recently and nobody says they did.
What settings does anyone know of that might be causing this, either server or application? I checked the web.config and all the sections are there that deal with the ScriptResource HttpHandler and HttpModules. In fact, the web.configs are identical between the production and test environment, so I know it hasn't been tampered with.
View 4 Replies
Apr 12, 2010
Is there any way to change the path of both ScriptResource.axd and WebResource.axd to a relative path (remove the leading the "/")?
View 4 Replies
Mar 29, 2011
When I have a string in a textbox starting with a < sign, it causes server error 500 during post back. Is this a known issue?
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Line: 604
Char: 13
Code: 0
URI: http://.../ScriptResource.axd?d=.....
View 1 Replies
Sep 16, 2010
I have page that works ok on localhost, but it throws an error on server. This pages was working ok before until I added additional grid to updatePanel. Is there any limit how many grids you can have in updatePanel. The error message is below.
Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Line: 4723
Char: 21
Code: 0
View 8 Replies
Dec 21, 2010
We host a SaaS application on 4 windows 2008 servers loadbalancer via a LVS. We use infragistics and Ajax Control Toolkit on several pages, one page represents a list of people using a Web Datagrid, each time a person is clicked in the list, an Ultra Web Tab component is updated at the botom of the page with detailed information on that person. After a certain amount of clics on different people (number of clics can be between 1 and 5) Scriptresource.axd craches with the following error :
[Code]....
I don't get this error when I run my application on one server using the server's private IP adress. I tried to synchronize the dates of the dlls System.Web and System.Web.Extensions on each server, I still get the same error.
View 3 Replies
Jan 10, 2011
I'm having a problem trying to combine the ScriptResource.axd files automatically generated by Ajax using ScriptManager's CompositeScript property....on some pages there's 15 of these files, so I'd like to reduce that number to reduce the HTTP requests. I tried following the post here - [URL] - but am getting errors when trying to do what it instructs, such as:
Microsoft JScript runtime error: 'Sys' is undefined Microsoft JScript runtime error: ASP.NET Ajax client-side framework failed to load. Below is the code I am using for the ScriptManager. These errors go away if I do not use CompositeScript. Has anyone else attempted to combine these files? Am I doing something wrong in this code?
[Code]....
View 2 Replies
Dec 14, 2010
In my web application, I have used AJAX Toolkit and my .net version is 3.5. When I run the application and save the page, so many ScriptResource.axd and WebResource.axd generate which makes the file size 200 to 300 KB more big. After doing the same procedures mentioned in the above link, it was working fine as all ScriptResource.axd and WebResource.axd file is removed.
But when I go from one page to another page using on click, then Object Expected Error comes and when I debug it,I found one ScriptResource.axd file containing query string like .axd?d=-bA.like this and Request. GetResponse cannot find the file and it gives 404 errror (File Not Found).
View 3 Replies
Apr 1, 2010
I use ASP.NET Ajax in my web site and I am monitoring the HTTP requests per each page. I am surprised by the excessive call of ScriptResource.axd with different query string variables. I am pasting a sample of HTTP trace below. The call for ScriptResource.axd take lots time percentage out of total response time. Is this by design or there is something wrong with my AJAX configuration in web.config?
[Code]....
Actually it is degrading the performance of the application. And the user experience becoming very poor in case of lower bandwidth.
View 2 Replies
Mar 1, 2011
I was performed tests againts my web server using Shadow Security Scanner with the following results:
Web Servers : Vulnerable script
Port : 80
Description: Found vulnerable script on this web site
Risk level :High
Script: http://servername/ScriptResource.axd?d=P4tzN-eCJlchxi30M7K6eGzyH7tdeY4timDGCw0yDS45Ur477KM8CSqJQdqun4VDGbs5xXGPE 7VeqXqRIDyOHxwoopCbgbWmKFLiyKB1Qs5UDJTyZQYe4zURSEshSBwPOm1hORh40237AJZ_EWO2n2-3IwAzTY__px0r6WbIYgWamkVz0&t=/etc/passwd
CVE : GENERIC-MAP-NOMATCH
Why ScriptResource.axd is a vulnerable script?
View 1 Replies
Oct 14, 2010
I have an asp.net web site where I'm trying to resolve what looks like a problem with ASP.NET AJAX:
Microsoft JScript runtime error:
Sys.ArgumentTypeException: Object of
type
'Sys.Extended.UI.AccordionBehavior'
cannot be converted to type
'Sys.UI.Behavior'. Parameter name:
instance
I've googled around a lot, and looked at the code presented (see below, no idea what it means) but no luck.
I've tried changing scriptmanger scriptmode to release, and a bunch of other things too.
Details:
Visual Studio 2010
ASP.NET 4.0
Ajax control toolkit 4.0
jQuery 1.4.2
jQuery UI 1.8.5
JS Code the error occurs in, inside ScriptResource.axd:
dispose:function()
{
var c=this;
b.UI.Behavior.callBaseMethod(c,eb); --------- this line
var d=c._element;
if(d)
{
var f=c.get_name();
if(f)
d[f]=a;
var e=d._behaviors;
Array.remove(e,c);
if(!e.length)
d._behaviors=a;
delete c._element
}
}
Declaration of accordion control:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="atlas" %>
(snip)
<atlas:Accordion ID="menu" runat="server" SelectedIndex="0"
ContentCssClass="accordionContent" FadeTransitions="true" FramesPerSecond="30"
TransitionDuration="250" AutoSize="None" Width="270">
</atlas:Accordion>
*Update: *
Added accordion control declaration as requested, is there anything else I can add that could be useful?
Does anyone have any idea about this error at all - am I right in thinking it's MS AJAX not playing nicely with other javascript (probably jQuery UI) on the page?
View 1 Replies
Oct 15, 2010
Problem:
This problem occurs only in one client machine running IE8. I believe that it is a configuration/component problem because I also running IE8 and it works fine. Following error message pop up every time when the button is click inside the update panel.It occurs once I try to click a button inside the updatePanel. Controls inside updatePanel disappears, and the updateProgress keep running.
I tried so many solutions including following
Changing the Web.config with "~/scriptResource.axd" There is no timer control from AjaxControlToolkit on the page. I have checked modified dates, which are correct on the AJAX Control Tool Kit assemblies as accepted.if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded(); I have tried many other options with out any luck.
Looks like the required ScriptResource.axd file is not getting loaded on that particular client machine due to some reason, which i can not find out. This problem occurs only in one client machine running IE8, that's making testing problematic for me.
My Configuration includes the following .NET Frame Work 2.0 with AJAX Control Tool Kit Library (1.0.61025)
Error message :
Error: [Exception... "'Sys.ScriptLoadFailedException: Sys.ScriptLoadFailedException: The script 'http://gateway/ApplicationName/ScriptResource.axd?d=pXGxsCxfFpN7YoDKJe9ANJUGdhhEYXdDvlJNvZyr3dWA3jxhYKmHBTZXvAXPr8NFAZhv6MOINf4Ktd7XCgzHFg2&t=633372084573906250'
failed to load. Check for:
Inaccessible path.......
View 7 Replies
Mar 23, 2011
We have developer project in Visual studio 2008, Using Ajax and telerik Rad Controls.
In IE 8 And Firefox, Chrome, Opera Everything is Working fine...
but In IE7 and IE6 It is throwing 'Sys' is undefined Error... And Everything looks Collapsed.. Css, Images Are not displaying on the page..
View 2 Replies
May 6, 2010
What is the cause of this error: "RSClientController is undefined"? It is associated with a ReportViewerWebControl displayed on a ASP.NET page.
View 1 Replies