I am working through the code in Chapter 5 of the book and I am getting the error message below. Can someone tell me how to correct it? Do you need to do something special to the folder that contains the Config files?
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/CCIPortal/Modules/Users/New.aspx
Error Message: Access to the path "c:\inetpub\wwwroot\CCIPortal\Config\Accounts.Conf ig" is denied.--------------------------------------------------------------------------------
Stack Trace:
System.UnauthorizedAccessException: Access to the path "c:\inetpub\wwwroot\CCIPortal\Config\Accounts.Conf ig" 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 CCIPortal.Modules.Accounts.ACCOUNTSCONFIGURATION.M oduleConfig.GetSettings() in c:\inetpub\wwwroot\CCIPortal\Modules\Accounts\ACCO UNTSCONFIGURATION\ModuleConfig.cs:line 47 at CCIPortal.Modules.Accounts.ACCOUNTSBUSINESS.Accoun tsTool.GetStates() in c:\inetpub\wwwroot\cciportal\modules\accounts\acco untsbusiness\accountstool.cs:line 16 at CCIPortal.Modules.Users.New.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\cciportal\modules\users\new.asp x.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()