Isolation steps for Large File Upload demo?

5 posts, 0 answers
  1. weyer
    weyer avatar
    3 posts
    Member since:
    Nov 2014

    Posted 10 Dec 2014 Link to this post

    Has anyone gotten the Large File Upload demo to work as a standalone demo in IIS?  The Demo isolation steps listed with the Large File Upload demo are generic and don't all apply specifically to the Large File Upload demo.

    When I open the site I get the following error. There is no mention of the "MasterPage.master" file in the Demo isolation steps. Please advise:


    Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: The file '/MasterPage.master' does not exist.

    Source Error:

    Line 1: <%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="AsyncUpload.Examples.LargeFileUploads.DefaultCS"
    Line 2: MasterPageFile="~/MasterPage.master" %>
    Line 3:
    Source File: /DefaultCS.aspx Line: 1

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446
  2. weyer
    weyer avatar
    3 posts
    Member since:
    Nov 2014

    Posted 10 Dec 2014 Link to this post

    I forgot to include my files:

    DefaultCS.aspx:
    01.<%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="AsyncUpload.Examples.LargeFileUploads.DefaultCS" MasterPageFile="~/MasterPage.master" %>
    02. 
    03.<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    04.<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    05. 
    06.<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    07.</asp:Content>
    08. 
    09.<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    10. 
    11.    <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel">
    12. 
    13.         <qsf:ConfiguratorPanel ID="ConfiguratorPanel1" runat="server" Expanded="true">
    14.            <label>Chunk size: </label>
    15.            <telerik:RadDropDownList ID="RadDropDownList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="RadDropDownList_SelectedIndexChanged">
    16.                <Items>
    17.                    <telerik:DropDownListItem Text="1 Mb" Value="1048576" />
    18.                    <telerik:DropDownListItem Text="2 Mb" Value="2097152" />
    19.                    <telerik:DropDownListItem Text="3 Mb" Value="3145728" />
    20.                </Items>
    21.            </telerik:RadDropDownList>
    22.        </qsf:ConfiguratorPanel>
    23.          
    24.        <div class="qsf-demo-canvas qsf-demo-canvas-vertical" style="margin-top:50px">
    25.            <%-- For the purpose of this demo the files are discarded.
    26.             In order to store the uploaded files permanently set the TargetFolder property to a valid location. --%>
    27.            <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" ChunkSize="1048576" />
    28.            <telerik:RadProgressArea runat="server" ID="RadProgressArea1" />
    29.        </div> 
    30. 
    31.    </telerik:RadAjaxPanel>
    32. 
    33.</asp:Content>

    DefaultCS.aspx.cs:
    01.using System;
    02.using Telerik.Web.UI;
    03. 
    04.namespace AsyncUpload.Examples.LargeFileUploads
    05.{
    06.    public partial class DefaultCS : System.Web.UI.Page
    07.    {
    08.        protected void RadDropDownList_SelectedIndexChanged(object sender, DropDownListEventArgs e)
    09.        {
    10.            AsyncUpload1.ChunkSize = int.Parse(e.Value);
    11.        }
    12.    }
    13.}

    web.config:
    01.<?xml version="1.0" encoding="UTF-8"?>
    02.<configuration>
    03.    <system.webServer>
    04.        <security>
    05.            <requestFiltering>
    06.                <requestLimits maxAllowedContentLength="4294967294" />
    07.            </requestFiltering>
    08.        </security>
    09.        <defaultDocument>
    10.            <files>
    11.                <add value="DefaultCS.aspx" />
    12.            </files>
    13.        </defaultDocument>
    14.    </system.webServer>
    15.    <system.web>
    16.        <httpRuntime maxRequestLength="4194302" />
    17.    </system.web>
    18.</configuration>
  3. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 15 Dec 2014 Link to this post

    Hi,

    Please find the attached sample.

    I hope it helps.

    Regards,
    Hristo Valyavicharski
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  4. Patrick
    Patrick avatar
    1 posts
    Member since:
    Oct 2017

    Posted 24 Oct in reply to Hristo Valyavicharski Link to this post

    This sample is incomplete and doesn't work. I get parse errors http://www.trepstar.com/ul2/defaultvb.aspx  I try to reference MasterPageFile="~/MasterPage.master"  or simply MasterPageFile="MasterPage.master" and neither works.  I you guys can get a working sample I would be a customer.
  5. Vessy
    Admin
    Vessy avatar
    1660 posts

    Posted 25 Oct Link to this post

    Hi Patrick,

    You can find detailed steps on how to isolate any demo from our Demos Application in the following link:
    http://demos.telerik.com/aspnet-ajax/Common/QSFInstructions/Instructions.html

    For convenience I am attaching an isolated version of the demo discussed in this thread, so you can examine it at your end.

    Regards,
    Vessy
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top