By clicking on the asp.net web application. Security exception

I would like to help with the following asp.net error that I now received after deploying my application in order to live

Description . The application attempted to perform an operation not permitted by the security policy. To grant this application the required permissions, contact your system administrator or change the application trust level in the configuration file .

Most messages say modifying the web config file and allowing trust. I read this http://msdn.microsoft.com/en-us/library/tkscy493.aspx , but I'm really not able to understand it.

If this helps clarify the situation. I can connect to the database and get the results using LINQ.dbml DataContext. However, when I try to assign results to an object, say, for example. The Data context is an external project compiled into a DLL and placed in the bin folder.

DataContext db = new DataContext("connectionstring");
var bankUser = (from u in db.Bankers
where u.banker_email == TXT_user.Text
&& u.banker_password == TXT_pass.Text
select u).Single();

it throws the error indicated above.

I have access only through the control panel, so any changes should be in the web.config file. I installed my own application pool for the project.

Any ideas appreciated.

0
source share
1 answer

Hai Kieran, In Your Web Configuration

Try this <trust level="Full"/>and we will see what happens ... Just try ...

Source Forums.asp.net

+1

All Articles