8/24/2010 1:40:19 PM
Security Exception error after upgrade to 5.5
After doing an upgrade to 5.5 I get a "Security Exception" error;
"System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
We're using IIS 7 and when I try to load the .NET Compilation settings, it gives an error about a duplicate key entry;
Line number: 83
Error: Cannot add duplicate collection entry with type "add" with unique key attribute "assembly" set to "System.Configuration, Version=220.127.116.11, Culture=neutral, PublicKey Token=B03F5F7F11D50A3A"
The web.config file I used was in the upgrade package and the only thing I modified in that file was to add the connection string. I've tried commenting out that particular line but it then gave a similar error about the line immediately following (I then uncommented the line).
Any resolution? A Google search reveals all kinds of different results.