Search code examples
silverlightopenfiledialogfileinfo

Cannot get full path of a file in Silverlight


I am working on a Web project, having Silverlight as the front end. I am opening a OpenFIleDialog in button click to get a file. I need to send the full path of the file to the server through service. I am trying dialog.File.FullName. But I am getting security exception. Is there any way to do this?

Regards,

Jawahar


Solution

  • Shouldn't getting the file path from the dialog box result and passing it as a string to the web service be sufficient?

    Could you post your code for getting the file path from the Silverlight and the web service method you're calling?