Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help overcoming security error on deployed
Message
Information générale
Forum:
ASP.NET
Catégorie:
Securité
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01164775
Message ID:
01164787
Vues:
10
I'm having a similar problem but on the development machine. Thread# 1164524




>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
>
State of Florida, DCF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform