AJAX :: Scriptresource.axd And Webresource.axd?
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
Similar Messages:
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 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
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
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
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
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
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
Jul 19, 2010
We have an issue when our web application runs under reverse proxy.
The reverse proxy change the URL for the website from for example: "http://TestWebApp/" to: "http://ProxyDomain/Test/" when it runs under reverse proxy which is mapped to "http://TestWebApp/" and rout requests to it.
This raise an issue of root relative paths (paths that start with "/" to be relative to the root of the web application i.e. "/Folder1/Test.aspx"). Generally all paths that need to be rendered to client we use ResolveClientUrl method and all is good.
When using Ajax controls and ScriptManager WebResource.axd paths are rendered in script tags as a relative url paths ("/WebResource.axd?blablabla") because the root under reverse proxy is the proxy domain itself the path is useless - the web resouce is not downloaded and the application break.
To fix this we tried to set a Response.Filter in OnPreRender event handler of our base page. In our custom filter we use Regex to search and replace all "/WebResource.axd" occurences with the resolved to client root path using the ResolveClientUrl method of the page. This works great and the web resources are downloaded to client.
But this is not the end of our troubles.
In Ajax requests the response output is fixed as described but when recieved at the client end it is not valid and the partial update fails with Sys.WebForms.PageRequestManagerParserErrorException.
It fails to parse the response because the rendered response have numbers that states the actual count of bytes per rendered component (which includes the script tags referencing the WebResource.axd). The client reciever validates the recieved response according to the numbers, but, our filter altered the response so the numbers are not correct and the response validation fails.
We can try and code a smart filter that parse the response and recalculate the numbers according to the ammount of paths fixed, but I hope there is an elegant and better solution for this.
View 3 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
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
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
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
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
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
Feb 26, 2010
ASP.NET automatically includes the following script tag:
<script src="/WebResource.axd?d=8H_C0aee9xE8e9a-3YoRhA2&t=633413907763620168" type="text/javascript"></script>
However the clients site is being proxied through another site. So the URL to the root of their site is:
http://domain.com/somename/
So I need to prefix the WebResource.axd with /somename so the resulting tag will look like this:
<script src="/somename/WebResource.axd?d=8H_C0aee9xE8e9a-3YoRhA2&t=633413907763620168" type="text/javascript"></script>
What I am not sure is how to actually set this? Is there a web.config setting I can set so it has this prefix?
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
Apr 6, 2010
I am generating a System.Drawing.Bitmap on the fly in an ASP.NET Custom Web Server Control, and then I want to serve this bitmap as part of the WebResource, because I do not want to save it on the hosting computer. Is there a way to instruct ASP.NET to serve the generated System.Drawing.Bitmap as part of it's WebResource? (therefore making it an "Embedded Resource")
View 1 Replies
Sep 15, 2010
I have developed some ASP.NET server controls which include their own javascript and css files. A lot of these controls use jQuery extensions which, as you know, often include their own css files.
I'm using Telerik's RadScript manager which combines the javascript like a boss. However, I'm using the AjaxToolkit's ClientCssResource attribute to include the css files in my server controls, and I have noticed that the CSS files are not getting combined at all. My pages have 10-15 WebResource.axd requests for css files for my server controls.
Everything I find only is about combining javascript, and nothing tells me how I can combine the CSS files. Does anyone know if there is a way to combine the CSS dynamically (I don't want to manually combine as each page might use a different subset of the server controls)?
View 2 Replies
Apr 4, 2011
My web application [URL] is currently requesting the WebResource.axd file like this:
<script src="/WebResource.axd?d=xxx" type="text/javascript"></script>
As we're using urlrewiting in a Netscaler to forward all requests for the "/social" folder onto a seperate server farm containing this app, the "/" root path won't resolve correctly as it will be requesting the resource from the something.com app.
Therefore I need to change the url of the requested script to either request it explicitly:
<script src="/social/WebResource.axd?d=xxx" type="text/javascript"></script>
or to request it using a relative path:
<script src="WebResource.axd?d=xxx" type="text/javascript"></script>
So far I've looked at overriding the render method, using a control adapter and various other things but haven't really got anywhere as of yet.
View 1 Replies
Jan 17, 2011
We have an array of about 12 servers serving a website. Over the past few hours, one single server has started throwing exceptions for WebResource.axd and ScriptResource.axd requests.
Exception
System.Web.HttpException - This is an invalid script resource request.
Stack Trace
at System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Broken server URL
/WebResource.axd?d=S6kjkBsrIKni9uO5HCkv0c8eYObzibWXn9R6A7Yr_Fy7CW4dRFZm1HfcnUTEZ8xBYZDM-5zeTVk1tTgC1hp7d5YYw3o1&t=634308186300177825
All other servers URL
/WebResource.axd?d=yj6PW1hbOvqhMkOh2gYGlw2&t=634207187366247462
I have checked the web.config, machine.config for every server and they're all identical. The only difference been able to find so far is that prior to the problem commencing, the servers were patched, after which, the problematic server looks to be using different version of the System.Web.dll to the others?
View 2 Replies