all groups > vb.net upgrade > august 2005 >
You're in the

vb.net upgrade

group:

failure in System.Diagnostics.Process.Start


failure in System.Diagnostics.Process.Start Support
8/3/2005 11:21:24 AM
vb.net upgrade: 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

Re: failure in System.Diagnostics.Process.Start Ken Tucker [MVP]
8/4/2005 6:30:10 AM
Hi,

What control are you using the windows forms datagrid does not
have a rows property?

Ken
--------------------------

[quoted text, click to view]
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


Re: failure in System.Diagnostics.Process.Start Support
8/5/2005 12:00:00 AM
vb.net 2.0 datagrid
but remember that if I msgbox.show the value it is a legit value and pasting
that value in the web browser works...
Thanks
T
[quoted text, click to view]

Re: failure in System.Diagnostics.Process.Start Wesley Long
8/9/2005 11:05:21 PM
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]

AddThis Social Bookmark Button