OleDbPermission failed
- From: elora_c@xxxxxxxxx
- Date: 20 Nov 2006 13:44:47 -0800
I am trying to test distributing a Windows application that accesses a
Jet DB (.mdb) database file. On my development box running Windows XP
Pro with Office Pro (and Access) installed, it runs fine. On my test
machine running Windows Server 2003 without Office, it fails with
Request for the permission of type 'System.Data.OleDb.OleDbPermission,
System.Data, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' failed.
I have checked, and the Jet Database engine is installed on that
machine. It also has Framework 1.1 and 2.0 installed (this app was
developed using 2.0). The code is straight from Microsoft's sample
ado.net application
http://msdn2.microsoft.com/en-us/library/dw70f090.aspx using the OleDb
connector.
I have found many clues on how to fix this problem when using ASP.NET,
but nothing when it occurs in a Windows application. Anyone have any
ideas?
Thanks,
Carole
.
- Follow-Ups:
- Re: OleDbPermission failed
- From: Miha Markic [MVP C#]
- Re: OleDbPermission failed
- Prev by Date: InsertCommand gives "Must declare the scalar variable "@..."
- Next by Date: Re: Best way to reference a value in DataRowView
- Previous by thread: InsertCommand gives "Must declare the scalar variable "@..."
- Next by thread: Re: OleDbPermission failed
- Index(es):
Relevant Pages
|