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

GridAttachmentColumn

1 Answer 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dev79
Top achievements
Rank 1
dev79 asked on 18 Nov 2010, 06:39 PM
Hello,

I was testing out the demo for the GridAttachmentColumn directly from the demo page - http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/gridattachmentcolumn/defaultcs.aspx and while I tried uploading a file from both a Local and Network Drives, I keep getting a 'Sorry couldn't find a page' error.  I have tried in both Internet Explorer 7 and FireFox 3.6.12 browsers. 

Also, I have developed a page using the most current RadControls for ASP.NET AJAX Q3 2010. Although uploading and viewing the file (.XLSX) from a local drive did not have any errors, however viewing the file after uploading from a Network drive produced this error:

Unterminated string passed in. (61): {"ID":30,"ColumnUniqueName":"AttachmentColumn","FileName":"G:

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.ArgumentException: Unterminated string passed in. (61): {"ID":30,"ColumnUniqueName":"AttachmentColumn","FileName":"G:

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Unterminated string passed in. (61): {"ID":30,"ColumnUniqueName":"AttachmentColumn","FileName":"G:]
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeString() +543643
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) +233
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) +422
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) +147
   System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) +51
   System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) +37
   System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(String input) +70
   Telerik.Web.UI.GridCommandEventArgsFactory.CreateGridCommandEventArgs(GridItem item, Object commandSource, CommandEventArgs originalArgs) +676
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +105
   Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +46
   Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +8614
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Do you know how I can fix this problem?

Thank you

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 22 Nov 2010, 10:16 AM
Hello dev79,

It seems the characters in the name of the uploaded files are breaking the serialization on the server. Try renaming your file so that the name does not contain any quotes or special characters. Ideally, try with alphanumeric characters only.

Veli
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
dev79
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or