Cassini Problem

4 posts, 0 answers
  1. Laurent
    Laurent avatar
    6 posts
    Member since:
    Oct 2012

    Posted 01 Feb 2012 Link to this post

    Hello,
    I use the Microsoft CRM Dynamics where I implement custom page using the splitter.
    I have activate the CRM outlook Offline for my projet where I have the same page like in my CRM Online.
    Whene I'm in offline outlook use Cassini for use the crm Offline and my custom page.
    When the page custom load I have a Javascript error : Microsoft JScript runtime error: 'Telerik' is undefined
    This is the error at the first line : Telerik.Web.UI.RadSplitter._preInitialize("UC_ElementMaster1_SplitterFrame")
    <script type="text/javascript">
    <!--
    Telerik.Web.UI.RadSplitter._preInitialize("UC_ElementMaster1_SplitterFrame");Telerik.Web.UI.RadPane._preInitialize("UC_ElementMaster1_LeftPane", "UC_ElementMaster1_SplitterFrame", "", "UC_ElementMaster1_VerticalSplitBar",  0, 0, "False");
    WebForm_InitCallback();var UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data = new Object();
    UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.images = UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_ImageArray;
    UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.collapseToolTip = "Collapse {0}";
    UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.expandToolTip = "Expand {0}";
    UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.expandState = theForm.elements['UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_ExpandState'];
    UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.selectedNodeID = theForm.elements['UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_SelectedNode'];
    UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.hoverClass = 'UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_3';
    UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.hoverHyperLinkClass = 'UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_2';
    for (var i=0;i<6;i++) {
    var preLoad = new Image();
    if (UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_ImageArray[i].length > 0)
    preLoad.src = UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_ImageArray[i];
    }
    UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.lastIndex = 0;
    UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.populateLog = theForm.elements['UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_PopulateLog'];
    UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.treeViewID = 'UC_ElementMaster1:UC_TreeviewElement1:treeviewElement';
    UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data.name = 'UC_ElementMaster1_UC_TreeviewElement1_treeviewElement_Data';
    Telerik.Web.UI.RadSplitBar._preInitialize("UC_ElementMaster1_VerticalSplitBar", "UC_ElementMaster1_SplitterFrame", "UC_ElementMaster1_LeftPane", "UC_ElementMaster1_ContentPane", 1, 0);Telerik.Web.UI.RadPane._preInitialize("UC_ElementMaster1_ContentPane", "UC_ElementMaster1_SplitterFrame", "UC_ElementMaster1_VerticalSplitBar", "",  2, 1, "True");
    theForm.oldSubmit = theForm.submit;
    theForm.submit = WebForm_SaveScrollPositionSubmit;

    Do you have an idea? a solution?
    Thank you
    Regards

    This is my Web.config page.
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <configSections>
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a6u861955e089" >
          <section name="Treeview.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a6u861955e089" requirePermission="false" />
     </sectionGroup>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
            <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
              <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
              <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
              <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
              <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
            </sectionGroup>
          </sectionGroup>
        </sectionGroup>
      </configSections>
      <connectionStrings>
        <add name="TEST1" connectionString="Provider=SQLOLEDB;Data Source=Sev1\CRM;Initial Catalog=MSCRM_MSDE;Integrated Security=SSPI" providerName="SQLOLEDB" />
        <add name="TEST2" connectionString="Provider=SQLOLEDB;Data Source=Sev1\CRM;Initial Catalog=MSCRM_MSDE;Integrated Security=SSPI" providerName="SQLOLEDB"/>
      </connectionStrings>
      <system.web>
        <httpRuntime executionTimeout="300" maxRequestLength="8192"/>
        <httpModules>
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </httpModules>
        <httpHandlers>
          <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"  validate="false" />
          <remove verb="*" path="*.asmx"/>
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>
          <add path="trace.axd" verb="*" type="System.Web.Handlers.TraceHandler" validate="True" />           
          <add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />           
          <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>           
          <add path="*.axd" verb="*" type="System.Web.HttpNotFoundHandler" validate="True" />
          </httpHandlers>
        <compilation defaultLanguage="C#" debug="false">
          <assemblies>
            <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add assembly="Microsoft.Crm, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add assembly="Microsoft.Crm.Sdk, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add assembly="Microsoft.Crm.SdkTypeProxy, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add assembly="Microsoft.Crm.Platform.Sdk, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
          </assemblies>
        </compilation>
        <authentication mode="Windows" />
        <identity impersonate="true" />
        <xhtmlConformance mode="Legacy" />
        <pages buffer="true" enableSessionState="true" enableViewState="true" validateRequest="false">
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          </controls>
        </pages>
        <sessionState mode="InProc" cookieless="false" timeout="20"/>
      </system.web>
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules>
          <remove name="ScriptModule" />
          <add name="ScriptModule" preCondition="classicMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </modules>
        <handlers>
          <remove name="WebServiceHandlerFactory-Integrated"/>
          <remove name="ScriptHandlerFactory" />
          <remove name="ScriptHandlerFactoryAppServices" />
          <remove name="ScriptResource" />
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
                     type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
                     type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*"    type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2011.3.1115.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />  
          </handlers>
      </system.webServer>
      <runtime>
        <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
      <location path="MSCRMServices">
        <system.web>
          <httpRuntime maxRequestLength="8192"/>
          <webServices>
            <!-- configuring the reflector + format extension for custom WSDL generation -->
            <soapExtensionReflectorTypes>
              <add type="Microsoft.Crm.Sdk.CrmServiceSoapExtensionReflector, Microsoft.Crm.WebServices" />
            </soapExtensionReflectorTypes>
            <conformanceWarnings>
              <remove name='BasicProfile1_1'/>
            </conformanceWarnings>
          </webServices>
        </system.web>
      </location>
    <location path="Telerik.Web.UI.WebResource.axd">
        <system.web>
            <authorization>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>
      <appSettings>
        <!-- Trace management -->
        <add key="TracePath" value="C:\\log\\"/>
        <add key="TraceEnabled" value="true"/>
        <add key ="CrmServerName" value ="localhost:2525"/>
        <!--If Crm Web site is not installed on port 80, set in "CrmServerName" key with value ="SERVER_NAME:1234"-->
        <add key ="TEST1TreeViewWebService" value ="http://localhost:3341/Service1.asmx"/>
        <add key ="CrmOrganization" value ="ElementIE"/>
        <add key="HelpCatalogName" value="Microsoft CRM Help"/>
        <add key="DevErrors" value="On"/>
        <add key="ClientType" value="Outlook"/>
        <add key="ReportViewerMessages" value="Microsoft.Crm.Web.Reporting.CrmReportViewerMessages, Microsoft.Crm.Application.Outlook.Pages, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
       </appSettings>
      <applicationSettings>
        <!--
         Settings used for the Element Offline
        -->
        <Treeview.Properties.Settings>
          <setting name="Treeview_wr_crmservice_CrmService" serializeAs="String">
            <value>http://localhost:2525/MSCrmServices/2007/CrmService.asmx</value>
          </setting>
        </Treeview.Properties.Settings>
      </applicationSettings>
    </configuration>

     This is my custom page. There is not any c# code linked to the splitter.
    ASCX :
    <%@ Assembly Name="CRMDataAccess" %>
    <%@ Assembly Name="GenericElement" %>
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UC_ElementMaster.ascx.cs"
        Inherits=".Generic.Element.UserControls.UC_ElementMaster" EnableViewState="true" %>
    <%@ Register Src="UC_TreeviewElement.ascx" TagName="UC_TreeviewElement" TagPrefix="uc1" %>
    <%@ Register Src="UC_TabContent.ascx" TagName="UC_TabContent" TagPrefix="uc2" %>
    <%@ Register Src="UC_SearchResult.ascx" TagName="UC_SearchResult" TagPrefix="uc3" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <Div id="GeneralTable" style="height: 100%; width: 100%; overflow: hidden; padding: 0px;
        margin: 0px">
        <telerik:RadSplitter ID="SplitterFrame" runat="server" Height="100%"
            Width="100%" Skin="Windows7" >
            <telerik:RadPane ID="LeftPane" runat="server" overflow="auto">
                <uc1:UC_TreeviewElement ID="UC_TreeviewElement1" runat="server" />
            </telerik:RadPane>
            <telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Forward" />
            <telerik:RadPane ID="ContentPane" runat="server" Scrolling="Both">
                <uc2:UC_TabContent ID="UC_TabContent1" runat="server"  />
                <uc3:UC_SearchResult ID="UC_SearchResult1" runat="server" />
            </telerik:RadPane>
        </telerik:RadSplitter>
    </Div>
     
    ASPX :
     
    <%@ Assembly Name="CRMDataAccess" %>
    <%@ Assembly Name="GenericElement" %>
     
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Publishing.aspx.cs" Inherits="Generic.Element.Publishing" EnableViewState="true" MaintainScrollPositionOnPostback="true" %>
     
    <%@ Import Namespace="Generic.Element.UserControls" %>
    <%@ Import Namespace="Generic.Element" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <%@ Register Src="UserControls/UC_ElementMaster.ascx" TagName="UC_ElementMaster"
        TagPrefix="uc1" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" style="overflow:hidden">
    <head id="Head1" runat="server">
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
        <base target="_self"></base>
        <title><%=GetElementName() %></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            </telerik:RadScriptManager>
            <div id="ParentDivElement" style="height: 100%;">
                <uc1:UC_ElementMaster ID="UC_ElementMaster1" runat="server" />
            </div>
            <asp:HiddenField ID="txtElementType" runat="server" />
        </form>
    </body>
    </html>

  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 06 Feb 2012 Link to this post

    Hi Laurent,

    According to the error message, it seems that the Telerik scripts are not loaded correctly on the page. Could you please try the suggestions from the following help articles:
    Web Resources Troubleshooting
    General Troubleshooting

    Kind regards,
    Dobromir
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Laurent
    Laurent avatar
    6 posts
    Member since:
    Oct 2012

    Posted 08 Feb 2012 Link to this post

    Hello Dobremir,
    Thank you for your help.
    I have already seen these pages and I implemented in my web.config the board described in the page by adding the lease.
    I also put all references in the web.config as shown.
    Unfortunately I still have the problem.
    Have you another idea?

    Regards
    Laurent
  5. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 13 Feb 2012 Link to this post

    Hi Laurent,

    Could you please, verify that the script files are actually loaded? Could you please sends us Fiddler’s log capturing in the load of the problematic page. You can find information of how to work with this useful tool at: http://www.ehow.com/how_5598400_use-fiddler-debugger.html and http://www.west-wind.com/weblog/posts/596348.aspx.

    Also, could you disable any firewall / antivirus software running on the computer to avoid the possibility that such software is preventing the scripts to load properly?

    All the best,
    Dobromir
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top