I am using the sample code for this book and have created my own solution using just the Users and Forums modules. However, I have a problem with access to files. I keep getting the error :
An unexpected error has occurred on this page. The system administrators have been notified. Please feel free to contact us with the information surrounding this error.
The error occurred in:
http://localhost/forums/Modules/Forums/Default.aspx
Error Message: Access to the path "c:\inetpub\wwwroot\forums\Config\Forums.Confi g" is denied.
--------------------------------------------------------------------------------
Stack Trace:
System.UnauthorizedAccessException: Access to the path "c:\inetpub\wwwroot\forums\Config\Forums.Confi g" is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode) at Wrox.WebModules.Forums.Configuration.ModuleConfig. GetSettings() in C:\Documents and Settings\Mike\My Documents\Visual Studio Projects\forums\Forums.Configuration\Configuration .cs:line 29 at Wrox.WebModules.Forums.Business.Category.GetCatego ries() in C:\Documents and Settings\Mike\My Documents\Visual Studio Projects\forums\Forums.Business\Category.cs:line 95 at Wrox.WebModules.Forums.Web._Default.BindList() in c:\inetpub\wwwroot\forums\modules\forums\default.a spx.cs:line 65 at Wrox.WebModules.Forums.Web._Default.Page_Load(Obje ct sender, EventArgs e) in c:\inetpub\wwwroot\forums\modules\forums\default.a spx.cs:line 53 at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain()
Can anybody tell me what I need to do to get the right access rights for my files?
Cheers,
Mike