mwrock/RequestReduce

Issue with RequestReduce on page with Telerik Reporting

codeowl1 opened this issue · 0 comments

Hi there,
Thanks for making such a great library!! It has improved the performance of our website a great deal!

We use Telerik controls, which all work perfectly with RequestReduce on our site.
On a few pages we use Telerik Reporting. RequestReduce has problems with Telerik Reporting, and it prevents RequestReduce from combining any CSS on the page.

I have done some tests. I flushed the all content and flushed failures between each test.

Telerik Reporting puts the following CSS links in the head of the page:


/MGFarm/Telerik.ReportViewer.axd?optype=Resource&version=6.1.12.717&name=Skins.Default.ReportViewer.css

/MGFarm/Telerik.ReportViewer.axd?optype=Resource&version=6.1.12.717&name=Resources.ParametersArea.css

/MGFarm/Telerik.ReportViewer.axd?optype=Resource&version=6.1.12.717&name=Resources.ReportViewerInternal.css


I created a blank page and put all the other CSS links from Telerik controls other than Reporting, and also my own CSS files, and RequestReduce worked perfectly.
I then added the following link, and it failed, and none of the CSS was processed by RequestReduce including all the ones that had previously worked before I added the following line:


http://localhost:1835/Telerik.ReportViewer.axd?optype=Resource&version=6.1.12.717&name=Resources.ParametersArea.css


I then removed all other CSS except for the ReportViewer one. So now I have a blank test page, with one line of text and the following CSS link in the head:


http://localhost:1835/Telerik.ReportViewer.axd?optype=Resource&version=6.1.12.717&name=Resources.ParametersArea.css


The error that RequestReduce gives is as follows:


Recorded Failures
Key: 38e9a0e7-1e87-8e0a-9583-9062a1140228
First errored on: 24/10/2012 9:19:08 AM
Number: 1
Exception #1: There were errors reducing http://localhost:1835/Telerik.ReportViewer.axd?optype=Resource&version=6.1.12.717&name=Resources.ParametersArea.css::
Exception #2: RequestReduce had problems accessing http://localhost:1835/Telerik.ReportViewer.axd?optype=Resource&version=6.1.12.717&name=Resources.ParametersArea.css. Error Message from WebClient is: The remote server returned an error: (500) Internal Server Error.
Stack Trace#2:
at RequestReduce.Utilities.WebClientWrapper.Download(String url, IEnumerable1 requiredMimeTypes) at RequestReduce.Utilities.WebClientWrapper.Download[T](String url) at RequestReduce.Utilities.WebClientWrapper.DownloadString[T](String url) at RequestReduce.Reducer.CssReducer.ProcessCss(String url) at RequestReduce.Reducer.CssReducer.ProcessResource(Guid key, IEnumerable1 urls, String host)
at RequestReduce.Reducer.HeadResourceReducerBase`1.Process(Guid key, String urls, String host)
at RequestReduce.Module.ReducingQueue.ProcessQueuedItem()

Exception #3: The remote server returned an error: (500) Internal Server Error.
Stack Trace#3: 

at System.Net.HttpWebRequest.GetResponse()
at RequestReduce.Utilities.WebClientWrapper.Download(String url, IEnumerable`1 requiredMimeTypes)


When I past the URL of the CSS into the browser address bar, it returns the following:


.DisabledTextInput
{
background-color: inactiveCaptionText;
font-size: 8pt;
font-family: Verdana;
text-align: left;
}

.ParameterEditor
{
font-size: 8pt;
font-family: Verdana;
text-align: left;
}


The site is password protected, however that CCS file is not as I have added a path exception for Telerik.ReportViewer.axd in the config file. To verify this is working if I goto IE and click on the File/New Session menu item and then paste the URL to the above CSS in, IE pops up notepad with the content of the CSS file no probs.
So the CSS file is accessible.

I can provide you with a one page sample project that replicates the issue, if you can tell me where to send it.

Any help with this issue would be much appreciated.

Regards,

Scott