Hi, I just subscribe to GoDaddy yesterday. I uploaded my website, created with Visual Studio 2013.
I am very new to VS 2013, and also Plesk.
When I open my domain, this error occurred;
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 for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
*** END QUOTE***
Thank you in advance for advises and suggestions.
I don't use VS 2013 so... What does your web.config say under system.web? I have heard that <trust level="Full" /> will fix this?
Try putting this in your web.config.
<system.web> <securityPolicy> <trustLevel name="Full" policyFile="internal"/> </securityPolicy> </system.web>
Not completely sure though. Anyone else?
roy darling *my posts seem a lot shorter in my head
I have this exact same problem publishing an MVC site. It works beautifully locally and even connects to the SQL db that I have created in my Plesk account. I publish and get either the security exception or denied by profile if I put in the Full trust level. I will try the Policy File option to see if that helps.
With over ten years with Godaddy, I have not had such a bad support experience. At least the first guy tried to find someone to help on a Saturday afternoon. The second support guy basically just said it is not their fault, get with MS for the correct settings.
Is it time to ditch Godaddy when my sites are up?
Does this help anyone? I still get "program blocked by group policy" when trying to execute /bin/roslyn/csc.exe
Nope. Not time to ditch Godaddy. This time on a call I still didn't get the solution, but I received a lengthy amount of help and direction to the solution. Roslyn CSC will not run on Godaddy shared hosting and there is no way to make it. I found https://social.msdn.microsoft.com/Forums/en-US/442b100a-2b88-4ac4-b655-0c1345791f15/roslyn-cscexe-we... and removed Roslyn from my project along with the precompile option listed. I haven't done any side-effect testing, but this looks extremely promising.