HELP!  Client (dll) Server (WCF Server) Hosted IIS7
------------------------------------------------------------------------

*Client cannot open channel (Stack trace below):*

This appears to be a security issues, something perhaps in the bindings of
the WCF service and the client.  I have set
<wsHttpBinding>
<binding name="MyBinding">
<security mode="None">
<transport clientCredentialType="None"/>
<message establishSecurityContext="false"/>
</security>
</binding>
</wsHttpBinding>

I deployed to IIS7, then I used the svcutil to poke at the service

svcutil.exe http://wdscsppmapp02.sc.wdc.com:41085/DIEIRegEx.svc?wsdl

my <message establishSecurityContext="false" setting is not persisted even
though it's in the webconfig file??  *HELP!!*

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <system.serviceModel>
        <bindings>
            <wsHttpBinding>
                <binding name="WSHttpBinding_IRegEx" closeTimeout="00:01:00"
                    openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00"
                    bypassProxyOnLocal="false" transactionFlow="false"
hostNameComparisonMode="StrongWildcard"
                    maxBufferPoolSize="524288"
maxReceivedMessageSize="65536"
                    messageEncoding="Text" textEncoding="utf-8"
useDefaultWebProxy="true"
                    allowCookies="false">
                    <readerQuotas maxDepth="32"
maxStringContentLength="8192" maxArrayLength="16384"
                        maxBytesPerRead="4096" maxNameTableCharCount="16384"
/>
                    <reliableSession ordered="true"
inactivityTimeout="00:10:00"
                        enabled="false" />
                    <security mode="None">
                        <transport clientCredentialType="Windows"
proxyCredentialType="None"
                            realm="" />
                        <message clientCredentialType="Windows"
negotiateServiceCredential="true"
                            establishSecurityContext="true" />
                    </security>
                </binding>
            </wsHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://localhost:41085/RegEx.svc";
                binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_IRegEx"
                contract="IRegEx" name="WSHttpBinding_IRegEx" />
        </client>
    </system.serviceModel>
</configuration>



(Client error)
Server stack trace:
   at
System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message
reply, MessageFault fault, String action, MessageVersion version,
FaultConverter faultConverter)
   at
System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime
operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action,
Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[]
outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action,
Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[]
outs)
   at
System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage
message)
Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
   at WebApplication1.RegExService.IRegEx.ProcessQueue()
   at WebApplication1.RegExService.RegExClient.ProcessQueue() in
C:\Documents and
Settings\turner_we\Desktop\SampleWCF\TestWCFApp02\WebApplication1\WebApplication1\Service
References\RegExService\Reference.cs:line 71
   at WebApplication1._Default.Button1_Click(Object sender, EventArgs e) in
C:\Documents and
Settings\turner_we\Desktop\SampleWCF\TestWCFApp02\WebApplication1\WebApplication1\Default.aspx.cs:line
24
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument)
   at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

(Exception Message Log)
Could not connect to http://localhost:41085/RegEx.svc. TCP error code 10061:
No connection could be made because the target machine actively refused it
10.20.68.47:41085.
Server stack trace:
   at
System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan
timeout)
   at
System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan
timeout)
   at
System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan
timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan
timeout)
   at
System.ServiceModel.Security.CommunicationObjectSecurityTokenProvider.Open(TimeSpan
timeout)
   at
System.ServiceModel.Security.SecurityUtils.OpenTokenProviderIfRequired(SecurityTokenProvider
tokenProvider, TimeSpan timeout)
   at System.ServiceModel.Security.SymmetricSecurityProtocol.OnOpen(TimeSpan
timeout)
   at
System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan
timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan
timeout)
   at
System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChannel`1.OnOpen(TimeSpan
timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan
timeout)
   at
System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation
operation, EndpointAddress target, Uri via, SecurityToken currentToken,
TimeSpan timeout)
   at
System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan
timeout)
   at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan
timeout)
   at
System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan
timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan
timeout)
   at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan
timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open()
Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
   at System.ServiceModel.ICommunicationObject.Open()
   at RegExCLR.WCFRegExClient.RegExProcess()


-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to