Hi, I have recently built a new MVC 2 .net site that uses the MS Membership and am hosting this with Winhost. However I am getting an application error: Server Error in '/' 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 failed. This occurs when I try to edit my forms (using EditorFor). This is a big issue as I need to have the user enter details. I assume this is a trust level issue which I have set to full in my web.config, but its still happening, is this also set at a machine level? Please help
Download IIS manager http://www.iis.net/download/iismanager Connect to your site using the ftp details ( yourdomain.com ) ftp login and ftp password double click .NET trust levels icon. Set the value to High then click APPLY on the right. Give it a whirl and let me know.
I tried this but seems to make no difference. I thought maybe the trust was overwriting at the machine level. The code it fails on is anything to do with the editor control. <fieldset> <legend>Shipping Information</legend> <%: Html.EditorForModel() %> </fieldset>