C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Use file uploader as server file browser?

rated by 0 users
This post has 5 Replies | 1 Follower

Not Ranked
Posts 8
db_Krija Posted: Tue, Jun 16 2009 2:59 PM

 Is that possible? Let's say I have a silverlight app that would let the user save and open files in an account on the server. Would it be possible to do that with the file uploader control?

Another thing, I can't run your demo with the 30 silverlight controls. Nothing shows up. I'm running Windows 7 and Silverlight 3 beta.

Thanks for help!

Top 10 Contributor
Posts 1,144
C1_LeoV replied on Tue, Jun 16 2009 4:28 PM
Hi,

The uploader can certainly help you to upload the file to the server, to then save it.
Obviously, you will also need particular queries to retrieve the folder structure, etc.

About the samples, they were made for and only tested with Silverlight 2. The next version, going out on July, will be entirely made for SL3.

Anyway, do you see any particular error that could help us to track the issue?

Regards

Follow me: Twitter.com/leovernazza/

Not Ranked
Posts 8
db_Krija replied on Wed, Jun 17 2009 2:58 AM

 Thanks for the reply,

This is the error message from the VS 2008 debugger:

"Microsoft JScript runtime error: Sys.InvalidOperationException: ManagedRuntimeError error #4004 in control 'Xaml1': System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   at System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)
   at System.Double.Parse(String s)
   at ControlExplorer.Page.<FillFeatures>b__c(XElement pair)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at ControlExplorer.Page.FillFeatures(XElement root, Object parent, ItemsControl nodeItem)
   at ControlExplorer.Page.FillTree(XElement root, Object parent, ItemsControl nodeItem)
   at ControlExplorer.Page.FillControls(XElement root, Object parent, ItemsControl nodeItem)
   at ControlExplorer.Page.FillTree(XElement root, Object parent, ItemsControl nodeItem)
   at ControlExplorer.Page.FillCategories(XElement root, ItemsControl nodeItem)
   at ControlExplorer.Page.FillTree(XElement root, Object parent, ItemsControl nodeItem)
   at ControlExplorer.Page.PopulateControlTree()
   at ControlExplorer.Page.CreateControls()
   at ControlExplorer.Page..ctor()
   at ControlExplorer.App.Application_Startup(Object sender, StartupEventArgs e)
   at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)"

Top 10 Contributor
Posts 1,144
C1_LeoV replied on Wed, Jun 17 2009 8:42 AM
Hi,

Which is your Windows's language?
Because, it seems to be this issue.

We haven't updated the web site yet with the fixed version.

Thanks for the details.

Follow me: Twitter.com/leovernazza/

Not Ranked
Posts 8
db_Krija replied on Wed, Jun 17 2009 10:35 AM

 Perhaps it is but I use an english windows 7. My Firefox is swedish and IE english but none of them works. Well, hopefully you solved it with the new version :-)

 

Top 10 Contributor
Posts 1,144
C1_LeoV replied on Fri, Jun 19 2009 1:42 PM
We will look at it. Thanks for reporting this issues.

Regards

Follow me: Twitter.com/leovernazza/

Page 1 of 1 (6 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2009 ComponentOne LLC All Rights Reserved.