BizTalk 2006, WCF (basicHttpBinding), Adding Web Reference will go in end less loop.

|  Posted: May 29, 2007  |  Categories: BizTalk Server

When I tried to add a “Web Reference” to a WCF service (basicHttpBinding), I encountered following behaviors

1. Either it will throw an exception showing “Failed to add Web Reference” and no more clue anywhere, OR

2. Message saying “This page is accessing information that is not under its control. This poses a security risk. Do you want to continue?” it wont wait for your reply, it will go on endless loop until you click “NO” (then you need to close some 50 or windows), OR

3. It will throw an exception message saying, “Could not generate BizTalk files. Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index”

I attached following screen shots for reference:

(OR)

Tweaking the WCF config file with different setting didn’t give me any luck. At last I figured out the issue is due to the namespace declaration for the WCF service. Just removing the namespace declaration and defaulting it to use “http://tempuri.org/” (which is not the best practice) solved the problem.

Before:

[ServiceContract(Name = “BackOfficeServices”, Namespace = http://companyurl/Service/BackOffice)]

After:

[ServiceContract(Name = “BackOfficeServices”]

I can’t really justify the reason, but I guess it will help someone.

Nandri!

Saravana

Author: Saravana Kumar

Saravana Kumar is the Founder and CTO of BizTalk360, an enterprise software that acts as an all-in-one solution for better administration, operation, support and monitoring of Microsoft BizTalk Server environments.

One Platform Operations, Monitoring and Analytics Software
BizTalk360

microsoft biztalk

Learn more

Over 500 customers across 30+ countries depend on BizTalk360

ServiceBus360

Azure service bus

Learn more

Start managing your Azure Service Bus namespaces in minutes

One Platform - Operations, Monitoring and Analytics Software
BizTalk360

microsoft biztalk

Learn more

Over 500 customers across 30+ countries depend on BizTalk360

One Platform - Operations, Monitoring and Analytics Software
ServiceBus360

Azure service bus

Learn more

Start managing your Azure Service Bus namespaces in minutes

Back to Top