2012-02-28 68 views
0

我试图找到我的previous question中描述的问题的原因,其中UpdatePanel上的控件无法正常工作。奇怪的是,这只发生在主要位置以外的内部网客户端上。意外的System.InvalidOperationException:无法在Web部件上设置Visible属性

我在美国的一个客户端上安装了FireBug,并点击了一个控件。通常情况下,我希望进行部分更新,但响应是错误页面。

错误 发生意外错误。在日志中

Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator. 

Troubleshoot issues with Microsoft SharePoint Foundation. 

Correlation ID: f73a5a93-46c8-40c9-848e-d00395d927ce 

Date and Time: 27/02/2012 15:43:22 

寻找的的correlationID,我发现

Unexpected System.InvalidOperationException: The Visible property cannot be set on Web Part 'g_da16f6e5_a10a_412c_b051_98e67718af81'. 
It can only be set on a standalone Web Part. 
    at System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() 
    at System.Web.UI.Control.PreRenderRecursiveInternal() 
    at System.Web.UI.Control.PreRenderRecursiveInternal() 
    at System.Web.UI.Control.PreRenderRecursiveInternal() 
    at System.Web.UI.Control.PreRenderRecursiveInternal() 
    at System.Web.UI.Control.PreRenderRecursiveInternal() 
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) f73a5a93-46c8-40c9-848e-d00395d927ce 

有没有人有这样的问题之前?

什么可能导致这(请记住,在内部,这种部分更新工作正常)?

SOLUTION

我是如此固定的,为什么一个一个web部件不工作,我没有考虑其他的webpart。还有另一个实际使用Visible的web部件,这是原因。当用户不在主站点时,它将Visible属性设置为false。其实很简单,但花了我不少时间:-(

回答

3

尝试使用.Hidden代替。可见

我也有类似的问题,这是固定的对我来说...

+0

谢谢。我无法想象我可能在哪里使用Visible: - /!为什么它在内部工作但不是远程的任何解释? – paul 2012-03-15 07:31:08

相关问题