Click here to Skip to main content
15,886,919 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF ObservableCollection vs List Problem Pin
BenScharbach14-Oct-17 9:36
BenScharbach14-Oct-17 9:36 
GeneralRe: WPF ObservableCollection vs List Problem Pin
Kevin Marois14-Oct-17 10:34
professionalKevin Marois14-Oct-17 10:34 
Questiongenerating QR code in WPF Pin
Member 1036535810-Aug-14 11:23
Member 1036535810-Aug-14 11:23 
AnswerRe: generating QR code in WPF Pin
Peter Leow10-Aug-14 15:31
professionalPeter Leow10-Aug-14 15:31 
QuestionDisplay a PropertyGrid in an object's ToolTip Pin
Mc_Topaz7-Aug-14 0:16
Mc_Topaz7-Aug-14 0:16 
AnswerRe: Display a PropertyGrid in an object's ToolTip Pin
Afzaal Ahmad Zeeshan15-Aug-14 6:45
professionalAfzaal Ahmad Zeeshan15-Aug-14 6:45 
QuestionRender/Load the png image file to <image> xaml tag with retained resolution. Pin
Member 42819906-Aug-14 17:02
Member 42819906-Aug-14 17:02 
QuestionHow to Configuring WCF services to work over both HTTP and HTTPS Pin
devenv.exe4-Aug-14 20:26
professionaldevenv.exe4-Aug-14 20:26 
Iam trying to configure a service for access over both https and http from a silverlight 4 application. I am able to access the service over https but not over http. I have made some research over the net but can't seem to get the configuration right.

Below is my current settings in the my web.config file.

XML
<system.serviceModel>

    <bindings>
      <customBinding>
          <binding name="MyhttpsBinding">
          <binaryMessageEncoding/>
          <httpsTransport/> 
          </binding>
          <binding name="MyhttpBinding">
              <binaryMessageEncoding/>
              <httpTransport/>
          </binding>
      </customBinding>
    </bindings>

    <services>
      <service name="MyData" behaviorConfiguration="MyData">
        <endpoint address="" binding="customBinding" bindingConfiguration="MyData.customBinding.https" contract="MyData"/>
        <endpoint address="" binding="customBinding" bindingConfiguration="MyData.customBinding.http" contract="MyData"/>
        <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
      </service>
    </services>

    <behaviors>
      <serviceBehaviors>
        <behavior name="MyData" >
          <serviceMetadata httpsGetEnabled="true" httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
          <dataContractSerializer maxItemsInObjectGraph="2147483646"/>
        </behavior>
        <behavior name="">
          <serviceMetadata httpsGetEnabled="true" httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
  </behaviors>

  <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
  </system.serviceModel>


And below is my ServiceReferences.ClientConfig file
XML
<configuration>
<system.serviceModel>
    <bindings>
        <basicHttpBinding>
            <binding name="DataS" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
                <security mode="None" />
            </binding>
            <binding name="DataS1" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
                <security mode="None" />
            </binding>
        </basicHttpBinding>
        <customBinding>
            <binding name="CustomBinding_GetData">
                <binaryMessageEncoding />
                <httpsTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
            </binding>
        </customBinding>
    </bindings>

    <client>
        <endpoint address="//localhost/MyApp/Webservice/Data.asmx"
            binding="basicHttpBinding" bindingConfiguration="DataS1"
            contract="ServiceReference1.DataS" name="DataS" />

        <endpoint address="//localhost/MyApp/Webservice/GetData.svc"
            binding="customBinding" bindingConfiguration="CustomBinding_GetData"
            contract="GetData.GetData" name="CustomBinding_GetData" />
    </client>

</system.serviceModel>
</configuration>


What do i have mis-configured above that is making the calls to the service fail on http.
I cannot access the service via http but it works fine over https. And i have a requirement to support both https and http
"Coming soon"



QuestionWPF app that open an image file and draw rectangular areas on top of it that correspond to clickable portions of the image. Pin
Member 42819903-Aug-14 17:29
Member 42819903-Aug-14 17:29 
AnswerRe: WPF app that open an image file and draw rectangular areas on top of it that correspond to clickable portions of the image. Pin
Mycroft Holmes3-Aug-14 19:08
professionalMycroft Holmes3-Aug-14 19:08 
QuestionHow To Call A Method In A User Control Pin
Kevin Marois1-Aug-14 8:01
professionalKevin Marois1-Aug-14 8:01 
AnswerRe: How To Call A Method In A User Control Pin
Mycroft Holmes1-Aug-14 13:38
professionalMycroft Holmes1-Aug-14 13:38 
GeneralRe: How To Call A Method In A User Control Pin
Kevin Marois4-Aug-14 6:13
professionalKevin Marois4-Aug-14 6:13 
QuestionRe: How To Call A Method In A User Control Pin
Richard Deeming4-Aug-14 6:53
mveRichard Deeming4-Aug-14 6:53 
AnswerRe: How To Call A Method In A User Control Pin
Kevin Marois4-Aug-14 6:57
professionalKevin Marois4-Aug-14 6:57 
GeneralRe: How To Call A Method In A User Control Pin
Richard Deeming4-Aug-14 7:02
mveRichard Deeming4-Aug-14 7:02 
GeneralRe: How To Call A Method In A User Control Pin
Kevin Marois4-Aug-14 7:03
professionalKevin Marois4-Aug-14 7:03 
GeneralRe: How To Call A Method In A User Control Pin
Richard Deeming4-Aug-14 7:16
mveRichard Deeming4-Aug-14 7:16 
GeneralRe: How To Call A Method In A User Control Pin
SledgeHammer014-Aug-14 10:07
SledgeHammer014-Aug-14 10:07 
GeneralRe: How To Call A Method In A User Control Pin
Kevin Marois4-Aug-14 10:10
professionalKevin Marois4-Aug-14 10:10 
GeneralRe: How To Call A Method In A User Control Pin
SledgeHammer014-Aug-14 10:46
SledgeHammer014-Aug-14 10:46 
GeneralRe: How To Call A Method In A User Control Pin
Kevin Marois4-Aug-14 10:48
professionalKevin Marois4-Aug-14 10:48 
AnswerRe: How To Call A Method In A User Control Pin
_Maxxx_4-Aug-14 18:38
professional_Maxxx_4-Aug-14 18:38 
GeneralRe: How To Call A Method In A User Control Pin
SledgeHammer016-Aug-14 9:27
SledgeHammer016-Aug-14 9:27 
QuestionHow to send a fax using wpf? Pin
Kesavanksk24-Jul-14 23:41
Kesavanksk24-Jul-14 23:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.