AJAX :: How To Change Path Of ScriptResource.axd And WebResource.axd

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


Similar Messages:

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

AJAX :: Sys Is Undefinded - WebResource.axd ScriptResource.axd 404 Error?

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

Web Forms :: Combining WebResource.axd And ScriptResource.axd Files?

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

Webresource.axd / Scriptresource.axd And Javascript Files Not Getting Cached?

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

AJAX :: Changing The Path Of Scriptresource.axd?

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

Web Forms :: Optimize ScriptResource.axd And WebResource.axd To Reduce Page Size?

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

C# - Change The Requested Url Of WebResource.axd?

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

Web Forms :: Is It Possible To Change The Referral To The WebResource.axd

Dec 9, 2010

Is it possible to change the referral to the WebResource.axd from:

<script src="/WebResource.axd
to
<script src="http://mysite/WebResource.axd
?

View 3 Replies

AJAX :: ScriptResource.axd 404 Error Only On Subdomains?

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

AJAX :: ScriptResource.axd Is Throwing Server Error (500)?

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

AJAX :: Scriptresource.axd And Load Balancer Servers

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

AJAX :: Using CompositeScript To Combine ScriptResource.axd Files?

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

AJAX :: ScriptResource.axd Is Being Invoked Several Times Per Each Aspx Page Request

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

AJAX :: WebResource Fail To Work Under Reverse Proxy?

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

AJAX :: ScriptResource.axd Is Not Getting Load Only On One Client Machine / Error: [Exception "'Sys.ScriptLoadFailedException: Sys.ScriptLoadFailedException

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

C# - Calculating Relative Path Change?

Oct 6, 2010

Assuming I have a .css file with the following linebody { background-image: url('../images/bg.png') }My build process does some CSS magic and eventuall move this file from
~/Content/styles/styles.css
To
~/temp/styles.css

This invalidates the url statement in the file and needs re-written to ../Content/images/bg.pngThis is my question - given the original file location, the new file location and the background-image url in the file is there a reusable way calculate a new relative path for the image?In case someone doesn't know css urls should be relative to the css file it is contained within.

View 2 Replies

MVC :: Change The Output Path Of Application?

Mar 16, 2010

I want to change the output path of a MVC2 application that is using the internal ASP.NET Dev Server within VisualStudio 2008.If I let the path "bin" it works. But if the path is changed, I get a Parser error:

Parser Error Message: Could not load type 'MvcApplication3.MvcApplication'.

View 10 Replies

Web Forms :: How To Change Image Path Name Dynamically

Oct 18, 2010

In my website I have <img src from code behind (created the whole table and css in the code behind). So for an image I added as <img src='../combox/img/products/prod1.gif">

So when I run this page and see the view source, I get the following path for my image: <img src = "http://localweb1/combox/img/products/prod1.gif">. Here localweb1 is my development server.

But I want to change this "http://localweb1" to "http://www.mypage.com/ so the img src will show as <img src="http://aeroprod.com/combox/img/products/prod1.gif">

How should I do this in my code? Do I have to parse? In this case how do I do it?

View 5 Replies

Web Forms :: Use Change Masterpagefile Path Dynamically?

Aug 16, 2010

Is it possible to set MasterPageFile name property dynamically?

<%@ Page Language="C#" MasterPageFile="~/xxxx/OuterMasterPage1.master" AutoEventWireup="true" CodeFile="xxxx.aspx.cs" Inherits="xxxx.cs" %>

Can we set "~/xxxx" path dynamically?

View 2 Replies

Web Forms :: Can Change The Applicaiton Virtual Path At The Runtime

May 1, 2010

Can I change the applicaiton virtual path at the runtime

View 1 Replies

Web Forms :: How To Change The Path Of The Image Upload Folder

Jul 8, 2010

I am editing a code to change the path of the image uplod folder,

There is a form for uploading an banner to the site, which has table of all the banners uploaded with image path and file path for downloads.

The form has 2 parts, one for the image uploading and the other for banner link updating.

The banner link updating has a dropdownlist of all the images available in the folder. The imagepath is uploaded via sql

I have changed the sql imagepath, but can find where is the code for uploading to a folder, so that i can change, also, how to change the dropdownlist to read from the new folder.

the below is the codes:

[Code]....

and its cs:

[Code]....

View 31 Replies

DataSource Controls :: Running On Different Computer - Path Will Auto Change

Jul 26, 2010

I created a DataSet(right-click project-->add new item-->DataSet) and then a TableAdaptor to it with table from database. However, when i bring the project to others computer and run, it has error.

I look into the DataSet in xml and found that the path to database is actually on the computer that created the DataSet(C:DOCUMENTS AND SETTINGSUSERDESKTOPPROJECT NAMEAPP_DATADATABASENAME.MDF)

My database file is located at the App_data folder. May i know is there a way to config so that whenever i run the project on different computer, the path will auto change?

View 2 Replies

Web Forms :: Change The Css And Image Path Based On Theme Selected?

Feb 22, 2010

I need to change the css and image path based on theme selected..

to achieve it, it required to add code in preinit event in very page to change the page.theme

is there a way where the same can be achieved in master page itself instead of using preinit event in all pages ??

in all pages in have used

MasterPageFile
="~/common/MasterPage.master"
Theme="default"

View 20 Replies

Web Forms :: FileUpload Path - Change Some Security Setting On The Web Page??

Sep 26, 2010

I have not been able to uplaod a file to my web page although the code I am using works if I copy it locally. Perhaps I am missing something in the path or I need to change some security setting on the web page?

[Code]....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved