2.0.3 Missing tab "path not found error"

piranha

11-09-2008 05:09:11

For each directory that I have defined for each show I get error message:
The folder "f:\media\Shows\Alias\Season 01 for Alias Season 1 does not exist. Do you want to create this folder?
Answering yes produces error:

System.IO.DirectoryNotFoundException: Could not find a part of the path 'F:\MEDIA\Shows\5ive Days To Midnight\Season 01'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
at System.IO.DirectoryInfo.Create()
at TVRename.TVDoc.UpToDateCheck(FolderItem who)
at TVRename.TVDoc.DoMissingCheck(ProgressBar pbProgress)
at TVRename.UI.bnDoMissingCheck_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.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Answering no, produces this error for all shows/seasons I have defined.
Of course this path is fully available. It's a mapped drive.

sstteevvee

11-09-2008 18:27:05

Taking the path 'F:\MEDIA\Shows\5ive Days To Midnight\Season 01', for example, how much of that already exists? The whole thing, or only up to (say) "'F:\MEDIA\Shows" ?

piranha

12-09-2008 06:14:33

The whole path entirely exists. And has files inside.

sstteevvee

12-09-2008 12:00:05

Does the user running TVRename have "Read" access to "F:\" (in the file properties security/permissions tab). A bug/feature in .NET may require this for access to subdirectories.

If that doesn't help, I'm not sure what might be causing it. If you could answer the following, it may help:

- Was it ok with a previous version of TVRename .. i.e. did installing 2.0.3 break it? or: Did originally work in 2.0.3 and just stop working one day?
- Are you able to navigate to "F:\MEDIA\Shows\5ive Days To Midnight\Season 01" in Windows Explorer? Are you able to navigate to "F:\" ?
- Is drive F: a local drive, or network share?
- If it is a network share, what sort of server is it on?
- Are you using XP or Vista?

piranha

13-09-2008 06:03:21

Does the user running TVRename have "Read" access to "F:\" (in the file properties security/permissions tab). A bug/feature in .NET may require this for access to subdirectories.
full access


- Was it ok with a previous version of TVRename .. i.e. did installing 2.0.3 break it? or: Did originally work in 2.0.3 and just stop working one day?
Previous version was ok. The new version shows this error

- Are you able to navigate to "F:\MEDIA\Shows\5ive Days To Midnight\Season 01" in Windows Explorer? Are you able to navigate to "F:\" ?
Yes. On both computers.

- Is drive F: a local drive, or network share?
This is network share. USB drive connected to XP computer, mapped on Vista Premium x64

- If it is a network share, what sort of server is it on?
Windows XP, with permissions for "Everybody", "full access". Other programs have no issues with it.

- Are you using XP or Vista?
Answered above.

sstteevvee

14-09-2008 16:31:56

Its strange that 2.0.3 should be the cause of it breaking. That line of code that's having the problem has been in there for at least 6 months. Could you go back to version 2.0.2 and see if it still ok?

Also... try this program, and see what it says. It is a super-simple program that tests the same thing that is supposedly breaking in TVRename. You put in a folder name and it will tell you if it, and all its parent folders up to the root directory, exist. You should get output similar to:


Examining folder: S:\media2\5ive days to midnight

S:\media2\5ive days to midnight : Exists
S:\media2 : Exists
S:\ : Exists

Done.

If you get "Does not exist" for folders that are there, I think it means something weird is going on with .NET and/or file and folder permissions.

For what its worth, I'm using Vista x64 Business, and accessing my files on a mapped samba file share (FreeBSD server), and it works ok here. I've just tried to a share on a XP machine, and that's fine too.

I'm happy to help you figure this one out, but it might take a few rounds of trying random things until we figure out what the problem is.

piranha

16-09-2008 07:03:00

The test tool returned:

Examining folder: F:\MEDIA\Shows\5ive Days To Midnight\Season 01

F:\MEDIA\Shows\5ive Days To Midnight\Season 01 : Exists
F:\MEDIA\Shows\5ive Days To Midnight : Exists
F:\MEDIA\Shows : Exists
F:\MEDIA : Exists
F:\ : Exists

Done.

The rest I'll test soon after I finish upgrading my iphone ;)

sstteevvee

16-09-2008 10:47:25

Anyone want to do a TVRename iPhone plugin? :)

I was hoping that the test tool would have had the same problem. The plot thickens.

Can you send me a copy of your TVRename settings file? Go to Help->Bug Report, turn on "Settings files" and turn off the other two. Hit "Create", then copy+paste the text into an email to tvrename [at] tvrename.com

piranha

17-09-2008 06:04:41

Ok, it gets weirder and weirder.
I installed 2.0.2 and it worked fine. Then I installed 2.0.3 on top of it, and after clicking Missing Tab, Check; it works fine.
So I guess it must have been something with my computer.

sstteevvee

17-09-2008 20:28:12

Weird indeed. Well.. Hooray, its fixed! :P