My first thought is that you have a corruption of the system registry. The
way to tell if this is in fact the problem would be to select "Run" from the
Start Menu, and paste the text there.
If it fails there, but works correctly when pasting it into the address
field in your browser, then your system is not passing the message to your
web browser application, which it would know to do because of the http:
prefix.
If this is in fact the problem, try running a registry repair tool such as
Registry Mechanic (
http://www.pctools.com/registry-mechanic/) or Symantec's
Norton System Works's registry repair tool.
(
http://www.symantec.com/sabu/sysworks/basic/)
This would mean that the "Cannot find the file" error actually means that it
cannot find the executable file of the web browser application that is
registered to handle the "http:" prefix. If it were the file on the www
server that could not be found, your browser would open and return a
404-File Not Found error to the browser, not to the API caller.
After you allow one of these applications to fix your problems (systems that
have not seen regular maintenance will often have thousands of problems the
first time these are run, don't let that scare you too much), you may need
to re-install your web browser. In the Control Panel -> Add/Remove programs
tool, your browser may have a "Repair" option. Use that if it exists, or
download and install the newest version if not.
Either method should restore the registration of the "http:" prefix to
target your web browser application.
Keep in mind that other applications may have similar errors, as well.
However running these applications will usually re-register their components
as needed.
Hope this helps.
[quoted text, click to view] "Support" <RemoveThis_Support@mail.oci.state.ga.us> wrote in message
news:uDx8E8DmFHA.320@TK2MSFTNGP09.phx.gbl...
> Dim MyHyperlink As String = "
http://www.somedomain.org/DOCUMENTS/" &
> dgDatagrid.Rows(e.RowIndex).Cells(4).Value
> System.Diagnostics.Process.Start(MyHyperlink)
>
> fails with a
>
> Win32 exception: the system cannot find the file ... but the file exists
> and when I copy MyHyperlink into a browser - the file is displayed...
> Any suggestions ?
> Terry
>