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

[Solved] ie7CacheFix Error Encountered: Could not set HREF property. Invalid property value.

27 Answers 382 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 02 Oct 2009, 01:36 PM
We recently upgraded to Q2 2009 SP1 AJAX.Net Controls and after doing so are experiencing an error in IE7/IE8 when refreshing one of our grids.  The following is a line of code (generated by the grid control itself) that's causing the problem:

if(j.href.indexOf("&ie7CacheFix")>=0){j.href=j.href.replace("&ie7CacheFix","")


(from line 512 of the Telerik.Web.UI.WebResource auto-generated file -- Telerik.Web.UI.WebResource_#.axd -- where # is a random number).

This does not occur when running in Firefox and did not occur prior to installing Q2 2009 SP1.

Has anyone else come across this error and, if so, what did you do to fix it?  Telerik -- do you know whether this is a known issue?

(I searched the web for a solution and think this may be related to IE reloading background images on the page in question.  Since this doesn't occur in Firefox, it may be related, but I'm not positive.)

27 Answers, 1 is accepted

Sort by
0
Matt
Top achievements
Rank 1
answered on 05 Oct 2009, 06:30 PM
bump.
0
Pavel
Telerik team
answered on 07 Oct 2009, 10:06 AM
Hello Matt,

We have not received any reports of such problems. Can you provide more details about the particular scenario? Providing a live url where we can observe the issue might also help.

Sincerely yours,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Claudiu
Top achievements
Rank 1
answered on 14 Oct 2009, 12:09 PM
Same error, but I can't figure it out what is the cause. I have a scriptManagerProxy, a RadAjaxPanel, one RadTreeView and few RadAjaxPanel.
0
Lucas Harron
Top achievements
Rank 1
answered on 14 Oct 2009, 03:16 PM
I am also having the same problem, and recently upgraded to Q2 2009 as well. I also have a RadAjaxManagerProxy control and a TreeView contol, so perhaps those have something to do with it.
0
Claudiu
Top achievements
Rank 1
answered on 14 Oct 2009, 03:30 PM
I have a RadAjaxPanel with EnableAjax="true" with a RadTreeView in it.
The problem is that RadAjaxManager is set to update the RadAjaxPanel in certain situations and the RadTreeView throw the error.
When RadAjaxPanel has EnableAjax="false" the error does not occur anymore, but I need EnableAjax="true" for the panel.
0
Lucas Harron
Top achievements
Rank 1
answered on 14 Oct 2009, 03:34 PM
Hmm... its a strange issue. My scenario is slightly different than yours in that I don't have an AjaxPanel. I have a RadGrid, with a RadComboBox nested inside as the Grid EditTemplate. When I try to put the grid into Edit mode, I randomly receive an error from line 512 of the Telerik.Web.UI.WebResource file:
if(j.href.indexOf("&ie7CacheFix")>=0){j.href=j.href.replace("&ie7CacheFix","")

When the error occurs, the RadComboBox does not have a skin and it says "select" where the drop down arrow should be. Sometimes the user could use the application for 10 minutes without error (and the skin displays correctly), and other times the error occurs immediately.

I'm stumped on this one.
0
Doug Beard
Top achievements
Rank 1
answered on 20 Oct 2009, 08:58 PM
same error

In my case the scheduler is on a user control encased in a webpart , using the xmlprovider, and wrapped in a MS Update Panel.
0
adi
Top achievements
Rank 1
answered on 21 Oct 2009, 01:30 PM
Have the same error in my code. I use Q2 2009, too. I get this error only if not in IE8 only mode.
0
Doug Beard
Top achievements
Rank 1
answered on 22 Oct 2009, 09:27 PM
This error is propagating.  Its now affecting the grid.
0
Pavel
Telerik team
answered on 23 Oct 2009, 06:37 AM
Hello guys,

Can someone please elaborate on the exact scenario causing the error (providing markup/code is always welcome). As stated previously opening a support ticket and sending a runnable sample is also an option which will help us track the issue faster.

All the best,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Doug Beard
Top achievements
Rank 1
answered on 23 Oct 2009, 02:23 PM
It seems to have something to do with the RadAjaxPanel.  If EnableAJAX=false on my wrapper panel, the error goes away.

 
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
  
    <script type="text/javascript">  
        function RemindersShowInsertForm() {  
            var oWindow = window.radopen("App_Controls/Reminders/ReminderInsert.aspx?Action=Insert", null);  
            oWindow.setSize(500, 450);  
            oWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close);  
            oWindow.center();  
        }  
  
        function RemindersSetSelectedEdit(ID, rowIndex) {  
            var masterTable = $find("<%=gReminders.ClientID%>").get_masterTableView();  
            var dataItem = masterTable.get_dataItems()[rowIndex];  
            dataItem.set_selected(true);  
            masterTable.editSelectedItems();  
        }  
  
        function RemindersSaveEdit() {  
            var masterTable = $find("<%= gReminders.ClientID %>").get_masterTableView();  
            masterTable.updateEditedItems();  
        }  
  
        function RemindersCancelUpdate(ID, rowIndex) {  
            var masterTable = $find("<%= gReminders.ClientID %>").get_masterTableView();  
            masterTable.cancelUpdate(masterTable.get_dataItems()[rowIndex].get_element());  
        }  
  
        function RemindersShowDeleteForm(ID, rowIndex) {  
            radconfirm('Are you sure you want to delete the Reminder: ' + ID, confirmCallBackFn, 400, 100, null, 'Delete');  
            function confirmCallBackFn(arg) {  
                if (arg == true) {  
                    debugger;  
                    $find("<%= gReminders.ClientID %>").get_masterTableView().deleteItem(rowIndex);  
                }  
            }  
            return false;  
        }  
  
  
        function RemindersinsertError(arg) {  
  
            var message;  
            if (arg == 'Duplicate') {  
                message = "A duplicate record was found.";  
            }  
            if (arg == 'Error') {  
                message = 'There was an error inserting the record.';  
            }  
  
            radalert(message, 450, 210);  
        }  
  
        function RemindersrefreshGrid(arg) {  
            if (!arg) {  
                $find("<%= RadAjaxPanel1.ClientID %>").ajaxRequest("RebindReminders");  
            }  
        }  
  
        function RemindersExport(arg) {  
            $find("<%= RadAjaxPanel1.ClientID %>").ajaxRequest("export");  
        }  
  
        function RequestStart(ajaxPanel, eventArgs) {  
            if (eventArgs.EventArgument == "export") {  
                eventArgs.EnableAjax = false;  
            }  
        }  
    </script>  
  
</telerik:RadCodeBlock>  
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" EnableAJAX="false" OnAjaxRequest="_radAjaxManager_AjaxRequest">  
    <telerik:RadGrid ID="gReminders" runat="server" AutoGenerateColumns="False" GridLines="None"  
        OnNeedDataSource="gReminders_NeedDataSource" OnItemCreated="gReminders_ItemCreated"  
        OnDeleteCommand="gReminders_DeleteCommand"   
        OnUpdateCommand="gReminders_UpdateCommand" onitemdatabound="gReminders_ItemDataBound"   
        >  
        <ClientSettings EnablePostBackOnRowClick="True">  
            <Selecting AllowRowSelect="True" />  
        </ClientSettings>  
        <MasterTableView CommandItemDisplay="Top" EditMode="InPlace" DataKeyNames="Name" >  
            <RowIndicatorColumn>  
                <HeaderStyle Width="20px" />  
            </RowIndicatorColumn>  
            <ExpandCollapseColumn>  
                <HeaderStyle Width="20px" />  
            </ExpandCollapseColumn>  
            <Columns>  
                <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" AllowFiltering="false">  
                    <ItemTemplate>  
                        <asp:HyperLink ID="EditLink" runat="server" Text="Edit" ToolTip="Edit" ImageUrl="~/images/Edit.gif"></asp:HyperLink>  
                        <asp:HyperLink ID="DeleteLink" runat="server" Text="Delete" ToolTip="Delete" ImageUrl="~/images/Delete.gif"></asp:HyperLink>  
                    </ItemTemplate>  
                    <EditItemTemplate>  
                        <asp:HyperLink ID="SaveLink" runat="server" Text="Save" ToolTip="Save" ImageUrl="~/images/Update.gif"></asp:HyperLink>  
                        <asp:HyperLink ID="CancelLink" runat="server" Text="Cancel" ToolTip="Cancel" ImageUrl="~/images/Cancel.gif"></asp:HyperLink>  
                    </EditItemTemplate>  
                </telerik:GridTemplateColumn>  
                <telerik:GridBoundColumn HeaderText="UID" UniqueName="UID" DataField="UID" Visible="false" DataType="System.Guid">  
                </telerik:GridBoundColumn>  
                <telerik:GridBoundColumn HeaderText="Name" UniqueName="Name" DataField="Name" Visible="false">  
                </telerik:GridBoundColumn>  
                  
                <app:StatusFilteringColumn DataField="Status" HeaderText="Status" SortExpression="Status"  
                    UniqueName="Status" Visible="true">  
                    <EditItemTemplate>  
                        <asp:DropDownList ID="cbStatus" runat="server">  
                        </asp:DropDownList>  
                        <asp:Label ID="lblStatus" Visible="false" runat="server" Text='<%# Eval("Status") %>'></asp:Label>  
                    </EditItemTemplate>  
                    <ItemTemplate>  
                        <asp:Label ID="lblStatus" runat="server" Text='<%# Eval("Status") %>'></asp:Label>  
                    </ItemTemplate>  
                </app:StatusFilteringColumn>  
                  
               <telerik:GridTemplateColumn HeaderText="Description" UniqueName="Description" DataField="Description"  
                    Visible="true">  
                <ItemTemplate>  
                 <asp:Label ID="lblDescription" runat="server" Text='<%# Eval("Description") %>'></asp:Label>  
                </ItemTemplate>  
                <EditItemTemplate>  
                    <telerik:RadTextBox ID="tbDescription" runat="server" Text='<%# Eval("Description") %>'></telerik:RadTextBox>  
                    <asp:Label ID="lblDescription" Visible="false" runat="server" Text='<%# Eval("Description") %>'></asp:Label>  
                </EditItemTemplate>  
               </telerik:GridTemplateColumn>  
                
                  
                <telerik:GridDateTimeColumn HeaderText="Due By" PickerType="DateTimePicker" UniqueName="Due" DataField="Due" DataType="System.DateTime">  
                </telerik:GridDateTimeColumn>  
            </Columns>  
            <CommandItemTemplate>  
                <div>  
                    <span style="float: left; vertical-align: middle;">  
                        <asp:Image ID="AddRecord1" runat="server" AlternateText="Add Record" ImageUrl="~/images/AddRecord.gif" />  
                        <href="#" onclick="return RemindersShowInsertForm('Reminders');">Add Reminder</a></span>  
                    <span style="float: right;">  
                        <table style="border: none;">  
                            <tr>  
                                <td style="width: 80px;">  
                                    <asp:DropDownList ID="_comboExport" runat="server">  
                                        <asp:ListItem Text="Excel" Value="excel" Selected="true" />  
                                        <asp:ListItem Text="Word" Value="word" />  
                                        <asp:ListItem Text="PDF" Value="pdf" />  
                                    </asp:DropDownList>  
                                    <td style="width: 80px;">  
                                        <input id="_buttonExport" type="button" value="Export" onclick="return Export('Reminders');" />  
                                    </td>  
                            </tr>  
                        </table>  
                    </span>  
                </div>  
            </CommandItemTemplate>  
        </MasterTableView>  
    </telerik:RadGrid>  
</telerik:RadAjaxPanel>  



0
Doug Beard
Top achievements
Rank 1
answered on 23 Oct 2009, 06:48 PM
EDIT, I posted something here that was inaccurate.
0
Doug Beard
Top achievements
Rank 1
answered on 23 Oct 2009, 08:10 PM
Further testing reveals that the trouble is caused by a RadTree on the same page on which the user control with the grid exists.
The context menu within the tree causes this error to occur.  If I remove the context menu it doesn't occur at all.
0
Pavel
Telerik team
answered on 27 Oct 2009, 08:31 AM
Hi Doug,

I am afraid that the provided information is still not sufficient for us to replicate the error. Please open a support ticket and attach to it a runnable sample website which illustrates the behavior.

Regards,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Doug Beard
Top achievements
Rank 1
answered on 27 Oct 2009, 02:08 PM
I'll try to make time for creating an isolated repro of the problem and getting it to you.

After I removed the problematic context menu, the problem went away briefly.  I've since added raddocks to the usercontrol and the problem returned.  My head hurts on this one.
0
Svyatoslav Isayev
Top achievements
Rank 1
answered on 28 Oct 2009, 08:15 PM
Hi Doug, I am having the same problem. Did you have any luck resolving this issue? Thanks in advance. -Slava
0
Doug Beard
Top achievements
Rank 1
answered on 29 Oct 2009, 12:45 PM
@Svyatoslav Isayev

Unfortunately no.  And as yet, I've been unable to re-create the exception within an isolated project for sending to Telerik for examination.  It must have to do with some of the client script I've removed in order to send the solution to Telerik.

I emplore anyone having this problem, please try to recreate it in a solution that can be sent to Telerik for examination.  The more of us that get on this one, the more quickly it can be resolved.
0
Matt
Top achievements
Rank 1
answered on 29 Oct 2009, 12:57 PM
I originally posted this issue to the forums, but have been unable to replicate it in a standalone program, otherwise I'd have already done so.

I'm glad others are experiencing this, although I wish Telerik were able to replicate it as well.  Until we come up with an identifiable issue, we'll be whistling in the dark.
0
Doug Beard
Top achievements
Rank 1
answered on 30 Oct 2009, 03:56 PM
AHA!

I have discovered (and I should have guessed from the start considering the script error displayed) that this error is in relation to Custom Skins within our project.

Once I remove the Theme property from the Page element in the web.config, which removes the theme containing all custom skins, the problem goes away.

The code seems to want to alter the autogenerated LINK elements in the style class Telerik_stylesheet. removing &ie7CacheFix portion and replacing it with string.empty, which is apparently an unwelcome value.

Any insight from Telerik?
0
Doug Beard
Top achievements
Rank 1
answered on 30 Oct 2009, 04:09 PM
Indeed I have eliminated the exception.

We implemented a Theme with a single skin file.  Within the skin file was defined (initially) each RadControl we made use of, EmbeddedSkins where set to false and a Skin was assigned from the App_Themes folder.

It appears, unfortunately, that our list of used RadControls in the application grew (specifically causing the problem I think the RadDateTimePicker), but our skin file did not define some of the additional controls we had begun to make use of.  I went through and specifically defined each and every Rad Control in the skin file and the problem disappeared.
0
Andreas
Top achievements
Rank 1
answered on 02 Nov 2009, 04:07 PM

Hi

I had the same problem.

I am using several rad controls on my page and the RadEditor loads as the last control.

 

I tried to solve the problem by using skin thanks to Dougs advise.

Accidently I sat the EnableAjaxSkinRendering to false and the problem disappeared.

I then removed the skin and it still works

 

 

0
Doug Beard
Top achievements
Rank 1
answered on 02 Nov 2009, 04:31 PM
Yup, my effort to isolate the problem so I can send it in as an attachment resulted in the same as you, once the problem was gone, I couldn't get it come back.  I can not repro the issue.
0
Svyatoslav Isayev
Top achievements
Rank 1
answered on 02 Nov 2009, 05:27 PM
Hi Doug,

If you could email it to me, I would really appreciate it. Here's my email address: sisayev@spisoftwaresolutions.net. Or you can attach it to the forum posting. The intermittent nature of this problem has been driving me crazy. I haven't been able to isolate it in a separate project either. THanks a whole lot in advance.

0
Doug Beard
Top achievements
Rank 1
answered on 02 Nov 2009, 07:29 PM
If and when I repro is in isolation I'll send it to you.
0
Keith Heilveil
Top achievements
Rank 1
answered on 04 Nov 2009, 08:34 PM
I believe this is just a minor bug in the Telerik JS. I am having the issue if I disable ajax in the onRequestStart event of the RadAjaxManager.If I then use a tabstrip afterwards, it produces the error in the subject.

But I believe this is the solution

The value of href is  

"/WebResource.axd?d=91oH34zN0iY_rhxsy9FTx3hDCktY3-dsyyLE3G_Ogwb6NJkU0PpAbW18Wbds2HZa0&t=633894727840000000&ie7CacheFix"


The original line fails with the error we all know and love, that is the subject of the message

if

 

(j.href.indexOf("&ie7CacheFix")>=0){j.href=j.href.replace("&ie7CacheFix","")

The solution would be if the line said (correction in bold)

 

if(j.href.indexOf("&ie7CacheFix")>=0){j.href.value=j.href.replace("&ie7CacheFix","")

That sets href to equal

"/WebResource.axd?d=91oH34zN0iY_rhxsy9FTx3hDCktY3-dsyyLE3G_Ogwb6NJkU0PpAbW18Wbds2HZa0&t=633894727840000000"


Which is what I believe the intent of the line was in the first place.

Any chance this solution can make it in Q3 (assuming it passes your internal testing)?

Thanks in advance.

0
Pavel
Telerik team
answered on 05 Nov 2009, 01:52 PM
Hi guys,

Can you try the Q3 release and let us know if you still observe the issue?

Greetings,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Absolute Data Group
Top achievements
Rank 1
answered on 12 Nov 2009, 01:44 AM
Preliminary testing seems to show that the latest build has made this problem go away (at least for my particular app).

I tend to think that this is/was a skin issue because it only started in my project after I had changed to another skin.
Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Answers by
Matt
Top achievements
Rank 1
Pavel
Telerik team
Claudiu
Top achievements
Rank 1
Lucas Harron
Top achievements
Rank 1
Doug Beard
Top achievements
Rank 1
adi
Top achievements
Rank 1
Svyatoslav Isayev
Top achievements
Rank 1
Andreas
Top achievements
Rank 1
Keith Heilveil
Top achievements
Rank 1
Absolute Data Group
Top achievements
Rank 1
Share this question
or