M
meerkat
Can anyone help me get my program to work over a network.
To keep it simple, I have two buttons, a text box and a Datagrid.
Clicking Button1, displays "Hello" in the textbox.
Clicking Button2, fills the Datagrid with data from Northwind.
The program is installed on a Windows 2000 and a Windows 98 machine.
The 2000 machine has SQL Server Developer installed and the 98 machine
has
SQL Server Personal edition installed.
I set a the Trust an Assembly stuff in the .net Wizards and ran my VB
DOTNET program directly from each machine.
Everything worked fine.
When I tried to run the program from the other machine across the
network,
Button1 displays "Hello" OK but when I press Button2, the message
shown at the end appears.
Private Sub Button2_Click( etc )
SqlDataAdapter1.Fill(DataSet11, "Customers")
DataGrid1.DataSource = DataSet11
DataGrid1.SetDataBinding(DataSet11, "Customers")
End Sub
The Connection String is
workstation id=DELL8300;packet size=4096;user id=sa;data
source=DELL8300;persist security info=True;initial
catalog=Northwind;password=thingy
I hope someone out there knows what to do because I certainly don't
Thanks in anticipation,
Meerkat
-------------------------------
The application attempted to perform an operation not allowed by the
security policy. The operation required the SecurityException.
To grant this application the required permission please contact your
system administrator, or use the Microsoft .NET security policy
administration tool.
If you click Continue, the application will ignore this error and
attempt to continue. If you click Quit, the application will shut down
immediately.
Request for the permission of type
System.Data.SqlClientPermission, System.Data,
Version=1.0.5000.0, Culture=neutra,
PublicKeyToken=b77a5c561934e089 failed.
--------------------------------------
To keep it simple, I have two buttons, a text box and a Datagrid.
Clicking Button1, displays "Hello" in the textbox.
Clicking Button2, fills the Datagrid with data from Northwind.
The program is installed on a Windows 2000 and a Windows 98 machine.
The 2000 machine has SQL Server Developer installed and the 98 machine
has
SQL Server Personal edition installed.
I set a the Trust an Assembly stuff in the .net Wizards and ran my VB
DOTNET program directly from each machine.
Everything worked fine.
When I tried to run the program from the other machine across the
network,
Button1 displays "Hello" OK but when I press Button2, the message
shown at the end appears.
Private Sub Button2_Click( etc )
SqlDataAdapter1.Fill(DataSet11, "Customers")
DataGrid1.DataSource = DataSet11
DataGrid1.SetDataBinding(DataSet11, "Customers")
End Sub
The Connection String is
workstation id=DELL8300;packet size=4096;user id=sa;data
source=DELL8300;persist security info=True;initial
catalog=Northwind;password=thingy
I hope someone out there knows what to do because I certainly don't
Thanks in anticipation,
Meerkat
-------------------------------
The application attempted to perform an operation not allowed by the
security policy. The operation required the SecurityException.
To grant this application the required permission please contact your
system administrator, or use the Microsoft .NET security policy
administration tool.
If you click Continue, the application will ignore this error and
attempt to continue. If you click Quit, the application will shut down
immediately.
Request for the permission of type
System.Data.SqlClientPermission, System.Data,
Version=1.0.5000.0, Culture=neutra,
PublicKeyToken=b77a5c561934e089 failed.
--------------------------------------