Error while saving project

Jun 1, 2013 at 2:18 AM
Hi,

While saving project, I am getting following exception.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\ProgramData\CslaGenFork Project\Csla Generator Fork\SharedApp.config' 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 options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Configuration.Internal.WriteFileContext.ValidateWriteAccess(String filename)
at System.Configuration.Internal.WriteFileContext.Complete(String filename, Boolean success)
at System.Configuration.Internal.InternalConfigHost.StaticWriteCompleted(String streamName, Boolean success, Object writeContext, Boolean assertPermissions)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.WriteCompleted(String streamName, Boolean success, Object writeContext)
at System.Configuration.MgmtConfigurationRecord.SaveAs(String filename, ConfigurationSaveMode saveMode, Boolean forceUpdateAll)
at CslaGenerator.Util.ConfigTools.Change(String key, String value)
at CslaGenerator.MainForm.SaveAsToolStripMenuItem_Click(Object sender, EventArgs e)
at CslaGenerator.MainForm.SaveToolStripMenuItem_Click(Object sender, EventArgs e)
at CslaGenerator.MainForm.SaveProjectButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Any help would be really great!

Thanks
Coordinator
Jun 1, 2013 at 9:00 AM
Edited Jun 1, 2013 at 9:02 AM
Hi,

This is obviously a permission issue.

1) What CslaGenFork version are you running? 4.3-RC or the trunk?
2) What OS are you running?
3) How are the User Account Control settings?
4) Does the path "C:\ProgramData\CslaGenFork Project\Csla Generator Fork\" exists?
5) Does the file SharedApp.config exists in the above path?
6) How are the permission settings for the above folder and file?
Jun 2, 2013 at 8:01 AM
Hi Tiago,

Yeah. Edit rights were not assigned to Path "C:\ProgramData\CslaGenFork Project\Csla Generator Fork\"

Thanks,