This question is locked. New answers and comments are not allowed.
Hi,
I am trying to build a Image Editor for Windows Phone 8 app but every time I save an image I always get a system Application_UnhandledException like bellow;
+ $exception {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
at Microsoft.Xna.Framework.Media.MediaLibrary.SavePicture(String name, Stream source)
at Telerik.Windows.Controls.RadImageEditor.SaveJpg(WriteableBitmap image, String fileName, Int32 quality)
at Telerik.Windows.Controls.RadImageEditor.SaveToPhoneLibrary(String fileName, Int32 quality)
at Telerik.Windows.Controls.RadImageEditor.<OnApplyClick>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__3(Object state)
--- End of inner exception stack trace ---
...
Please find my project here...
I'll be very grateful if someone could help me.
Thanks in advance
Joaquim
I am trying to build a Image Editor for Windows Phone 8 app but every time I save an image I always get a system Application_UnhandledException like bellow;
+ $exception {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
at Microsoft.Xna.Framework.Media.MediaLibrary.SavePicture(String name, Stream source)
at Telerik.Windows.Controls.RadImageEditor.SaveJpg(WriteableBitmap image, String fileName, Int32 quality)
at Telerik.Windows.Controls.RadImageEditor.SaveToPhoneLibrary(String fileName, Int32 quality)
at Telerik.Windows.Controls.RadImageEditor.<OnApplyClick>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__3(Object state)
--- End of inner exception stack trace ---
...
Please find my project here...
I'll be very grateful if someone could help me.
Thanks in advance
Joaquim