Kentico 10 with Godaddy shared hosting.

Faris Rjoub asked on February 25, 2017 12:34

Hi, Is there any easy steps to host Kentico 10 site on Godaddy shared hosting. I need your help please. I have one Godaddy account for installation purposes (Plesk Hosting).I can provide it in order to deploy and check. Thanks

Error when i tried to call the site : 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.

Correct Answer

Brenden Kehren answered on April 24, 2017 03:10

Faris,

Kentico may run fine now but when you start enabling features and such, it won't. If the hosting provider has specific plans with 500MB app pools they haven't read Kenticos latest specs for v10. It will fail, I guarantee it. Just know its NOT a Kentico issue, it's a hosting/hardware issue.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Andrew Radburnd answered on February 26, 2017 00:15

Hi Faris,

Kentico requires full trust permissions for ASP.NET and GoDaddy by default has this set to Medium trust.

It looks like you should be able to change this in plesk following this instructions: What trust level can I use when running ASP.NET?

Cheers Andrew

2 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on February 27, 2017 22:22

Be careful in using any shared hosting. Many of them limit the amount of memory your IIS instance can use to something like 500MB or 800MB. This will work for a site that doesn't have a lot of content or visitors but if you get a lot of traffic, you will soon regret it.

1 votesVote for this answer Mark as a Correct answer

Faris Rjoub answered on March 27, 2017 18:44

Hi, Finally ,I prepared my self to start a Kentico journey with Godaddy. I already fixed the issue with GoDaddy hosting .The kentico is now work fine . Two steps needed to make it done: 1- Add line below inside web.config file - before the end of <system.web> section as below. </system.web> Thanks Andrew for your hint.

2- Remove all line inside <system.codedom> section Make it empty as below: <system.codedom>

</system.codedom>

Thanks Brenden for your comments. The question now : is there any required settings to accelerate the kentico processing or increase the timeout for request that IIS handles.

I need to monitor also the processing time for IIS request that handles clients / visitors request. any extra comments will be appreciated. Thanks

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 27, 2017 19:16

Faris,

I don't believe you can set your hosting to full trust in a shared environment in GoDaddy. So even though you added that in your config file, I believe their settings override it (which is why I no longer host there).

With GoDaddy shared hosting you're very limited and I guarantee you will receive errors from controls not loading because that particular request is going over your limit of memory IIS is allowing you to have. You could use a Web Application and precompile it before deploying it, this should help with memory issues. If you're using caching in Kentico, this uses quite a bit of memory as well so you can turn it off or down so you don't get memory errors.

Other than that, I'd highly recommend looking at different hosting which allows you to have at least 1GB of memory available. As of Kentico v8.2 the Kentico hosting requirements state to have at least 1GB of memory available. Not many shared hosting providers have AT LEAST 1GB memory available but I know PeoplesHost Business does have a 1GB plan. You may have to check out if GoDaddy has a shared business plan because they didn't a year ago.

0 votesVote for this answer Mark as a Correct answer

Faris Rjoub answered on April 23, 2017 22:28

Brenden, Thanks for your recommendations, Actually I tried SmarterASP.NET hosting , they have a good H.W infrastructure. I picked ASP.NET PREMIUM plan (500 MB RAM Dedicated for IIS Pool).

They have specific Kentico plans .So I am happy with that ,since they know Kentico and whats HW resources can be takes. Now , after 20 days passed, every thing is good until now. No way to continue with Godaddy special for Kentico.

Thanks again.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.