Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
So I moved my first Umbraco 8 site (8.0.1) up to my client's host GoDaddy and I am getting a yellow screen
"This program is blocked by group policy. For more information, contact your system administrator"
Having 20+ Umbraco7 sites already running on GoDaddy, I realized that forgot to include <trust level="full" /> in my web.config, so I added that, but this time... no change. Basically GoDaddy is blocking "\bin\roslyn\csc.exe" from executing. There are dozens of posts that say to just go to the web.config and comment out the compilers from the <system.codedom> section. But if I am using ModelsBuilder (which I am) I cannot remove those correct?
<trust level="full" />
All of my previous Umbraco7 sites have the compilers section included and they run just fine. Is there anything else that I can try?
I assume you are using one of the live modes in Modelsbuilder.
That will need to the roslyn compiler.
Better to you use API mode or Dll mode (generate the dll locally) to avoid this problem
I wrote a an article once about the different models builder modes : https://24days.in/umbraco-cms/2016/getting-started-with-modelsbuilder/
Thanks Dave -
That's exactly what I ended up doing. I had to go a rewrite my templates to no longer use the PureLive @inherits Umbraco.Web.Mvc.UmbracoViewPage<ContentModels.Home> style and go back and update a bunch of razor calls to use the longer syntax for getting Values and then switched out to Dll mode and the site came up on my shared hosting plans.
After reading your 24days.in post I think I may go back and try LiveDll. I wish I had found your post yesterday, but I ended up relying pretty heavily on this one. Although it is Umbraco 7 specific, most of it still applies.
I appreciate you taking the time to respond and for that detailed post that you made. Definitely bookmarked for future reference. :-)
Hi Dave and Proxicode
I have a related issue trying to deploy an Umbraco 8 website on GoDaddy.
I don't use ModelsBuilder Live Mode, but I'm using extensively the CSharp7 features in my Razor views (i.e. Null propagation).
Those features are not available if the Roslyn compiler is not enabled, so I'm in a tough spot.
I tried precompiling the views on publishing, but that would require include (and precompile) the Umbraco views as well.
Could not find a reasonable solution yet. If someone has an idea - other than dumping GoDaddy and moving to Azure - I will be happy to hear about it. Thx!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted