asked on
StreamWriter tw = new StreamWriter( m_usersListPath, true );
// Throws exception cos of read write issue
ASKER
FileAccessibility.EnsureFileIsReadWrite( m_usersListPath );
StreamWriter tw = File.AppendText( m_usersListPath );
ASKER
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
TRUSTED BY
1. Ensure that the ASP.NET user has permission to write to that folder/file.
2. Use the File class to check the attributes and if necessary set the attributes of the file before attempting to write to it.
System.IO.File.GetAttribut
System.IO.File.SetAttribut
http://msdn.microsoft.com/en-us/library/system.io.file.getattributes(VS.80).aspx
http://msdn.microsoft.com/en-us/library/system.io.file(VS.80).aspx
Open in new window