Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help overcoming security error on deployed
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Security
Title:
Help overcoming security error on deployed
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01164775
Message ID:
01164775
Views:
55
When testing the application on my development machine, the little application runs without errors. When I try to run it from my laptop, I get the error displayed below. Thanks for any help. This is done using VS2005, windows application, and all the code is VB.

Thanks for any help (again)
Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Here is my connection string:
Provider=sqloledb;Data Source=192.168.30.11;Network Library=DBMSSOCN;Initial Catalog=ctoredev;User ID=sa;Password=mypassword;
Here is the function I call.
   Public Shared Function GetDataView(ByVal tcSQLCMD As String) As DataView
        ' Define The Command Object 
        Dim oCommand As New OleDbCommand()
        oCommand.CommandText = tcSQLCMD
        oCommand.CommandType = CommandType.Text
        'Connect to Database
        oCommand.Connection = AppGlobals.oConn
        Dim goView As New Data.DataView()
        Try
            'Load the DataView
            goView = VFPToolkit.vfpData.SqlExecute(AppGlobals.oConn, oCommand, "DataAlias")
            VFPToolkit.vfpData.SqlDisConnect(AppGlobals.oConn)
        Catch ex As Exception
            Dim lcMess As String
            lcMess = "CTX failed to return a valid Dataview" & vbCr & vbCr & ex.Message
            MsgBox(lcMess, MsgBoxStyle.ApplicationModal, "CTX")
        End Try
        Return goView
    End Function
Next
Reply
Map
View

Click here to load this message in the networking platform