Edit roles , error wcf bad request 400.

Edit roles , error wcf bad request 400.

Old forum URL: forums.lhotka.net/forums/t/10529.aspx


NickyLarson posted on Saturday, July 16, 2011

Hello everyone, Hi give up..

 

I am trying to add new roles to the ProjectTracker PTWin, but i always get the same error when i trie to insert a new one

System.ServiceModel.ProtocolException was caught. Message=”The remote server returned an unexpected response: (400) Bad Request.”

 

The Trace Error at the end of the post.

 

I search in the net but none off the solution work for me, i don´t know what to do else.

I trie this http://www.lhotka.net/cslanet/faq/DataPortalFaq.ashx but no luck also.

Please i need help, because my project i am developping had the bases of ProjectTracker, if i can´t make this working maybe i have to quit of my project.

 

Thanks in advance.

 

My Web.Config. from WcfHost (Server)

  <system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="wsHttpBindingSettings" closeTimeout="00:10:00" openTimeout="00:10:00" sendTimeout="00:10:00" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" messageEncoding="Text">
        <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
        </binding>
      </wsHttpBinding>
    </bindings>
   
   
   
    <services>
      <service behaviorConfiguration="returnFaults" name="Csla.Server.Hosts.WcfPortal">
        <endpoint binding="wsHttpBinding" contract="Csla.Server.Hosts.IWcfPortal"/>
      </service>
    </services>
   
    <behaviors>
      <serviceBehaviors>
        <behavior name="returnFaults">
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>

 

My App.Config from PTWin (Client)

 

  <system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="wsHttpBindingSettings" closeTimeout="00:10:00" openTimeout="00:10:00" sendTimeout="00:10:00" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" messageEncoding="Text">
        <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
        </binding>
      </wsHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://localhost/WcfHost/WcfPortal.svc" binding="wsHttpBinding"
        bindingConfiguration="wsHttpBindingSettings" contract="Csla.Server.Hosts.IWcfPortal"
        name="WcfDataPortal" />
    </client>
  </system.serviceModel>

 

Best regards,

NickyLarson

 

 

 

-----------------------------------------------------------------------------------------------------------------


Server stack trace:
   em System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException, ChannelBinding channelBinding)
   em System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   em System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   em System.ServiceModel.Channels.ClientReliableChannelBinder`1.RequestClientReliableChannelBinder`1.OnRequest(TRequestChannel channel, Message message, TimeSpan timeout, MaskingMode maskingMode)
   em System.ServiceModel.Channels.ClientReliableChannelBinder`1.Request(Message message, TimeSpan timeout, MaskingMode maskingMode)
   em System.ServiceModel.Channels.ClientReliableChannelBinder`1.Request(Message message, TimeSpan timeout)
   em System.ServiceModel.Security.SecuritySessionClientSettings`1.SecurityRequestSessionChannel.Request(Message message, TimeSpan timeout)
   em System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   em System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   em System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
   em System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   em System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   em System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   em System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   em Csla.Server.Hosts.IWcfPortal.Update(UpdateRequest request)
   em Csla.DataPortalClient.WcfProxy.Update(Object obj, DataPortalContext context)
   em Csla.DataPortal.Update(Object obj)
   em Csla.DataPortal.Update[T](T obj)
   em Csla.BusinessListBase`2.Save()
   em PTWin.RolesEdit.SaveButton_Click(Object sender, EventArgs e) em E:\Projectos\CSLA\CSLA.3.8.3.0\netsamples-3.8.3-100506\CslaNet\cs\ProjectTrackercs\PTWin\RolesEdit.cs:line 59

RockfordLhotka replied on Monday, July 18, 2011

ProjectTracker doesn't work in 3.8, 4.0, or 4.1.

The last working ProjectTracker was for 3.6 or maybe 3.7. And the current 4.2 code in svn has a working ProjectTracker for ASP.NET MVC, with partially working WPF and SL apps too. I don't plan on a Windows Forms app for 4.2.

NickyLarson replied on Monday, July 18, 2011

Thanks Rocky for the reply.

 

Best regards,

NickyLarson

Copyright (c) Marimer LLC