Before checking the code, make sure that
saving files is ENABLED in client browser settings. If it's not, you won't be able to write to the disk and save files.
Secondly, in the Silverlight application you should write to the Application Data storage only:
if (Application.Current.HasElevatedPermissions)
{
string perUserApplicationData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
}
You can check this out to be more familiar with trusted applications permissions:
https://msdn.microsoft.com/en-us/library/ee721082(v=vs.95).aspx[
^]