Pregunta: | 44560 - SYSTEM.SECURITY.SECURITYEXCEPTION |
Autor: | Esteban Rodriguez |
Acabo de crear un nuevo proyecto de Windows Forms, al ejecutarlo sin objetos el form me genera un mensaje de advertencia que dice: "This application is running in a partially trusted context"
Luego, cuando le agrego un SQLConection y lo ejecuto, genera el siguiente error: "An unhandled exception of type 'System.Security.SecurityException' occurred in WindowsApplication1.exe". Como lo puedo solucionar? |
Respuesta: | Esteban Rodriguez |
Al fin encontre la manera de solucionar el problema. Se debe ir .Net Configuration > My Computer > Runtime Security Policy > Enterprise > CodeGroups > My_Computer_Zone y asignar el nivel de seguridad como full trust. |