Views:

You try to open the Dynamics SL Database Maintenance screen and receive the following error message: 

.NET Framework Error

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

************** Exception Text **************
System.ArgumentNullException: Argument 'baseDirectory' cannot be an empty string or Nothing.
Parameter name: baseDirectory
   at Microsoft.VisualBasic.FileIO.FileSystem.CombinePath(String baseDirectory, String relativePath)
   at DBBuild.DBBuild.DBBuild_Load(Object eventSender, EventArgs eventArgs)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 

This error will occur if the My documents folder has been redirected. The SL Database Maintenance screen is coded to look for the My Documents folder on the computer where the screen is being run.

To work around this issue, either temporarily disable the redirection of the My Documents folder or run the SL Database Maintenance on a workstation where the My Documents folder is local.