2011-08-27 97 views
0

配置alternet访问映射自定义Web部件后,未在网站上显示,同时单击链接的WebPart 抛出异常:自定义Web部件问题在SharePoint 2010网站

The "webpart5" Webpart appears to be causing a problem. Exception has been thrown by the target of an invocation. 
Web Parts Maintenance Page: If you have permission, you can use this page temprarily close Web parts or remove 
personal settings. For more information, contact your site administrator. 

请帮助别人如何解决这个问题。

+0

请提供示例代码 – int32

回答

0

显然是AAM设置的问题。检查您如何访问Web部件中的网站。它使用SPContext吗?或者你正在实例化新的SPWeb对象。如果您正在实例化新对象,请检查您所指的是哪个区域。

如果可能,发布Web部件代码。

相关问题