PC Review


Reply
Thread Tools Rate Thread

Can't access to any DataBase

 
 
alberto
Guest
Posts: n/a
 
      11th Jan 2007
I'm working in a domain with C# 2005 and I can`t access to any data base.
The error is this:

Error de solicitud de permiso de tipo
'System.Data.SqlClient.SqlClientPermission,
System.Data, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.

Thank you very much in advance


 
Reply With Quote
 
 
 
 
Morten Wennevik [C# MVP]
Guest
Posts: n/a
 
      11th Jan 2007
Hi,

Without knowing any Spanish I recognive the words Error and Permisio(n?)
which would indicate you don't have permission to read from the database..

You are most likely using an with too few permissions to obtain any data..
For web applications the ASPNET account needs to be added on the SQL
Server or specify another user with known permissions. In any case, check
the database and verify the permissions of the account you are using.


On Thu, 11 Jan 2007 11:43:43 +0100, alberto <(E-Mail Removed)> wrote:

> I'm working in a domain with C# 2005 and I can`t access to any data base.
> The error is this:
>
> Error de solicitud de permiso de tipo
> 'System.Data.SqlClient.SqlClientPermission,
> System.Data, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089'.
>
> Thank you very much in advance
>
>




--
Happy Coding!
Morten Wennevik [C# MVP]
 
Reply With Quote
 
Marc Gravell
Guest
Posts: n/a
 
      11th Jan 2007
Sounds like a trust problem to me... is your app running with full
trust? It must have the "SQL Client" permission; in the standard
permission sets, I believe this is only included by "Everything" and
(in a different way) "FullTrust". If this is a client application
running from a remote location, then your best bet is to sign the
ClickOnce manifest so that it tells the CLR that it needs this access
(or "FullTrust").

Marc


 
Reply With Quote
 
Alberto
Guest
Posts: n/a
 
      12th Jan 2007
I'm running the app in the same machine than the server. Anyway, I tried to
connect to Access and the error is the same.

If enter in the computer as administrator the app works fine. The problem is
when I enter as limited user.

Thank you very much.

"Marc Gravell" <(E-Mail Removed)> escribió en el mensaje
news:(E-Mail Removed)...
> Sounds like a trust problem to me... is your app running with full trust?
> It must have the "SQL Client" permission; in the standard permission sets,
> I believe this is only included by "Everything" and (in a different way)
> "FullTrust". If this is a client application running from a remote
> location, then your best bet is to sign the ClickOnce manifest so that it
> tells the CLR that it needs this access (or "FullTrust").
>
> Marc
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to open an Access database object - Access Database Becomes Inaccessible Suzane Brandy Microsoft Access 2 21st Apr 2010 07:33 AM
Converting Access 97 database to Access 2007 database galit Microsoft Access Getting Started 5 1st Jan 2008 08:51 PM
importing data from one access database to another access database =?Utf-8?B?Y2M=?= Microsoft Access Database Table Design 1 26th Feb 2007 04:36 PM
Export Relationships Diagram for four new tables from test(developer) ms access database to production ms access database Bosiljka Kostiĉ Microsoft Access Getting Started 1 14th Feb 2007 11:45 PM
Export selected tables from old Access Database to new Access Database learning_codes@hotmail.com Microsoft Access Forms 1 5th Sep 2006 06:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:08 AM.