audiamus / BookLibConnect

A standalone Audible downloader and decrypter
GNU General Public License v3.0
672 stars 38 forks source link

Download Folder on setup #95

Closed digitalw00t closed 1 year ago

digitalw00t commented 1 year ago

When I try to setup the the download folder, I get: Unhandled exception has occured in your application.

The system cannot find the file specified.

And I'm stuck on this part.

audiamus commented 1 year ago

The exception pop-up box should give you the full call stack under [Details]. Can you post that?

Speculative: It may have to do with a non-existing default location. Book Lib Connect is looking for the "Music" folder to take it from there. This is one of the special folders, set up by Windows for every user. Its path is C:\Users\<your user name>\Music. Do you have this folder?

You can also try to set the download and export folders manually. Click [Continue] in the exception pop-up box and stop the app with the X in the title bar. A user settings file should now have been created as C:\Users\<your user name>\AppData\Local\audiamus\BookLibConnect\settings\usersettings.json. Open it with a text editor. Find "DownloadDirectory" (typically line 14). Replace the null after the colon with your designated download path (in quotes). Same with "ExportDirectory" (typically line 26). Save. Before you start Book Lib Connect again, make sure that both these folders exist.

comatron commented 1 year ago

same problem - here is my JIT-debug-log:

"Informationen über das Aufrufen von JIT-Debuggen anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

** Ausnahmetext ** System.ComponentModel.Win32Exception (0x80070002): Das System kann die angegebene Datei nicht finden. at System.Windows.Forms.FolderBrowserDialog.CreateItemFromParsingName(String path) at System.Windows.Forms.FolderBrowserDialog.SetDialogProperties(IFileDialog dialog) at System.Windows.Forms.FolderBrowserDialog.TryRunDialogVista(IntPtr owner, Boolean& returnValue) at System.Windows.Forms.FolderBrowserDialog.RunDialog(IntPtr hWndOwner) at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner) at System.Windows.Forms.CommonDialog.ShowDialog() at core.audiamus.connect.app.gui.MainForm.setDirDialog(String olddir, String defaultSubPath, String caption) at core.audiamus.connect.app.gui.MainForm.setDirDialog(Func1 dirSetSrc, Action1 dirSetDst, String defSubDir, String caption) at core.audiamus.connect.app.gui.MainForm.setDownloadDir() at core.audiamus.connect.app.gui.MainForm.btnDnldDir_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

** Geladene Assemblys **

Edit by audiamus: irrelevant parts deleted

** JIT-Debuggen ** "

audiamus commented 1 year ago

same problem

So, the exception is indeed thrown where I suspected it. Do you have the default "Music" folder in your user directory tree? In Windows File Explorer, the folder icon typically is a musical note to mark it as a special folder. Book Lib Connect currently expects this folder to exist, since it is created by Windows automatically for each user.

If your default "Music" folder does not exist, you can restore it: https://www.elevenforum.com/t/move-or-restore-default-location-of-music-folder-in-windows-11.8712/

digitalw00t commented 1 year ago

That was the issue. Honestly did NOT see that one coming.