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

This is an invalid web request

4 Answers 126 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Vladimir asked on 25 Jul 2008, 09:43 AM
We are migrating on RadControls ASP.NET AJAX Q2 2008.

Now when we went to the page contains dynamically added RadScheduler, we get an error "This is an invalid webresource request."

I've read some articles related to common, non-Ajax, RadControls and tried to set Enable embedded skins false, but it led to no effect.

Yesterday, on RadControls ASP.NET AJAX Q1 2008 build 1.619 every thing have been working pretty fine.

Now, on pages which don't contain radScheduler everuthing seems to be working fine, too (but I've had no time for thoroughly testing yet)

Thanks you for your help

4 Answers, 1 is accepted

Sort by
T. Tsonev
Telerik team
answered on 25 Jul 2008, 10:39 AM
Hello Vladimir,

Can you please give us some more details and preferably a code sample that results in this problem? I have tried simply adding it on the page, but this seems to work. I am sorry for the inconvenience.

Kind regards,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Top achievements
Rank 1
answered on 25 Jul 2008, 10:50 AM
Hello Tsvetomir.
Unfortunately, I cannot provide a sample solution now.
But as I wrote I have a user control based on RadScheduler

        internal URadScheduler(IComponent calendarComponent)
            : base(calendarComponent)
            m_compCalendar = Component as HomeCalendare;
            m_radScheduler.ID += "radScheduler";

            m_radScheduler.SelectedView = m_compCalendar.Sheduler.SelectedView;
            m_radScheduler.SelectedDate = m_compCalendar.Sheduler.SelectedDate;
            m_radScheduler.EnableDatePicker = false;
            m_radScheduler.DayStartTime = new TimeSpan(8, 0, 0);
            m_radScheduler.DayEndTime = new TimeSpan(20, 0, 0);
            m_radScheduler.EnableViewState = false;
            m_radScheduler.ReadOnly = false;
            m_radScheduler.DisplayDeleteConfirmation = true;
            //m_radScheduler.EnableEmbeddedScripts = false;
            CultureInfo ci = new CultureInfo(CultureInfo.CurrentCulture.TextInfo.CultureName);
            CultureInfo lanCulture = CultureInfo.GetCultureInfo(CultureInfo.GetCultureInfoByIetfLanguageTag(DicoContext.Current.LanguageISO).TextInfo.CultureName);
            ci.DateTimeFormat.DayNames = lanCulture.DateTimeFormat.DayNames;
            ci.DateTimeFormat.ShortestDayNames = lanCulture.DateTimeFormat.ShortestDayNames;
            ci.DateTimeFormat.AbbreviatedDayNames = lanCulture.DateTimeFormat.AbbreviatedDayNames;
            ci.DateTimeFormat.AbbreviatedMonthNames = lanCulture.DateTimeFormat.AbbreviatedMonthNames;
            ci.DateTimeFormat.AbbreviatedMonthGenitiveNames = lanCulture.DateTimeFormat.AbbreviatedMonthGenitiveNames;
            ci.DateTimeFormat.MonthNames = lanCulture.DateTimeFormat.MonthNames;
            ci.DateTimeFormat.MonthGenitiveNames = lanCulture.DateTimeFormat.MonthGenitiveNames;
            m_radScheduler.Culture = ci;
            m_radScheduler.FirstDayOfWeek = CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek;
            m_radScheduler.LastDayOfWeek = DocContext.Current.DocGen.LastDayOfWeek(CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek);
            m_radScheduler.Localization.HeaderToday = new CodeDico (BlContext.Current.Layer.Config.Labels("SchedulerTodayName")).Text;
            m_radScheduler.Localization.HeaderDay = new CodeDico(BlContext.Current.Layer.Config.Labels("SchedulerDayName")).Text;
            m_radScheduler.Localization.HeaderWeek = new CodeDico(BlContext.Current.Layer.Config.Labels("SchedulerWeekName")).Text;
            m_radScheduler.Localization.HeaderMonth = new CodeDico(BlContext.Current.Layer.Config.Labels("SchedulerMonthName")).Text;
            m_radScheduler.Localization.AllDay = new CodeDico(BlContext.Current.Layer.Config.Labels("SchedulerAlldayName")).Text;
            m_radScheduler.Localization.Show24Hours = new CodeDico(BlContext.Current.Layer.Config.Labels("SchedulerShow24hoursName")).Text;
            m_radScheduler.Localization.ShowBusinessHours = new CodeDico(BlContext.Current.Layer.Config.Labels("SchedulerShowBusinessHoursName")).Text;
            m_radScheduler.Localization.HeaderTimeline = new CodeDico(BlContext.Current.Layer.Config.Labels("SchedulerHeaderTimeline")).Text;
            m_radScheduler.ShowFullTime = m_compCalendar.Sheduler.ShowFullTime;
            m_radScheduler.TimelineView.UserSelectable = false;
            m_compCalendar.Language = DicoContext.Current.CurrentLan;
            m_compCalendar.Sheduler = m_radScheduler;
            m_radScheduler.OnClientAppointmentContextMenu = String.Format("ContextMenuHandler");

            DataKeyFieldName = "Key";
            DataSubjectFieldName = "Subject";
            DataStartFieldName = "Start";
            DataEndFieldName = "End";
            m_radScheduler.PreRender += OnPreRender;
            StartDate = m_radScheduler.VisibleRangeStart;
            EndDate = m_radScheduler.VisibleRangeEnd;

        protected override void CreateChildControls()
            ram = ((IPortiaPage)Page).AjaxManager;       
            t.ID = "TableTrans";
            tr.ID = "RowTrans";
            tc.ID = "CellTrans";
            ram.EnableViewState = false;

            ContextMenuElementTarget target = new ContextMenuElementTarget();
            target.ElementID = m_radScheduler.ClientID;

            RadMenuItem headerItem = new RadMenuItem(new CodeDico(BlContext.Current.Layer.Config.Labels("ContextMenuTitleName")).Text);
            headerItem.Width = Unit.Pixel(130);
            headerItem.Enabled = false;
            headerItem.Attributes["id"] = "HeaderItem";

            RadMenuItem editItem = new RadMenuItem(new CodeDico(BlContext.Current.Layer.Config.Labels("ContextMenuEditName")).Text);
            editItem.Value = "Edit";
            editItem.Width = Unit.Pixel(130);
            editItem.Attributes["id"] = "EditItem";

            RadMenuItem deleteItem = new RadMenuItem(new CodeDico(BlContext.Current.Layer.Config.Labels("ContextMenuDeleteName")).Text);
            deleteItem.Width = Unit.Pixel(130);
            deleteItem.Value = "Delete";
            deleteItem.Attributes["id"] = "DeleteItem";

            menu.EnableAjaxSkinRendering = false;
            menu.EnableEmbeddedSkins = false;
            menu.Skin = "Default2006";
            menu.OnClientItemClicked = "appointmentContextMenuItemClicked";
            menu.ID += "AppointmentMenu";
            m_radScheduler.OnClientAppointmentInserting = "AppointmentInsertingHandler";
            m_radScheduler.OnClientAppointmentEditing = "AppointmentEditingHandler";
            m_radScheduler.OnClientAppointmentDeleting = "AppointmentDeletingHandler";
            m_radScheduler.OnClientAppointmentMoving = "AppointmentMovingHandler";
            m_radScheduler.NavigationCommand += OnNavigationCommand;

            panel.ID = "AjaxPanel";


            RadAjaxLoadingPanel ralp = ((IPortiaPage)Page).AjaxLoadingPanel;
            ram.AjaxRequest += AjaxRequest;

