MasterPage causing Server Error

5 posts, 0 answers
  1. Christoph
    Christoph avatar
    3 posts
    Member since:
    Aug 2013

    Posted 02 Sep 2013 Link to this post

    Hi,

    I have a Problem with the Telerik AsyncUpload Control. I'm using VS2010 Pro.

    When I'm using this control in a single Webpage it works:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <head runat="server">
        <title></title>
        <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    </head>
    <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <script type="text/javascript">
            //Put your JavaScript code here.
        </script>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <div>
     
        </div>
         
        <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server"
            MultipleFileSelection="Automatic" TargetFolder="C:\TEMP">
        </telerik:RadAsyncUpload>
        <telerik:RadProgressArea ID="RadProgressArea1" runat="server">
        </telerik:RadProgressArea>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Upload" />
        </form>
    </body>
    </html>

    when I'm adding a masterpage it throws me an error (see screenshot).
    Here is the Code of the masterpage:
    <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="WebAppTelerik2.Site1" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <head runat="server">
        <title> TEST </title>
        <asp:ContentPlaceHolder ID="head" runat="server">
        </asp:ContentPlaceHolder>
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:Label ID="lbltest" runat="server" Text="Test Label" />
        <div>
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
             
            </asp:ContentPlaceHolder>
        </div>
        </form>
    </body>

    and the code of the contentpage:
    <%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebAppTelerik2.ChildPage" %>
     
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <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>
    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" ChunkSize="0">
    </telerik:RadAsyncUpload>
    </asp:Content>

    Do anyone have an idea whats the Problem.

    I don't understand, why it's throwing the error and why it wants to load a SharePoint assembly...

    Edit:
    I do have SharePoint Foundation and SQL Express installed on the dev machine, but I think this shouldn't have something to do with this Problem.

    Thanks for your help

    br
    Christoph

  2. Christoph
    Christoph avatar
    3 posts
    Member since:
    Aug 2013

    Posted 04 Sep 2013 Link to this post

    Can nobody help me?

    If I'm doing something wrong, please tell me.

    Thanks in advance

    br
    Christoph
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 05 Sep 2013 Link to this post

    Hi Christoph,

    Pasted code does not refer/require Sharepoint assemblies. Probably your project has reference to this assembly. Try to remove the it and verify that this assembly does not exist in your Bin folder, clean and rebuild the project.

    Regards,
    Hristo Valyavicharski
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  5. Christoph
    Christoph avatar
    3 posts
    Member since:
    Aug 2013

    Posted 05 Sep 2013 Link to this post

    Hi,

    thanks for your reply. I don't have a reference to the SharePoint assembly (see Screenshot attached). But I have the dll in the bin Folder. When I delete the file and clean/rebuild the solution the dll file is back in the bin Folder.

    Is there a possibility to send you the Solution?

    br
    Christoph
  6. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 10 Sep 2013 Link to this post

    Hello Christopher,

    Could you please open a support ticket and send me your sample to test it locally. Also check your web config for a reference to the mentioned dll.

    Regards,
    Peter Filipov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017