I am using Accounts 2009 which uses SQL 2005 Express. For some unknown reason 2 computers refuses to backup or restore the database. 2 other computers work well. I am using XP on all PCs. It comes up with the following for restore - Control List not in canonical form and for backup - EventType : officeaccounting2 P1 : 4.0.3610.0 P2 : invalidoperationexception P3 : workerthreadstart P4 : grantaccesstosqlserver P5 : 5b72ec82 P6 : 809 P7 : 1 . The Accounts 2009 is no longer supported by Microsoft, can anyone help.
You should try the Microsoft forums: http://answers.microsoft.com/ even if it's not officially supported. Those error messages are not related to SQL Server so it's unlikely we can help with them. It sounds like there may be file permission issues on the two machines that don't work.
foreach (string currentDir in txtDir) { try { //Debug.WriteLine(currentDir); globalDir = currentDir; DirectoryInfo directory = new DirectoryInfo(currentDir); var directorySecurity = directory.GetAccessControl(AccessControlSections.Access); if (directorySecurity == null) { throw new ArgumentNullException("objectSecurity"); } if (!directorySecurity.AreAccessRulesCanonical) { Debug.WriteLine(currentDir + "************* ACL not canonical *******************"); } } catch { } } } catch (Exception e) { Debug.WriteLine(globalDir); Debug.WriteLine (e.Message); }
} } After for each directory found you have simply to go to the folder and view directory security tab (right click on the folder, choose property, and click security tab). An error message will appear asking you if you want repair ACL not in canonical form. Answer ok and the problem is solved.