By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,307 Members | 1,585 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,307 IT Pros & Developers. It's quick & easy.

System.IO.FileNotFoundException problem ?

P: n/a
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()"
Jan 9 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
roopeman wrote:
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
--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Jan 9 '06 #2

P: n/a
Hi,
"roopeman" <ro******@discussions.microsoft.com> wrote in message
news:C5**********************************@microsof t.com...
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

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jan 9 '06 #3

P: n/a

"roopeman" <ro******@discussions.microsoft.com> wrote in message
news:C5**********************************@microsof t.com...
|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.
Jan 9 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Browse more C# / C Sharp Questions on Bytes