Re: Process.Start("http://somesite") throwing a file not found win32 ex.

From: Sriram Krishnan (ksriram_at_NOSPAMgmx.net)
Date: 07/17/04


Date: Sat, 17 Jul 2004 19:34:30 +0530

You say that you're facing this issue only on one computer.Now, see whether
Start->Run (some url) works on that machine. Since both access the same
function (ShellExecute), this should give us more clues about where the
problem lies

-- 
Sriram Krishnan
Microsoft Student Ambassador
http://www.,dotnetjunkies.com/weblog/sriram
"Tim Mackey" <tim@scootasp.net> wrote in message
news:2l7a1cF9mou8U1@uni-berlin.de...
hi Manoj,
thanks for the reply.
i asked the user to test it and they do have a default browser.  Start > Run
> www.somesite.com loads it up in IE.  it's a standard dell XP pro
installation also, so its odd that it works on other machines.
any other suggestions are much appreciated.
thanks
tim
\\ email: tim at mackey dot ie //
\\ blog: http://tim.mackey.ie //
67d0ebfec70e8db3
  "Manoj G [MVP]" <manuthegreat@hotmail.com> wrote in message
news:%23LKcL2CZEHA.3512@TK2MSFTNGP12.phx.gbl...
  Hi,
  Check if you have a default browser configured by actually typing the URL
in the Run command window and seeing if a browser launches from there. For
Win2k Sp3 onwards you can configure this using the "Set program access and
defaults" tab of the Add-Remove programs snapin.
  -- 
  HTH,
  Manoj G
  [MVP ,  Visual Developer - Visual Basic ]
  http://msmvps.com/manoj/
    "Tim Mackey" <tim@scootasp.net> wrote in message
news:2l0511F77d2rU1@uni-berlin.de...
    hi,
    i'm opening a web browser from my winforms app, via the
System.diagnostics.process.start(theURL) method.  it has been working fine,
although on one client, i am getting the following exception:
    Win32Exception The system cannot find the file specified
    System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo
startInfo) at
    System.Diagnostics.Process.Start() at
    System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at
    System.Diagnostics.Process.Start(String fileName)
    obviously, its a url and not a filename that i'm passing, so i can see
where its getting the exception, but it works on 99% of computers and i
gather this approach is the same as clicking Start > Run > someUrl in
Windows, so thats why i use this method. also its good because it uses the
default browser which is nice to the user.  the OS is windows XP pro.
    any ideas?
    thanks
    tim
    \\ email: tim at mackey dot ie //
    \\ blog: http://tim.mackey.ie //
    67d0ebfec70e8db3


Relevant Pages

  • Re: Process.Start("http://somesite") throwing a file not found win32 ex.
    ... You need to use the "start" command from the command line. ... > "Tim Mackey" wrote in message ... > Check if you have a default browser configured by actually typing the URL ...
    (microsoft.public.dotnet.framework.clr)
  • Re: CTF Loader
    ... ok, thanks again Tim. ... you said per adding it to the DEP ignore list. ... When the 'Performance Options' box opens, click on the "Data Execution Prevention" ... Data Execution Prevention Microsoft windows CTF loader that's says to ...
    (microsoft.public.windowsxp.general)
  • Re: CTF Loader
    ... Thank you again Tim and for the clarification, ... But as 'ctfmon.exe' is a trusted Microsoft executable, integral to the Windows OS, ... Finally, I would recommend that you download, install and run the program - ... After becoming confident the file is not infected - Make DEP (Data Execution ...
    (microsoft.public.windowsxp.general)
  • Re: OT : Hold the Press - The best version yet!
    ... efforts to rehabilitate its often-maligned Vista operating system, ... "We are on track to deliver the best version of Windows ever," Ballmer ... Herring knows less about computers than I know about asskissing my way ... Wow, Tim! ...
    (rec.boats)
  • Re: End of "All-In-One" Microsoft OS
    ... as even the Windows admin/tech trouble shooter guy next to me ... it up to Mac OSX's level of up-time. ... Tim noted the closed vs open systems, but end users rarely care, and I ... The issue is TCO ...
    (comp.cad.solidworks)

Quantcast