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

MasterPage causing Server Error

4 Answers 29 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Christoph
Top achievements
Rank 1
Christoph asked on 02 Sep 2013, 03:47 PM
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

4 Answers, 1 is accepted

Sort by
0
Christoph
Top achievements
Rank 1
answered on 04 Sep 2013, 08:05 AM
Can nobody help me?

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

Thanks in advance

br
Christoph
0
Hristo Valyavicharski
Telerik team
answered on 05 Sep 2013, 10:59 AM
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.
0
Christoph
Top achievements
Rank 1
answered on 05 Sep 2013, 11:18 AM
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
0
Peter Filipov
Telerik team
answered on 10 Sep 2013, 10:09 AM
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.
Tags
AsyncUpload
Asked by
Christoph
Top achievements
Rank 1
Answers by
Christoph
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Peter Filipov
Telerik team
Share this question
or