Microsoft KB Archive/827387

= &quot;Cannot Complete the Request to Connect to Another Page&quot; Error Message When You Programmatically Create a Cross-Page Connection =

Article ID: 827387

Article Last Modified on 9/26/2007

-

APPLIES TO


 * Microsoft Windows SharePoint Services

-





SYMPTOMS
When 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



CAUSE
This problem occurs in situations when Windows SharePoint Services incorrectly processes a null ParametersInReady event.



WORKAROUND
To 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.



MORE INFORMATION
For more information about the IParametersInProvider interface, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms973447.aspx

For more information about the IParametersInConsumer interface, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms973441.aspx

For more information about the Microsoft SharePoint Products and Technologies 2003 Software Development Kit (SDK), visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms940484.aspx

For more information about Windows SharePoint Services visit the following Microsoft Web site:

http://technet.microsoft.com/windowsserver/sharepoint/bb684453.aspx

Keywords: kbpending kbbug KB827387

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.