Question : HELP - Novell & .Net & MS SQL Server?

I am having a problem with this VB.NET code when trying to connect to SQL Server.

At home it works, at work there are prolbems.

Home computer is a stand alone computer runninw Window XP and SQL Server 2000.

Work computer is a Novell Network made up of:
Novell server
MSSQL Server 2000
Citrix Server


This code works when I run a copy of the program that is on the Citrix or SQL Server drive, but if run from a Novel drive (no matter which computer I’m running it from) it fails


This is the error that I get:
Application attempted to perform an operation not allowed by the security policy. To grand this application the required permission, contact your system administrator, or use the Microsoft .NET Framework Configuration too.

Request for the permission of type
‘System.Data.SqlClient.SqlClientPermission.System.Data,




Dim c As String = "Data Source=SQL;Initial Catalog=AhavaOrder;Integrated Security=True"

Dim conn As New SqlConnection(c)
Dim cmd As SqlCommand = New SqlCommand("select * from tblItem", conn)
cmd.CommandType = CommandType.Text
cmd.Connection.Open()
Dim reader As SqlDataReader = cmd.ExecuteReader(CommandBehavior.CloseConnection)
reader.Read()
MsgBox(reader.Item(0))

Answer : HELP - Novell & .Net & MS SQL Server?

try this:

fire up SDK command prompt from start menu.

caspol -q -machine -addgroup 1 -url file://h:/* FullTrust -name "H Drive"

where file://h:/* is the drive letter where the program is run from
Random Solutions  
 
programming4us programming4us