.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Debugger endpoint configuration

Posted By:      Posted Date: September 09, 2010    Points: 0   Category :WCF
When I started my current project, I was relatively new and followed the default WCF template closely as a result.  For a while I was running it in the Visual Studio debugger, which allowed me to develop the WCF service without having to worry about deployment.  As such, I never really had to deal with web.config.Then I got to the point where I tried deploying it, and things got messy.  Long story short, I tried hosting it in a windows service, ran into some problems with regards to endpoint configuration, and had to mess around with web.config quite a bit.  After some learning I decided it would be best to do a rollback to before I had even created the windows service, and start again with a fresh windows service.I've removed the windows service and its installer from my solution, and I decided to try and run the WCF service in the debugger.  However, this did not work, and I got an error page stating the following:  No protocol binding matches the given address ''. Protocol bindings are configured at the Site level in IIS or WAS configuration. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.  Exception Details: System.InvalidOperationException: No protocol binding matches the given address 'h

View Complete Post

More Related Resource Links

An endpoint configuration section for contract 'xxx' could not be loaded because more than one end



I'm trying to test calling a webservice, I've found several free ones on http://webserviceshare.com, but none of them work for me.  Some of them give example calling code in C# which I've translated to VB.NET, they're typically just two to four lines, I don't think I've translated them incorrectly.

On that I've tried is US Zip Validator.  I added a Service Reference to http://www.webservicemart.com/uszip.asmx?WSDL, called ZipService.

I then call it like so:

            Dim myZipService As ZipService.USZipSoapClient = New ZipService.USZipSoapClient()
            Dim myCity As String = myZipService.ValidateZip("27707")

I get the following error on the first line of code:

"An endpoint configuration section for contract 'ZipService.USZipSoap' could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred endpoint configuration section by name."

