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

0x800a139e - Master Pages

1 Answer 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 22 Jul 2014, 02:40 PM

Hi,

I'm developing a web site using .Net 4.5, recently upgraded telerik from Bin40 to Bin45.

I have a parent master page, a nested master page that is use by the child  page with the issue.
the parent master page is a plain page (no telerik), the nested master page has telerik controls and contains the RadScriptManager, the child page uses the nested master page and its RadScriptManager.

Please let me know if you need more information. Thanks!

Unhandled exception at line 15, column 16485 in http://localhost:62340/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=MainContent_ScriptManagerDetail_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:fa6755fd-da1a-49d3-9eb4-1e473e780ecd:ea597d4b:b25378d2;Telerik.Web.UI:en-US:68d9452f-f268-45b2-8db7-8c3bbf305b8d:16e4e7cd:f7645509:22a6274a:88144a7a:7c926187:8674cba1:b7778d6c:c08e9f8a:59462f1:a51ee93e:24ee1bba:f46195d3:2003d0b8:1e771326:aa288e2d:258f1c72:82923ac3:52af31a4:58366029
0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

web.config

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
      <section name="CAFS.Web.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
  </configSections>
  <appSettings>
    ...
  </appSettings>

  <!--
    For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.

    The following attributes can be set on the <httpRuntime> tag.
      <system.Web>
        <httpRuntime targetFramework="4.5.1" />
      </system.Web>
  -->
  <system.web>
    <compilation debug="true" targetFramework="4.5.1" >
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      </assemblies>
    </compilation>
    <authentication mode="Windows"/>
    <authorization>
      <allow roles="ADGROUP"/>
      <deny users="*"/>
    </authorization>
    <customErrors mode="RemoteOnly" defaultRedirect="~/Error/ErrorGeneric.aspx"/>
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    </httpHandlers>
  </system.web>
  <system.diagnostics>
    <switches>
      <add name="sysLogSwitch" value="All"/>
      <add name="operationLogSwitch" value="All"/>
    </switches>
    <sources>
      <source name="sysLogSource" switchName="sysLogSwitch" switchType="System.Diagnostics.SourceSwitch">
        <listeners>
          <clear/>
        </listeners>
      </source>
      <source name="operationLogSource" switchName="operationLogSwitch" switchType="System.Diagnostics.SourceSwitch">
        <listeners>
          <clear/>
        </listeners>
      </source>
    </sources>
  </system.diagnostics>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    <validation validateIntegratedModeConfiguration="false"/>
    <handlers>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
    </handlers>
  </system.webServer>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"/>
  </runtime>
  <applicationSettings>
      <!--SOME STTINGS HERE WS -->
  </applicationSettings>
</configuration>

Master Page
<%@ Master Language="C#" CodeBehind="Site.master.cs" Inherits="CAFS.Web.SiteMaster" %>...

Nested Master Page

<%@ Master Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Detail.master.cs" Inherits="CAFS.Web.Detail" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

<script type="text/javascript">

function OnClientFilesUploaded(sender) {

--JSCODE HERE--

 

 

}

 

 

</script>

<telerik:RadScriptManager ID="ScriptManagerDetail" runat="server" ScriptMode="Release" EnablePartialRendering="true">

<Scripts>

<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>

<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>

<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>

</Scripts>

</telerik:RadScriptManager>
......

Child Page:
<%@ Page Title="" Language="C#" MasterPageFile="~/Detail.Master" CodeBehind="ManageAppeal.aspx.cs" Inherits="CAFS.Web.ManageAppeal"

EnableEventValidation="false" ValidateRequest="true" AutoEventWireup="true" EnableViewState="true" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

...

1 Answer, 1 is accepted

Sort by
0
Steve
Top achievements
Rank 1
answered on 22 Jul 2014, 06:02 PM
Hi,

I figured it out.
The issue was due to a redirect page within an update panel, had nothing to do with Telerik controls. The resolution is available at: http://stackoverflow.com/questions/7913549/response-redirect-not-working-in-ajax

Thanks!
Tags
General Discussions
Asked by
Steve
Top achievements
Rank 1
Answers by
Steve
Top achievements
Rank 1
Share this question
or