Can't access to any DataBase

A

alberto

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
 
M

Morten Wennevik [C# MVP]

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.
 
M

Marc Gravell

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
 
A

Alberto

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top