This might be a newbie question, so I apologize in advance... I have a website that I have created that has a dynamic page that displays news. The user can cut and copy information from the web and paste it into a textbox control that is on the "Admin" page. They click the submit button, and the text is written to a "news.txt" file on the root of the webserver.
The display page just reads the content of the "news.txt" file and displays it in a label control.
Everything works great on my local machine, but once I uploaded it to the webserver, I get this error:
System.UnauthorizedAccessException: Access to the path 'd:\pathtowebserver\News.txt' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode,
FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions op ...
Go to the complete details ...