Last post Jan 23, 2007 10:25 PM by hazeltan
Jan 23, 2007 10:25 PM|hazeltan|LINK
I have set up a testing virtual server on my local machine.
I installed win server 2003, wss 2.0, sql server 2000, and visual studio .net 2003.
i tried to create a project in C# but when i build it and import the web part (.dwp) into the page, there is this error msg
"A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered on this site as safe"
I seached most of the sites and they informed that the problem lies in the safe control in web.config
i enter the safe control in web.config but i does not know where to put my simpleWebPart.dwp file. (i cant find any wpcatalog folder in my inetpub, only wpresource)
below is the safe control i added into the web.config file:
<SafeControl Assembly="SimpleWebPart, Version=188.8.131.52, Culture=neutral, PublicKeyToken=ddb2eac06c4607d6" Namespace="MyWebParts" TypeName="*" Safe="True" />
i am using a strong name key too.(Specs.snk)
Thanks in advance!