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

Could not create type 'SilverlightApplicationTelerik.Web.Handler1'.

1 Answer 115 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Vladimir
Top achievements
Rank 1
Vladimir asked on 09 Feb 2011, 05:33 AM

I am trying to develop generic upload handler for RadUpload control. Here is an error message:
 
 

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: Could not create type 'SilverlightApplicationTelerik.Web.Handler1'.

Source Error:

Line 1: <%@ WebHandler Language="C#" CodeBehind="Handler1.ashx.cs" Class="SilverlightApplicationTelerik.Web.Handler1" %>

Source File: /Handler1.ashx    Line: 1

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1


Here is source code which compiles just fine:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SilverlightApplicationTelerik.Web
{
   
  
    public class MyHandler : Telerik.Windows.RadUploadHandler
    {
  
    }  
   
}

Reference to Telerik.Windows.RadUploadHandler was added to SilverlightApplicationTelerik.Web project (see attached image)

Any ideas?

Thank you in advance.

Vladimir

1 Answer, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 11 Feb 2011, 12:19 PM
Hello Vladimir,

The error shows that a type Handler1 cannot be found. As far as I can see from your screenshot, your RadUploadHandler is MyHandler and not Handler1. Perhaps you can try using MyHandler instead of Handler1. Let me know if I am missing something.

Best wishes,
Alex Fidanov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Upload
Asked by
Vladimir
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Share this question
or