I have an online order entry system in silverlight. I need to send an email to the customer with the list of items he has ordered with all the formatting.
In my C# code, I am creating an HTML file with the list of the items and trying to save it before attaching to the email. But when I create the file, I get the exception “File operation not permitted. Access to path ‘C:\test.html’ is denied.”
Silverlight application doesn’t have access to client file system, it only has access to my documents when is running out of browser. You should save your file to Isolated Storage. See this article.