i'm attempting to deploy simple asp.internet mvc frameworkd application in may hosting that is shared and that i get erro such as this:
Security Exception Description: The applying tried to perform a surgical procedure not permitted through the security policy. To grant this application the needed permission please speak to your system administrator or alter the application's trust level within the configuration file.
Exception Particulars: System.Security.SecurityException: Request the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2..., Culture=neutral, PublicKeyToken=b77a5c561934e089' unsuccessful.
An unhandled exception was produced throughout the execution from the current web request. Specifics of the foundation and placement from the exception could be recognized while using exception stack trace below.
During my user interface i'm seting "ASP.Internet 2. Full Trust". What i have to request for server administrator to alter?
You need to have the ability to bin deploy and run the MVC framework in medium trust. There's possible that there's another permission the webhost has had away however it should work. Are you currently testing using the default MVC project? If you work with other components (Structure Map, for instance), that might be leading to the mistake.
Take a look at Bin Implementing ASP.Internet MVC from Phil Haack about implementing and also the needed trust level.
Medium trust doesn't allow certain Reflection procedures. I suppose some a part of your code does or calls other area(s) of code.