The device is not ready

For the life of me I cannot figure out why all of a sudden I'm getting this error when it tries to move my files using the MoveInputFiles() Sub.  The only think I know that happened different lately is on my server( which this code is running from), I had rebooted and when I tried to run this again, for this line:

System.IO.File.Move(srcFolder1 & file1, destFolder1 & file1)

I get these errors:

System Error Information: The device is not ready. Place: 6 System.IO.IOException: The device is not ready. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.__Error.WinIOError() at System.IO.File.Move(String sourceFileName, String destFileName) at HEDI2.Module1.MoveInputFiles() in Y:\inetpub\wwwroot\sss\ssis\maintenance\sss\phase2_consoleapp\sss\sss\Module1.vb:line 172

Then in my MsgBox I get this error as though it's treating my F drive as a CDRom or something: www.webfound.net/nodisk.jpg

Here's the entire code, then I took out this part which I had added to try to close any processes that m ay have been locking my incoming .mnt and .naf files which was causing the problem:
            'If Not filefs Is Nothing Then filefs.Close()
            'If Not reader Is Nothing Then reader.Close()


www.webfound.net/allcode.txt
LVL 1
dba123Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

possekeCommented:
Is this F drive  a mapped network drive?

Po$$e
dba123Author Commented:
it's a drive on my server, not a network drive but I am able to map to it fine....the .NET code reside on my server, but I'm Debugging it from my local PC here at work and running it in VS 2005
dba123Author Commented:
Ok, back to UNC.  I had only switched it to F:\ because I was having some problems with my writes
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

possekeCommented:
Very strange indeed,

I'm also seeking in the dark, the code seems perfect, ain't nothing I can say about that...

Could it have something to do with permissions?

Po$$e
dba123Author Commented:
well, I gave it Administrators, Domain Admins, everyone full access.
possekeCommented:
Maybe another remark, I'm just trying to help so excuse me if it looks stupid:

        Dim srcFolder1 As String = "\\sss\f$\inetpub\wwwroot\sss\ssis\maintenance\sss\phase2\mnt_input"
        Dim destFolder1 As String = F:\inetpub\wwwroot\sss\ssis\maintenance\sss\phase2\mnt_input_old"

So if you use UNC the F:\ corresponds with "\\sss\f$\"  ?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
possekeCommented:
LoL that should be enough access for one person ^^
dba123Author Commented:
crap, i didn't mean to PAQ....
dba123Author Commented:
oh, yes I did!

hahaha
dba123Author Commented:
I'm losing my mind...
possekeCommented:
dba123, is this solved or do you need me to check it out further.???
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.