Security exception

Here I published my MVC web application, but it cannot be opened due to a security exception error. enter image description here

I tried using <trust level="Full" /> and <securityPolicy> . If I applied one of them to a Security Exception solution, it shows a Configuration Error: enter image description here

I would be grateful for your help if you have an alternative way to solve this problem.

+6
source share
2 answers

This is very similar to the security issue your IIS is experiencing, can you see if your web application has permissions on the folder or application pool?

0
source

Enable anonymous authentication mode in project properties
and in the Web.Config file add

 add key="enableSimpleMembership" to value="true" add key="autoFormsAuthentication" to value="true" 

Hope this works.

0
source

All Articles