Sharepoint 2010 sharepoint 2010网站中的自定义Web部件问题

Sharepoint 2010 sharepoint 2010网站中的自定义Web部件问题,sharepoint-2010,web-parts,Sharepoint 2010,Web Parts,配置alternet访问映射后,在单击web部件的链接时,站点中不会显示自定义web部件 引发异常: 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 tempraril

配置alternet访问映射后,在单击web部件的链接时,站点中不会显示自定义web部件 引发异常:

 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.

请帮助某人解决这个问题。

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

如果可能,发布web部件代码