PermCalc tells you about your .NET app's security
Posted: (EET/GMT+2)
If you have ever had problems with security and permissions with .NET applications, you might have noticed that it can be tricky to solve which permissions you need to give your application for it to work. And it gets even worse if you are dealing with an application you didn't write!
Now, the .NET 2.0 SDK contains a handy command-line tool called PermCalc.exe to help you with these issues. The Permission Calculator Tool takes an .EXE or a .DLL file (assembly), and analyzes it. The result is an XML file, which contains, among other things, the permissions needed by the application, by each class or namespace. And even though the tool itself only comes with .NET 2.0, it can also analyze older .NET 1.1 applications.