System.IO.FileNotFoundException problem ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wrote one program which can query processes info., it 's work well in my
local Computer, but failed and got the below error when i query remote host
processes,
anybody can help me ?

"Unhandled Exception: System.IO.FileNotFoundException: Explorer.EXE
at System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName)
at QueryProcess02.Main()"
 
roopeman said:
I wrote one program which can query processes info., it 's work well
in my local Computer, but failed and got the below error when i query
remote host processes,
anybody can help me ?

"Unhandled Exception: System.IO.FileNotFoundException: Explorer.EXE
at System.Diagnostics.FileVersionInfo.GetVersionInfo(String
fileName) at QueryProcess02.Main()"

long shot: no-one is logged into the remote system, so no shell has
been started, so explorer.exe isn't running.

FB


--
 
Hi,
roopeman said:
I wrote one program which can query processes info., it 's work well in my
local Computer, but failed and got the below error when i query remote
host
processes,
anybody can help me ?

"Unhandled Exception: System.IO.FileNotFoundException: Explorer.EXE
at System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName)
at QueryProcess02.Main()"


Post your code
 
|I wrote one program which can query processes info., it 's work well in my
| local Computer, but failed and got the below error when i query remote
host
| processes,
| anybody can help me ?
|
| "Unhandled Exception: System.IO.FileNotFoundException: Explorer.EXE
| at System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName)
| at QueryProcess02.Main()"


If you are using UNC paths make sure they have the correct format.

\\server\path\filename

like:
....GetVersion(@\\myserver\dir\some.doc);

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top