This project is read-only.

Control Type Not Safe Error?

Mar 16, 2009 at 7:46 PM
Anyone have a cure for this one?
The control type 'Microsoft.MSIT.Ratings.Web.RatingsGenericControl' is not allowed on this page. The type is not registered as safe.

I am running 2008 Serrver with December PKS Beta. I assume this there is an entry needed for this control to be allowed safe. Unsure how to write it.
Apr 2, 2009 at 11:45 AM
Hi,

Please check if the following entries are present in your web.config file:

<SafeControl Assembly="Microsoft.MSIT.Ratings.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=039e36666027bfc6" Namespace="Microsoft.MSIT.Ratings.Administration" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.MSIT.Ratings.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=039e36666027bfc6" Namespace="Microsoft.MSIT.Ratings.Web" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.MSIT.Ratings.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=039e36666027bfc6" Namespace="Microsoft.MSIT.Ratings.Web.WebParts" TypeName="*" Safe="True" />
<SafeControl Assembly="Microsoft.MSIT.Ratings.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=039e36666027bfc6" Namespace="Microsoft.MSIT.Ratings.Web" TypeName="*" Safe="True" />

If they are missing then try adding them manually in the SafeControl section.

For your information the PKS March Beta has been release on Codeplex and is available for download and it contains the updated Ratings component.You can give it a shot as well.