What is the Level Trust of an ASP.NET application?

6

What is the Level Trust setting for an ASP.NET application?

Does it protect the server from anything?

Does it protect the application from anything?

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

    
asked by anonymous 31.10.2016 / 18:23

1 answer

6
  

What is the Level Trust setting for an ASP.NET application?

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

The less confidence you require from the safer application it will be. If it requires more than the server allows it it will not run. If you are hosting a shared server, you can only use whatever they allow.

  

Does it protect the server from anything?

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

  

Does it protect the application from anything?

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 executed by accident.

  

In which case or for what reason is it 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 its other users (developers) to do anything on the server.

Level Documentation .

More information .

    
31.10.2016 / 18:43