OleDbPermission failed



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

.



Relevant Pages

  • Re: Workgroup computers not visible, shares not available.
    ... running windows XP Pro ... >It is not a complicated problem every computer on the network can see every ... >other computer except Newworkstation which does not show any computer on the ...
    (microsoft.public.windowsxp.network_web)
  • iPAQ5450 not recognising Home Network
    ... with a cable connection to a D-Link wireless router. ... A laptop running Windows XP Pro is wirelessly connected through a D-Link ... This part of the network works without any problems. ...
    (microsoft.public.pocketpc.wireless)
  • Re: Specs for an E510. Anyone want to comment?
    ... Both are included with MCE. ... > Interesting, I'll take your word that it's really built on Pro, however my ... > running Windows XP Media Center Edition 2005 are designed specifically for ... > access network resources after you reboot or log back on to the PC. ...
    (alt.sys.pc-clone.dell)
  • Re: Group Policy and user level access
    ... We are running Windows XP Pro and 2000 Pro on our computers. ... My second question is it possible to leave my users in the local admin ...
    (microsoft.public.win2000.security)
  • Re: Disabling CDW
    ... Follow up question Jim re:thumb drive ... How can I disable it also to all my users in network? ... I'm using Windows XP Pro and I'm running Windows 2000 AD Domain. ...
    (microsoft.public.windowsxp.hardware)