"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

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: For more information about the IParametersInConsumer interface, visit the following Microsoft Web site: For more information about the Microsoft SharePoint Products and Technologies 2003 Software Development Kit (SDK), visit the following Microsoft Web site: For more information about Windows SharePoint Services visit the following Microsoft Web site:

Modification Type:MinorLast Reviewed:7/27/2006
Keywords:kbpending kbBug KB827387 kbAudITPRO kbAudDeveloper