Friday, January 27, 2012

please help System.Data.SqlClient.SqlClientPermission problem

im getting this error when i try to access the application from the network. but in my computer work fine

Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

please help... thanxs

When the asp.net application is deployed onto the webserver the asp.net worker process may be using the context of an account that does not have permissions to the database.

Please check the directory security tab for your website/virtual directory in IIS.

|||

the security tab if the iis is the for anonimous access...

|||

royrfc:

the security tab if the iis is the for anonimous access...

You need to make sure the account specified for anonymous access has permissions to access your database

|||

already add IUSR_ and ASPNET user to the database and nothing.

the application is an windows control library created by me in vs2005 , added to the aspx page

|||

royrfc:

the application is an windows control library created by me in vs2005 , added to the aspx page

So it is the .NET applet trying to access the database. You may need to give it the permissions by using CAS or declaratively I think.

I am not that knowledgable in this area so have a read of these articles, they may help

http://support.microsoft.com/kb/315529

http://msdn2.microsoft.com/en-us/library/Aa302424.aspx

|||

need help with that...

try some forums explaining CAS, but no luck at all

need help

No comments:

Post a Comment