1
안녕하세요 회원 가입 신청서에서 "회원에게 이메일 보내기"기능을 구현할 때 다음과 같은 문제가 발생했습니다. 일부 조사를 수행하고 추가했습니다. Web.config에MVC3의 보안 예외
<system.web>
<securityPolicy>
<trustLevel name="Full" policyFile="internal"/>
</securityPolicy>
</system.web>
을 입력 한 다음 서버에 다시 배포했지만 문제가 여전히 존재합니다. 어떤 아이디어? 미리 감사드립니다.
Server Error in '/TestApp' Application.
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
? 내가 생각할 수있는 유일한 점은 당신이 그것을 덮어 쓰고 있다는 것입니다. – Gray