Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6589799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:13:15+00:00 2026-05-25T17:13:15+00:00

My WCF service[using basicHttpBinding] is hosted on IIS 6.Am able to access it using

  • 0

My WCF service[using basicHttpBinding] is hosted on IIS 6.Am able to access it using ?wsdl in the service url in IE browser .

I’ve a presenation layer in my winforms client and I added the reference of this service using ServiceReferences option in VS.Net which then generated a proxy.

When I call a method on this service, am getting this exception.What could I be missing here ?Thanks.

“Value cannot be null.Parameter name uri.” at
System.ServiceModel.Description.ClientViaBehavior..ctor(Uri uri)
at System.ServiceModel.Configuration.ClientViaElement.CreateBehavior()
at
System.ServiceModel.Description.ConfigLoader.LoadBehaviors[T](ServiceModelExtensionCollectionElement1
behaviorElement, KeyedByTypeCollection
1 behaviors, Boolean
commonBehaviors)

at
System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint
serviceEndpoint, String configurationName)

at System.ServiceModel.ChannelFactory.ApplyConfiguration(String
configurationName) at
System.ServiceModel.ChannelFactory.InitializeEndpoint(String
configurationName, EndpointAddress address) at
System.ServiceModel.ChannelFactory1..ctor(String
endpointConfigurationName, EndpointAddress remoteAddress) at
System.ServiceModel.EndpointTrait
1.CreateSimplexFactory() at
System.ServiceModel.EndpointTrait1.CreateChannelFactory() at
System.ServiceModel.ClientBase
1.CreateChannelFactoryRef(EndpointTrait1
endpointTrait) at
System.ServiceModel.ClientBase
1.InitializeChannelFactoryRef() at
System.ServiceModel.ClientBase`1..ctor() at
TestingClient..ctor() in C:\Presentation\Service
References\ServiceReference1\Reference.cs:line 268

Here is my config xml for server and client:

*Server:

<system.serviceModel> 
    <bindings> 
      <basicHttpBinding> 
        <binding name="ProviderBinding" closeTimeout="00:01:00" openTimeout="00:01:00" 
               receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false" 
               bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" 
               maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647" 
               messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"> 
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
          <security mode="Transport"> 
            <transport clientCredentialType="None" proxyCredentialType="None" realm="" /> 
            <message clientCredentialType="UserName" algorithmSuite="Default" /> 
          </security> 
        </binding> 
      </basicHttpBinding> 
    </bindings> 
    <services> 
      <service name="PTSWeb.PriceTestingService" behaviorConfiguration="PTSWeb.Service1Behavior"> 
        <!-- Service Endpoints --> 
        <endpoint address="" binding="basicHttpBinding" contract="PTSWeb.IPriceTesting"> 
          <identity> 
            <dns value="localhost"/> 
          </identity> 
        </endpoint> 
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> 
      </service> 
    </services> 
    <behaviors> 
      <serviceBehaviors> 
        <behavior name="PTSWeb.Service1Behavior"> 
                <serviceMetadata httpGetEnabled="true"/> 
          <serviceDebug includeExceptionDetailInFaults="true"/> 
        </behavior> 
      </serviceBehaviors> 
    </behaviors> 
  </system.serviceModel>

*Client:

<system.serviceModel> 
    <client> 
      <endpoint address="http://localhost/PTSWeb/PTSWebService.svc" 
        behaviorConfiguration="PTSWeb.Service1Behavior" binding="basicHttpBinding" 
        bindingConfiguration="IPriceTestingBinding" contract="IPriceTesting" 
        name="IPriceTestingPort" /> 
      <endpoint address="https://qaserver/webservice" 
                binding="basicHttpBinding" bindingConfiguration="ProviderBinding" 
                contract="Provider" name="ProviderPort" />      
    </client> 
    <bindings> 
      <basicHttpBinding> 
        <binding name="IPriceTestingBinding" closeTimeout="00:01:00" 
          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" 
          allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" 
          maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647" 
          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" 
          useDefaultWebProxy="true"> 
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 
            maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
          <security mode="None" /> 
        </binding> 
        <binding name="ProviderBinding" closeTimeout="00:01:00" openTimeout="00:01:00" 
               receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false" 
               bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" 
               maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647" 
               messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"> 
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
          <security mode="Transport"> 
            <transport clientCredentialType="None" proxyCredentialType="None" realm="" /> 
            <message clientCredentialType="UserName" algorithmSuite="Default" /> 
          </security> 
        </binding> 
      </basicHttpBinding> 
    </bindings> 

    <behaviors> 
      <endpointBehaviors>      
        <behavior name="PTSWeb.Service1Behavior"> 
          <clientVia/> 
        </behavior> 
      </endpointBehaviors> 
  </behaviors> 
  </system.serviceModel>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:13:15+00:00Added an answer on May 25, 2026 at 5:13 pm

    In the client config behavior, you have a ClientVia element without any URI defined. Either remove this behavior or define the via Uri.

    This quite well explain the goal and usage of the clientvia behavior : http://blogs.msdn.com/b/anilkumargupta/archive/2009/05/16/wcf-intermediate-service-between-client-and-server.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service that's hosted on IIS 7 using a basicHttpBinding .
I am developing a WCF service hosted by IIS, using VSTS2008 + C# +
.NET 3.5, VS2008, WCF service using BasicHttpBinding I have a WCF service hosted in
I have an IIS-hosted WCF service which is configured to use basicHttpBinding with transport
I'm trying to access a WCF service, exposed using basicHttpBinding, inside an ASP.NET 2.0
I wrote a wcf service that uses BasicHttpBinding with some url and a client
I've hosted an WCF service in SharePoint 2010 (basicHttpBinding) using this tutorial . The
I am trying to set up a streaming WCF service using basicHttpBinding. The service
Hi We developed web service using WCF service and hosted on Windows 2003 server
We are using WCF service on the client side we are planning to explicitly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.