G
Guest
I have change (copied) my ASP.NET form client code to the Window form to use
Web Services. The codes are almost identical. Compile has no problem. When I
start to run the windows form, it auto terminates. Anyone here can give me
help.
Thanks.
The code and error are in the following.
-----------Code----------------
Private Sub cmdAllDentists_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdAllDentists.Click
Dim ProxyGetAllDentists As New
WindowsForm4WebServ.DentalWebRef.DentalService1
Dim dsAllDentists As New DataSet
dsAllDentists = ProxyGetAllDentists.GetAllDentists()
dgDentists.DataSource = dsAllDentists.Tables(0)
End Sub
--------------error------------------
'DefaultDomain': Loaded
'c:\winnt\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded.
'WindowsControlApp1': Loaded
'D:\usr\dbwang\DabinASPTest\winVBcontrol\WindowsControlApp1\bin\WindowsControlApp1.exe', Symbols loaded.
'WindowsControlApp1.exe': Loaded
'c:\winnt\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll', No symbols loaded.
'WindowsControlApp1.exe': Loaded
'c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', No
symbols loaded.
'WindowsControlApp1.exe': Loaded
'c:\winnt\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded.
The program '[3852] WindowsControlApp1.exe' has exited with code 0 (0x0).
-------
Web Services. The codes are almost identical. Compile has no problem. When I
start to run the windows form, it auto terminates. Anyone here can give me
help.
Thanks.
The code and error are in the following.
-----------Code----------------
Private Sub cmdAllDentists_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdAllDentists.Click
Dim ProxyGetAllDentists As New
WindowsForm4WebServ.DentalWebRef.DentalService1
Dim dsAllDentists As New DataSet
dsAllDentists = ProxyGetAllDentists.GetAllDentists()
dgDentists.DataSource = dsAllDentists.Tables(0)
End Sub
--------------error------------------
'DefaultDomain': Loaded
'c:\winnt\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded.
'WindowsControlApp1': Loaded
'D:\usr\dbwang\DabinASPTest\winVBcontrol\WindowsControlApp1\bin\WindowsControlApp1.exe', Symbols loaded.
'WindowsControlApp1.exe': Loaded
'c:\winnt\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll', No symbols loaded.
'WindowsControlApp1.exe': Loaded
'c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', No
symbols loaded.
'WindowsControlApp1.exe': Loaded
'c:\winnt\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded.
The program '[3852] WindowsControlApp1.exe' has exited with code 0 (0x0).
-------