A WebPart on this Page cannot be displayed
Posted on 2012-03-25
I have a web part that I am trying to show up on the Central Admin Page and for some reason I get this:
Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type SiteCreateVisualWebPartSolution.VisualWebPart1.VisualWebPart1, SiteCreateVisualWebPartSolution, Version=22.214.171.124, Culture=neutral, PublicKeyToken=5ca4be4793e0f56b could not be found or it is not registered as safe.
Show Error Details
I thought I added the webpart info to the Central Admin web.config file properly but maybe not. Can somebody please provide for me how I should write the webpart into the web.config file? Here is what I have put into the web.config file below:
<SafeControl Assmebly="SiteCreateVisualWebPartSolution.VisualWebPart1.VisualWebPart1, Version=126.96.36.199, Culture=neutral, PublicKeyToken=5ca4be4793e0f56b" Namespace="SiteCreateVisualWebPartSolution.VisualWebPart1.VisualWebPart1" TypeName="SiteCreateVisualWebPartSolution.VisualWebPart1.VisualWebPart1, SiteCreateVisualWebPartSolution" Safe="True" SafeAgainstScript="False"/>
What can I do to fix this issue where I am still getting problems?