As you see it is a localized RadScheduler with RadContextMenu.
Both RadScheduler and RadContextMenu are used only on this page which gives us an error.
Another components of our page are common for all other pages, and till this moment no problems have been found.

My HttpWatchProfessional returns 404 on two requests for
 00:01:13.871    1.778    649    2344    GET    404    text/html; charset=utf-8    http://localhost/Project70/WebResource.axd?d=emgHZYctqAilaCN4DrLJbPlvn0VFRd5LyqeICekStb27ZAU78iT7Qt58Wd4f69XPpzsqnX_nUrMfv2dddsumc4blQuRDY-L6v91Oyno0Njg1&t=633523223260000000

 00:01:13.876    2.892    649    2344    GET    404    text/html; charset=utf-8    http://localhost/Project70/WebResource.axd?d=emgHZYctqAilaCN4DrLJbPlvn0VFRd5LyqeICekStb27ZAU78iT7Qt58Wd4f69XPYAW9cL9qVk-313dO9vxDPb1PxJ9scgeMqew7oCoQz6k1&t=633523223260000000

It seems to be not telerik requests but unfortunately it started immediately after I've implemented Q2 2008 instead of Q1 2008 SP2

Top achievements
Rank 1
answered on 25 Jul 2008, 11:51 AM
The problem seems to be resolved

What’s New in RadControls for ASP.NET AJAX Q2 2008 (Version Number 2008.2.723):

Common for all controls:

Removed obsolete Mac skin (Default2006 stays embedded in the assembly). Added new Gray skin and updated Telerik, Black, Inox and WebBlue skins.

But no one of the controls supports skin default2006 in spite of declaring that it is embedded

T. Tsonev
Telerik team
answered on 25 Jul 2008, 12:53 PM
Hi Vladimir,

You are correct, there is a problem with the Default2006 skin with embedded skins enabled. But in your case the RadContextMenu was configured to use external skins, so this should not be causing the WebResource problem. I am curios what was causing the problem and how did you manage to solve it.

As for the Default2006 skin, please open a formal support ticket, so we can send you a hotfix.

Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Asked by
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Top achievements
Rank 1
Share this question