Sorry forgot to add the config file. The Host's web.config is:
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config. comments usually located in
\Windows\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n>
<configSections >
<sectionGroup name="system.we b.extensions"
type="System.We b.Configuration .SystemWebExten sionsSectionGro up,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5">
<sectionGroup name="scripting "
type="System.We b.Configuration .ScriptingSecti onGroup, System.Web.Exte nsions,
Version=3.5.0.0 , Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5">
<section name="scriptRes ourceHandler"
type="System.We b.Configuration .ScriptingScrip tResourceHandle rSection,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5" requirePermissi on="false"
allowDefinition ="MachineToAppl ication"/>
<sectionGroup name="webServic es"
type="System.We b.Configuration .ScriptingWebSe rvicesSectionGr oup,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5">
<section name="jsonSeria lization"
type="System.We b.Configuration .ScriptingJsonS erializationSec tion,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5" requirePermissi on="false"
allowDefinition ="Everywhere " />
<section name="profileSe rvice"
type="System.We b.Configuration .ScriptingProfi leServiceSectio n,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5" requirePermissi on="false"
allowDefinition ="MachineToAppl ication" />
<section name="authentic ationService"
type="System.We b.Configuration .ScriptingAuthe nticationServic eSection,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5" requirePermissi on="false"
allowDefinition ="MachineToAppl ication" />
<section name="roleServi ce"
type="System.We b.Configuration .ScriptingRoleS erviceSection,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5" requirePermissi on="false"
allowDefinition ="MachineToAppl ication" />
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings/>
<connectionStri ngs/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="false">
<assemblies>
<add assembly="Syste m.Core, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9"/>
<add assembly="Syste m.Xml.Linq, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= B77A5C561934E08 9"/>
<add assembly="Syste m.Web.Extension s, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"/>
<add assembly="Syste m.Data.DataSetE xtensions, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= B77A5C561934E08 9"/>
</assemblies>
</compilation>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows" />
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnl y"
defaultRedirect ="GenericErrorP age.htm">
<error statusCode="403 " redirect="NoAcc ess.htm" />
<error statusCode="404 " redirect="FileN otFound.htm" />
</customErrors>
-->
<pages>
<controls>
<add tagPrefix="asp" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5"/>
</controls>
</pages>
<httpHandlers >
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false "
type="System.We b.Script.Servic es.ScriptHandle rFactory, System.Web.Exte nsions,
Version=3.5.0.0 , Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"/>
<add verb="*" path="*_AppServ ice.axd" validate="false "
type="System.We b.Script.Servic es.ScriptHandle rFactory, System.Web.Exte nsions,
Version=3.5.0.0 , Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"/>
<add verb="GET,HEAD" path="ScriptRes ource.axd"
type="System.We b.Handlers.Scri ptResourceHandl er, System.Web.Exte nsions,
Version=3.5.0.0 , Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"
validate="false "/>
</httpHandlers>
<httpModules>
<add name="ScriptMod ule" type="System.We b.Handlers.Scri ptModule,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5"/>
</httpModules>
</system.web>
<system.codedom >
<compilers>
<compiler language="c#;cs ;csharp" extension=".cs" warningLevel="4 "
type="Microsoft .CSharp.CSharpC odeProvider, System,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<providerOpti on name="CompilerV ersion" value="v3.5"/>
<providerOpti on name="WarnAsErr or" value="false"/>
</compiler>
<compiler language="vb;vb s;visualbasic;v bscript" extension=".vb"
warningLevel="4 "
type="Microsoft .VisualBasic.VB CodeProvider, System,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<providerOpti on name="CompilerV ersion" value="v3.5"/>
<providerOpti on name="OptionInf er" value="true"/>
<providerOpti on name="WarnAsErr or" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!--
The system.webServe r section is required for running ASP.NET AJAX
under Internet
Information Services 7.0. It is not necessary for previous version
of IIS.
-->
<system.webServ er>
<validation validateIntegra tedModeConfigur ation="false"/>
<modules>
<add name="ScriptMod ule" preCondition="i ntegratedMode"
type="System.We b.Handlers.Scri ptModule, System.Web.Exte nsions,
Version=3.5.0.0 , Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"/>
</modules>
<handlers>
<remove name="WebServic eHandlerFactory-Integrated"/>
<add name="ScriptHan dlerFactory" verb="*" path="*.asmx"
preCondition="i ntegratedMode"
type="System.We b.Script.Servic es.ScriptHandle rFactory,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5"/>
<add name="ScriptHan dlerFactoryAppS ervices" verb="*"
path="*_AppServ ice.axd" preCondition="i ntegratedMode"
type="System.We b.Script.Servic es.ScriptHandle rFactory,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5"/>
<add name="ScriptRes ource" preCondition="i ntegratedMode"
verb="GET,HEAD" path="ScriptRes ource.axd"
type="System.We b.Handlers.Scri ptResourceHandl er, System.Web.Exte nsions,
Version=3.5.0.0 , Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5" />
</handlers>
</system.webServe r>
<system.service Model>
<services>
<service behaviorConfigu ration="mexBeha vior"
name="Preproces singServiceLibr ary.Preprocessi ngService">
<endpoint
address="https://Avacta-n31M-1:443/PreprocessingSe rvice/Service.svc"
binding="wsHttp Binding"
bindingConfigur ation="WsHttpBi nding_IPreproce ss"
name="WsHttpBin ding_IPreproces s"
contract="Prepr ocessingService Library.IPrepro cess" />
</service>
</services>
<behaviors>
<serviceBehavio rs>
<behavior name="mexBehavi or">
<serviceMetadat a httpsGetEnabled ="true" />
<serviceDebug includeExceptio nDetailInFaults ="true" />
</behavior>
</serviceBehavior s>
</behaviors>
<bindings>
<wsHttpBindin g>
<binding name="WsHttpBin ding_IPreproces s" closeTimeout="0 0:10:00"
openTimeout="00 :01:00" receiveTimeout= "00:10:00"
sendTimeout="00 :10:00"
allowCookies="f alse" bypassProxyOnLo cal="false"
hostNameCompari sonMode="Strong Wildcard"
maxBufferPoolSi ze="200000000" maxReceivedMess ageSize="200000 00"
messageEncoding ="Text" textEncoding="u tf-8"
useDefaultWebPr oxy="true">
<readerQuotas maxDepth="20000 000" maxStringConten tLength="200000 00"
maxArrayLength= "20000000" maxBytesPerRead ="20000000"
maxNameTableCha rCount="2000000 0" />
<security mode="Transport WithMessageCred ential">
<message clientCredentia lType="UserName " />
</security>
</binding>
</wsHttpBinding>
</bindings>
</system.serviceM odel>
</configuration>
"Manjree Garg" wrote:
Hi
I am creating a web service PreprocessingSe rvice with IIS Hosting and
transport layer security with user name and password.
I created a self-signed certificate IISHost in IIS which is issued to and
issued by the local host.
When I run the service from IIS (https) it is running fine but when I call
it from the client it is throwing the following exception:
An unhandled exception of type
'System.Service Model.Security. SecurityNegotia tionException' occurred in
mscorlib.dll
Additional information: Could not establish trust relationship for the
SSL/TLS secure channel with authority 'localhost'.
I can not figure it out what could be the problem.
Cheers.
Manjree