We just upgraded our web server from Windows Server 2003 R2 with IIS 6.? to Windows Server 2012 R2 with IIS 8.5.9600.
We also upgraded the Telerik controls from 2010.3.1317.35 to 2016.2.607.35.
A very simplified page example is:
<body> <form id="form1" runat="server"> <asp:HiddenField ID="hfToolId" runat="server" /> <asp:HiddenField ID="hfTempDirectory" runat="server" /> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"> </telerik:RadScriptManager> <asp:Button ID="Button1" runat="server" Text="Button" /> <div> <telerik:RadFileExplorer ID="rfeDocs" runat="server" OnClientFileOpen="OnClientFileOpen" DisplayUpFolderItem="false" EnableCreateNewFolder="false" Width="100%"> <Configuration SearchPatterns="*.*" MaxUploadFileSize="104857600" /> </telerik:RadFileExplorer> </div> </form></body>
Its associated code behind is:
01.Partial Class _Default02. Inherits System.Web.UI.Page03. 04. Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load05. SetupFileExplorer()06. End Sub07. 08. Private Sub SetupFileExplorer()09. Dim controls As Telerik.Web.UI.FileExplorer.FileExplorerControls = 010. Dim di As IO.DirectoryInfo11. Dim newTempDirectory As String = String.Empty12. Dim path(0) As String13. Dim s = CType(rfeDocs.FindControl("splitter"), RadSplitter)14. Dim toolId As Integer15. 16. If IsNumeric(hfToolId.Value) Then17. toolId = CInt(hfToolId.Value)18. ElseIf Request.QueryString("equipmentid") IsNot Nothing Then19. toolId = CInt(Request.QueryString("equipmentid"))20. Else21. toolId = 022. End If23. 24. For Each item As RadToolBarItem In rfeDocs.ToolBar.Items25. If TypeOf item Is RadToolBarButton Then26. CType(item, RadToolBarButton).CausesValidation = False27. End If28. Next29. 30. If toolId > 0 Then31. path(0) = Page.ResolveUrl("~/Tools/" & toolId.ToString())32. ElseIf Not String.IsNullOrEmpty(hfTempDirectory.Value) Then33. path(0) = Page.ResolveUrl("~/Tools/" & hfTempDirectory.Value)34. Else35. newTempDirectory = Request.LogonUserIdentity.Name().Split(New Char() {"\"c})(1) & Now.Ticks36. hfTempDirectory.Value = newTempDirectory37. path(0) = Page.ResolveUrl("~/Tools/" & newTempDirectory)38. End If39. 40. 41. di = New IO.DirectoryInfo(Server.MapPath(path(0)))42. 43. If Not di.Exists Then44. di.Create()45. End If46. 47. rfeDocs.Configuration.ViewPaths = path48. rfeDocs.Configuration.UploadPaths = path49. rfeDocs.Configuration.DeletePaths = path50. 51. rfeDocs.Upload.InitialFileInputsCount = 152. rfeDocs.InitialPath = path(0)53. rfeDocs.Upload.EnableFileInputSkinning = False54. rfeDocs.Grid.MasterTableView.TableLayout = GridTableLayout.Fixed55. rfeDocs.Grid.ClientSettings.AllowRowsDragDrop = False56. rfeDocs.Grid.ClientSettings.Resizing.ResizeGridOnColumnResize = True57. rfeDocs.VisibleControls = FileExplorer.FileExplorerControls.Toolbar Or FileExplorer.FileExplorerControls.Grid58. 59. End Sub60. 61. Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click62. 'just to force page postback63. End Sub64.End Class
The user would normally fill out a form, click a save button (which would cause the postback), then upload files via the RadFileExplorer control. Prior to the server upgrades, the code worked fine, after the upgrades, the page fails on line 51 in the code behind. The rfeDocs.Upload object/property is null/nothing.
Is there anything incorrect with the page for the new version?
Thank you,
James

Good day,
I'm trying to use RadAsyncUpload to upload various document types (PDF, doc, docx).
On my iPad, when I click the "Select" button, I only have the option to upload images (see attached).
While searching for an answer, I came across this old blog post indicating it should be possible to upload files from iOS devices: http://www.telerik.com/blogs/uploading-files-with-telerik-s-asp-net-async-upload-control-more-flexible-than-ever
My question is: are images the only filetype that can be uploaded with iOS devices with the RadAsyncUpload control? If not, how can I set it so I can upload PDF/doc/etc?
Thank you!
My code snippet:
<telerik:RadAsyncUpload ID="uploadCV" runat="server" Skin="MetroTouch" UseApplicationPoolImpersonation="true" AutoAddFileInputs="false" InitialFileInputsCount="1" AllowedFileExtensions="pdf,doc,docx" MaxFileInputsCount="1" ToolTip="Upload your C.V." OnClientFileUploaded="fileUploaded" EnableInlineProgress="true" MultipleFileSelection="Disabled"></telerik:RadAsyncUpload>Hello.
After update my Telerik dll's, i have encountered the exception described in the title (RadPersistenceManagerProxy - Controls should have unique UniqueKey properties).
When i was running the version 2013.1.403.40, my application works good, but running the version 2015.1.401.40, I got the exception described before.
Thanks for your help.
Regards,
Alexis.
I've got an aspx page, and in the code behind, I'm building a list of Telerik.Web.UI.Appointment objects, and setting the datasource of the RadScheduler to that list.
For each appointment object I'm adding several attributes to it. Things like CusomerID.
appt.Attributes.Add("CustomerID", 23);
I need to get at this information client side. From the documentation, it appears to me that this should work, but it does not.
var appt = eventArgs.get_appointment();
var list = appt.get_attributes();
var attr = list.getAttribute('CustomerID');
When I run this, attr is always undefined.
So, what is my problem? Am I not adding the attributes in the correct way on the server side, or is something messed up with my client side call?

Hi
I have used the custom provider to upload to my amazon s3 bucket. I have set the SubfolderStructure to a path (lets sat abc/def ) but I want to be able to append to this at runtime based on the type of file I am uploading (or a parameter/setting I can set on the control or page), ie keep my images files in my abc/def/images folder and for docs use abc/def/docs so all I need do is store the value "images" or "docs" on the page and pass this to the provider at runtime and append to the SubfolderStructure. I guess a attribute called Path on the RadCloudUpload control would do the job but I couldn't see one?
So my question is, what's the best way of getting a parameter from the page to the provider?
Thanks
Tim

Hi,
.NET provides a standard mechanism to resolve any needed assembly via the AssemblyResolve event (https://msdn.microsoft.com/en-us/library/system.appdomain.assemblyresolve(v=vs.110).aspx).
Besides self-implementing this event there are tools (like SmartAssembly) which use this mechanism.
We use this mechanism to make application deployment (including ASP.NET applications) as painless and easy as possible.
With Telerik ASP.NET this does not work :-(
Please provide some way/sample/API to make it possible to embed Telerik ASP.NET assemblies.
Thanks in advance.
Best Regards
Yahia El-Qasem
Hello,
I have a Radnavigation usercontrol that is registered on a page (<%@ Register Src="../controls/NavPanelAdmin.ascx" TagName="NPA" TagPrefix="ucNPA" %>)
I need to select that radnav items based on the item click (serverside)
When i perform a search for the control in the page that has the UC registered i am able to find the RADNAV but i cannot access it due to the following error
Unable to cast object of type 'ASP.controls_navpaneladmin_ascx' to type 'Telerik.Web.UI.RadNavigation'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidCastException: Unable to cast object of type 'ASP.controls_navpaneladmin_ascx' to type 'Telerik.Web.UI.RadNavigation'.Source Error: Line 274: controlList.Add(c.ID) Line 275: If c.ID = "mymenu123" Then Line 276: Dim smenu As RadNavigation = c Line 277: smenu.ForeColor = Drawing.Color.Aquamarine Line 278: End IfStack Trace: [InvalidCastException: Unable to cast object of type 'ASP.controls_navpaneladmin_ascx' to type 'Telerik.Web.UI.RadNavigation'.]
Private Sub ListControlCollections() Dim controlList As New ArrayList() AddControls(Page.Controls, controlList) For Each str As String In controlList Response.Write(str & Convert.ToString("<br/>")) Next Response.Write("Total Controls:" + controlList.Count.ToString)End SubPrivate Sub AddControls(page As ControlCollection, controlList As ArrayList) For Each c As Control In page If c.ID IsNot Nothing Then controlList.Add(c.ID) If c.ID = "mymenu123" Then Dim smenu As RadNavigation = c smenu.ForeColor = Drawing.Color.Aquamarine End If End If If c.HasControls() Then AddControls(c.Controls, controlList) End If NextEnd Sub

