SecurityAction.RequestMinimum is obsolete in .Net 4.0

旧街凉风 提交于 2019-12-03 05:26:56

From MSDN:

In the .NET Framework version 4, runtime support has been removed for enforcing the Deny, RequestMinimum, RequestOptional, and RequestRefuse permission requests. These requests should not be used in code that is based on .NET Framework 4 or later.

So, just remove it.

Some searching led me here for a similar VB.net rdlc error (so yes, I know the question was tagged C#). I did not utilize the offending code, but I did find that a stray underscore caused this error, for example: in a textbox expression you might accidentally put:

"This is a " & _
"test"

thinking you are in some code behind, but alas this generates this same error as listed above and once removed, the error was gone.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!