我遇到了上面提到的错误.我已经通过Powershell(add-spsolution,install-spsolution)和管理中心以3种不同的方式成功部署了webpart,throgh stsadm.Webpart是.wsp,它在Sharepoint 2007中运行没有任何问题.我已经更改<safe control>了web.config中的条目.
<SafeControl Assembly="TimeRecordingWP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" Namespace="TimeRecordingWP" TypeName="*" Safe="True" AllowRemoteDesigner="True" SafeAgainstScript="true" />
<SafeControl Assembly="TimeRecordingWP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" Namespace="TimeRecordingWP.Controls" TypeName="*" Safe="True" AllowRemoteDesigner="True" SafeAgainstScript="true" />
<SafeControl Assembly="TimeRecordingWP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" Namespace="TimeRecordingWP.Util" TypeName="*" Safe="True" AllowRemoteDesigner="True" SafeAgainstScript="true" />
<SafeControl Assembly="TimeRecordingWP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" Namespace="TimeRecordingWP.Dao" TypeName="*" Safe="True" AllowRemoteDesigner="True" SafeAgainstScript="true" />
Run Code Online (Sandbox Code Playgroud)
我已将<trust>参数更改为Full但未成功.Webpartcatalog中的预览 - >所有webparts和webpart都不会显示此帖子标题中指定的消息.我很丢失.
提前致谢..