<p>We created several custom web parts for SharePoint 2007. They work fine. However whenever they are loaded, we get an error in the event log saying:</p>

<blockquote>
  <p>error initializing safe control - Assembly: ...</p>
</blockquote>

<p>The assembly actually loads fine. Additionally, it is correctly listed in the <code>web.config</code> and <code>GAC</code>.</p>

<p>Any ideas about how to stop these (Phantom?) errors would be appreciated.
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­</p>

You need to add a safecontrol entry to the web,config file, have a look at the following:
```
```
<SafeControls>
  <SafeControl
    Assembly = "Text"
    Namespace = "Text"
    Safe = "TRUE" | "FALSE"
    TypeName = "Text"/>
  ...
</SafeControls>
```
```
http://msdn.microsoft.com/en-us/library/ms413697.aspx