My web application need to get file size and file contents of the file the user will be selecting.
It was throwing error on
FileInfo fileInfo = new FileInfo(pathSo urce);
return fileInfo.Length .ToString();
I thought it was due to CAS
and so included
assembly:Permis sionSetAttribut e(SecurityActio n.RequestMinimu m, Name = "FullTrust" )]
It started working fine in my system,even with remote access to the appln.
But it throws an error if the application is accessed via PDA(with IE mobile ver 5) when the user selects a file say 'Test.txt' available in the user's PDA.
Throws an error 'Cannot find the file \...filepath... \Test.txt
Pls let me know the possible way to enable my application to get the details of the file the user may select from the user's harddisk(PDA in this case)
Or should I change any security setting in PDA?
Or is there a way allow this permission thro' ASP.Net code?
Thanks in advance.
It was throwing error on
FileInfo fileInfo = new FileInfo(pathSo urce);
return fileInfo.Length .ToString();
I thought it was due to CAS
and so included
assembly:Permis sionSetAttribut e(SecurityActio n.RequestMinimu m, Name = "FullTrust" )]
It started working fine in my system,even with remote access to the appln.
But it throws an error if the application is accessed via PDA(with IE mobile ver 5) when the user selects a file say 'Test.txt' available in the user's PDA.
Throws an error 'Cannot find the file \...filepath... \Test.txt
Pls let me know the possible way to enable my application to get the details of the file the user may select from the user's harddisk(PDA in this case)
Or should I change any security setting in PDA?
Or is there a way allow this permission thro' ASP.Net code?
Thanks in advance.
Comment