"Cannot Complete the Request to Connect to Another Page" Error Message When You Programmatically Create a Cross-Page Connection (827387)
The information in this article applies to:
- Microsoft Windows SharePoint Services
SYMPTOMSWhen you programmatically create a cross-page connection
between a Web page that contains an IParametersInProvider Web Part and a Web Page that contains an IParametersInConsumer Web Part in your Microsoft Windows SharePoint Services Web site,
you may receive an error message that is similar to the following when you try
to connect to either page: Cannot complete the request to
connect to another page. Verify that your connection to another page was formed
correctly by re-creating or editing it in a Windows SharePoint
Services-compatible HTML editor, such as Microsoft
FrontPage CAUSEThis problem occurs in situations when Windows SharePoint
Services incorrectly processes a null ParametersInReady event.WORKAROUNDTo work around this problem, use a NoParametersIn event when you create the cross-page connection. In the PartCommnunicationsMain event in the provider, raise the NoParametersIn event instead of sending null parameters. The following is an
example of code that demonstrates this: public override void PartCommunicationMain()
{
//If the connection wasn't actually formed then don't want to send Ready event
if(_ParametersInConnectedCount > 0)
{
//If there is a listener, send ParametersInReady event
if (ParametersInReady != null)
{
//Need to create the args for the ParametersInReady event
ParametersInReadyEventArgs ParametersInReadyEventArgs = new ParametersInReadyEventArgs(); ParametersInReady(this, ParametersInReadyEventArgs);
}
else
{
//ParametersInReadyEventArgs.ParameterValues = null;
//Workaround......
//*******************************************************************************
NoParametersIn(this, new EventArgs());
//*******************************************************************************
}
}
}
STATUS Microsoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 7/27/2006 |
---|
Keywords: | kbpending kbBug KB827387 kbAudITPRO kbAudDeveloper |
---|
|