Home All Groups Group Topic Archive Search About

Trusting a location for Framework 2.x

Author
4 Oct 2006 7:58 PM
Kevin S Gallagher
I have a very simple Windows form application which opens a MS-Access
database and fails because I assume its an untrusted location on our Novell
Server. After looking through the Framework configuration tool under admin
tools in Control panel I don't see any method to make a location trusted.

This is my untrusted location
\\dat2\IPD\DEV\Shared\SandBox\KSG\CAS_Test_1

The code

' connection shorten for demo
Dim TheConnection1 As OleDb.OleDbConnection = New
OleDb.OleDbConnection("Data Source=NorthWind.mdb;" )
TheConnection2.ConnectionString = GetConnectionStr()
TheConnection1.Open()
Dim table As DataTable
table = TheConnection1.GetSchema("Restrictions")
Me.DataGridView1.DataSource = table


The test application is "signed"
Tried setting the demo to "Full trust"
Tried using the calc permissions

This entire test/demo project is for me to get familar with setting
permissions/

Thanks for any insight,
Kevin

Author
6 Oct 2006 1:27 PM
Kevin S Gallagher
Is this the wrong forum for this question?
Is the question understandable?



Show quoteHide quote
"Kevin S Gallagher" <kevin.s.gallag***@state.or.us> wrote in message
news:%23BBP9O$5GHA.1256@TK2MSFTNGP04.phx.gbl...
>I have a very simple Windows form application which opens a MS-Access
>database and fails because I assume its an untrusted location on our Novell
>Server. After looking through the Framework configuration tool under admin
>tools in Control panel I don't see any method to make a location trusted.
>
> This is my untrusted location
> \\dat2\IPD\DEV\Shared\SandBox\KSG\CAS_Test_1
>
> The code
>
> ' connection shorten for demo
> Dim TheConnection1 As OleDb.OleDbConnection = New
> OleDb.OleDbConnection("Data Source=NorthWind.mdb;" )
> TheConnection2.ConnectionString = GetConnectionStr()
> TheConnection1.Open()
> Dim table As DataTable
> table = TheConnection1.GetSchema("Restrictions")
> Me.DataGridView1.DataSource = table
>
>
> The test application is "signed"
> Tried setting the demo to "Full trust"
> Tried using the calc permissions
>
> This entire test/demo project is for me to get familar with setting
> permissions/
>
> Thanks for any insight,
> Kevin
>
Author
9 Oct 2006 10:22 PM
Nicole Calinoiu
Have you tried adding a code group that uses URL evidence under the
LocalIntranet_Zone code group of the machine policy level?  You should be
able to see this code group in the treeview if you expand the following
nodes: Runtime Security Policy \ Machine \ Code Groups \ All_Code.

That said, since this is a .NET 2.0 application, deploying as a ClickOnce
application might be a more attractive option.  If you're interested in
learning about ClickOnce,
http://msdn2.microsoft.com/en-us/vbasic/ms789088.aspx might be a good place
to start.  For more in-depth information, see
http://msdn2.microsoft.com/en-us/library/t71a733d.aspx.



Show quoteHide quote
"Kevin S Gallagher" <kevin.s.gallag***@state.or.us> wrote in message
news:%23BBP9O$5GHA.1256@TK2MSFTNGP04.phx.gbl...
>I have a very simple Windows form application which opens a MS-Access
>database and fails because I assume its an untrusted location on our Novell
>Server. After looking through the Framework configuration tool under admin
>tools in Control panel I don't see any method to make a location trusted.
>
> This is my untrusted location
> \\dat2\IPD\DEV\Shared\SandBox\KSG\CAS_Test_1
>
> The code
>
> ' connection shorten for demo
> Dim TheConnection1 As OleDb.OleDbConnection = New
> OleDb.OleDbConnection("Data Source=NorthWind.mdb;" )
> TheConnection2.ConnectionString = GetConnectionStr()
> TheConnection1.Open()
> Dim table As DataTable
> table = TheConnection1.GetSchema("Restrictions")
> Me.DataGridView1.DataSource = table
>
>
> The test application is "signed"
> Tried setting the demo to "Full trust"
> Tried using the calc permissions
>
> This entire test/demo project is for me to get familar with setting
> permissions/
>
> Thanks for any insight,
> Kevin
>