What is Level Trust of an ASP.NET application?

Asked

Viewed 185 times

6

What is the purpose of setting up Level Trust in an ASP.NET application?

It protects the server from something?

It protects the application from something?

In which case or for what reason it is recommended or necessary to change this setting?

1 answer

6


What is the purpose of setting up Level Trust in an ASP.NET application?

You determine what the application can and cannot do. Some features can be a little dangerous, especially if it can be inadvertently invoked externally.

The less confidence you require from the application, the safer it will be (it doesn’t mean that this is the only thing that makes it safe). If it requires more than the server allows it will not run. If you host a shared server, you can only use what they allow.

It protects the server from something?

Yes, you can restrict what applications can do on your server.

It protects the application from something?

In a way yes, since if you define that the application will have a limited level that prevents it from being functionalities, the application will not work if one of them is run by accident.

In which case or for what reason it is recommended or necessary to change this setting?

In general it is very useful when the server is shared and you do not want to allow other users (developers) of it to do anything on the server.

Level documentation.

More information.

  • What a difficult word: inadvertently! I didn’t know

  • Thanks a lot @bigown.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.