A page with information on this web service (including C# source code) is at:


more than one endpoint configuration for that contract was found



This post is in continuation to the following post


I could resolve the later.  however after binding with namedpipe, I tried now to add an endpoint on tcp. hence I updated the host config file to the following




<service behaviorConfiguration="metadataSupport" name="WCFServiceComponent.DemoClass"

debugger is not hitting the breakpoint


I made a class library,all dlls of all the helping class library.for debugging it put the breakpoints at specifiv locations.It worked fine for 2 times but at third time it jumped the breakpoints, I dont know why????
I displayed the strings before and after the breakpoints to check that is it actualy going to the breakpoint,!! yes it is going to the breakpoint but not stopping on it. I did'nt made any changes to any settings.
On google I found something in tool-->Options-->general-->check the unhandaled execptions but I m using VS 2005 , I could not found any check box regarding unhandeled execptions or breakpoints.
I tryied these methods also 
1. Using precision guided missiles: Delete the .pdb files in your obj and bin folders. Recompile. Run.
2. Carpet bomb all .dlls: Delete and reload all the referenced .dlls (Like your class projects)
3. Release a WMD: delete the contents of the very obj and bin folders itself so that all  .pdbs and .dlls are annihilated. Reload the .dlls required and give it a shot.
4. VS.Net magic: Close VS.Net and restart. Rebuild. Run.

but all is fruitless
Please help me!!!!!!!!!!!!!!!!!!!!!!!!

ASP.NET Configuration not opening


I recently upgraded to VS 2010 and downgraded to SQL Server 2005. Now when I go Website > ASP.NET Configuration nothing happens.

It's likely this has to do with the fact that when I was installing SQL Server I got the 'ASP.net Version Registration requirement' warning, as well as the 'Failed to find the ASP.net Version Registration requirement with MS IIS'.

Anyone know what I need to get ASP.NET Configuration working?

Could not find default endpoint element that references contract 'CurrencyProxy.CurrencyServiceSoap



I created 2 projects in my solution:

  1. Classic asp.net web service (asmx)
  2. Class library project which references service
  3. web site project which references class library project
  4. Windows app project which references service.

Both projects were created in 3.5 framework and in Visual Studio 2008 Beta 2.

I added web service reference to Class library project. When it asked for namespace I typed "CurrencyProxy". Projects build ok, but when I run web app, Class library throws an error: Could not find default endpoint element that references contract 'CurrencyProxy.CurrencyServiceSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

I believe it has something to do with app.config in Class library project. Here is part from app.config:

<binding name="CurrencyServiceSoap" closeTimeout=

Patterns in Practice: Convention Over Configuration


We look at some techniques you can adopt to reduce the amount of housekeeping code you write so you can focus on the essence of the application.

Jeremy Miller

MSDN Magazine February 2009

Test Run: Configuration Testing With Virtual Server, Part 2


Because Virtual Server is built upon a set of COM modules, you can automate the creation and testing of virtual machines. Here we use Windows PowerShell to run the tests.

Dr. James McCaffrey and Paul Despe

MSDN Magazine December 2008

Test Run: Configuration Testing With Virtual Server, Part 1


This time James McCaffrey sets up a virtual environment to use for configuration testing to introduce you to software configuration testing with Microsoft Virtual Server

Dr. James McCaffrey

MSDN Magazine September 2008

Netting C++: Configuration with XML


Stanley B. Lippman explores the use of C++/CLI as a pure Microsoft .NET Framework-compliant language.

Stanley B. Lippman

MSDN Magazine August 2007

Configure This: Parameterize Your Apps Using XML Configuration In The .NET Framework 2.0


There are a number of ways to configure an application in the .NET Framework 2.0. This article explores the classes of the revamped System.Configuration namespace and explains how to use XML configuration files for your app configuration settings.

Bryan Porter

MSDN Magazine June 2006

Proxy Detection: Take the Burden Off Users with Automatic Configuration in .NET


Proxy settings can be a real pain in the neck and very frustrating for users to configure properly. In this article, Durgaprasad Gorti discusses how you can use automatic proxy configuration via script and how it works in the Microsoft .NET Framework 1.1 and 2.0.

Durgaprasad Gorti

MSDN Magazine August 2005

CLR Debugging: Improve Your Understanding of .NET Internals by Building a Debugger for Managed Code


With the release of .NET, the Microsoft scripting strategy has evolved. Script engines can now compile or interpret code for the Microsoft common language runtime (CLR) instead of integrating debugging capabilities directly into apps through Active Scripting. With that change comes a new set of published services for including debugging functionality in a custom host application. You'll see how to use the debugging services published in the .NET Framework to create a full-featured CLR debugger that allows you to set breakpoints, view call stacks, browse variables, view processes, enumerate threads, and perform other important debugging tasks.

Mike Pellegrino

MSDN Magazine November 2002

Weird security configuration error message


Recently something has gone wrong with our website so that whenever you try to access an aspx file, it shows the following error:


Server Error in '/RALSWeb' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Access is denied: 'RalsWeb'.

Source Error:

Line 256:                <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 257:                <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 258:                <add assembly="*"/>
Line 259:            </assemblies>

Unrecognized configuration section httpHandlers.

I spliced this from the webconfig of the working program into another application's webconfig. 
I have just this one error here. Is it ok to have different locations with different system.web areas
<?xml version="1.0"?>
		<!--Start settings for FreeTextBox-->
			<add verb="GET" path="FtbWebResource.axd" type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox"/>
		<!--End settings for FreeTextBox-->
		<compilation debug="true" strict="false" explicit="true">
				<add assembly="System.Design, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="MySql.Data, Version=, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
				<add assembly="System.Web, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
				<add assembly="System.Drawing, Version=, Culture=neutral, PublicK

Configuration Tool


I'm fairly new to ASP.NET and I'm trying to think of the best way to implement my first dynamic website. I've noticed the ASP.NET Configuration tool and it seems quite useful but I have a few questions:

1. Can this page be accessed when the website goes live or is it best to make your own?

2. Can this tool handle custom SQL databases or must everything be built into the default one?

3. Can this tool be setup for local use initially and then changed for the hosting server details later on?

The website I'm build will have user account features, with a news and articles section which the user will be able to interact with. So I need to create a database to handle this. However I don't know whether to completely ignore this tool and just make everything custom or try and incorporate that into the ASP.NET Configuration tool. Also, if everything is made custom can you still use the membership tool in visual studio? Thanks for any help :) 

Error with ASP.NET Configuration Tool


I'm trying to make an MVC 2 site, and I've run into a bit of a snag.  I want to add user roles to my system via the configuration tool, but every time I click the Security tab I get the following error:

"There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Could not load type 'HandiGamer.MvcApplication'."

When I click on the 'Choose Data Store' button, it tells me I'm already using AspNetSqlProvider.

I have a .mdf file for the rest of the site's db, but didn't make any tables for membership as I thought all of that would be handled by the configuration tool.

Am I missing a step?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend