jmcfet jmcfet

Niner since 2011


  • Anders Hejlsberg: Introducing TypeScript

    This is a brilliant tool especially if you are from the OO, type safe world as many of us are. Now these is nothing wrong with pure JS as we have produced some impressive products with it. My latest project was working on a video player where the UI is entirely in pure JS. This effort was made much easier with use of the Module Pattern, RequireJS and Underscore. The point is that JS is a language that was developed in 1994 in 10 days. Good grief Smalltalk took 9 years!  I am sure Typescript development effort is measured in person years. JS  languished for years but in the last 2-3 we seen a remarkable steps forward in the tooling. This is what is really helping as so much time is wasted in JS with things like typos.

    Anders is one of the great minds in this business and I applaud his efforts here. I really like the integration with Visual Studio including Express. It appears that Anders will evolve this product along industry standards and that is critical.

    Like everything this is not a solution for all but for one who has been in the trenches with JS I embrace a tool like this that can help in so many ways.

    I also feel is too bad that people cannot share opinions in a professional manner as I truely believe they do not realize that it diminishes the point they are trying to make.


  • Duplex ​Communicati​on with WCF in Silverlight 4 (Silverlight TV #34)

    for a wonderful and simple (I like simple ) see Jeff Prosise's article

    This really helped me as we needed more like Jeff is doing as we wanted our SL UI to repond to server progress events and the duplexMode="MultipleMessagesPerPoll" was causing my responses to be buffered so it looked like they were not working. Looking at Jeffs example cleared the air. It worked fine after converting project to SL4

  • Duplex ​Communicati​on with WCF in Silverlight 4 (Silverlight TV #34)

    thanks  to this great post  I kind of solved the problem by  removing MEX endpoint  But this seems like a bug me as MEX should only be used in discovery. The really wierd part is that after I remove the MEX endpoint and disable anonymous auth for the service I can still update my service from the SL client. Go fiqure something is not good here

  • Duplex ​Communicati​on with WCF in Silverlight 4 (Silverlight TV #34)

    I followed your excellent video and build a sample using"> and thanks to both sources
    thing looked great till we turned on Windows authentication"  and turned off "allow anonymous authentication" on the service using IIS console. We
    have alot of security minded clients and the thought of enabling
    this makes them run for the hills! I know that this should not present a security issue as the service will use Windows auth
    but the client is always right. When we do this we get the following error:

    Exception: System.ServiceModel.ServiceActivationException: The service '/DuplexService1/Service1.svc' cannot be activated
    due to an exception during compilation.  The exception message is: Security settings for this service require 'Anonymous'
     Authentication but it is not enabled for the IIS application that hosts this service.. ---> System.NotSupportedException: Security
    settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.

    Now we also tried building a CustomBinding

        <!-- Register the binding extension from the SDK. -->
            <add name="pollingDuplex" type="System.ServiceModel.Configuration.PollingDuplexElement, System.ServiceModel.PollingDuplex"/>
                    <add name="pollingDuplexHttpBinding" type="System.ServiceModel.Configuration.PollingDuplexHttpBindingCollectionElement,System.ServiceModel.PollingDuplex, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        <!-- Create the polling duplex binding. -->
            <binding name="pollingBindingConfig" closeTimeout="00:01:05" openTimeout="00:01:05" receiveTimeout="00:01:10" sendTimeout="00:01:10">
              <binaryMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
                <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                  maxBytesPerRead="4096" maxNameTableCharCount="16384" />
              <pollingDuplex maxPendingSessions="2147483647"
                             maxPendingMessagesPerSession="2147483647" />

              <httpTransport manualAddressing="false" maxBufferPoolSize="524288"
                maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Negotiate"
                bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Negotiate"
                realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
                useDefaultWebProxy="true" />


              <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
              <serviceMetadata httpGetEnabled="true" />
              <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
              <serviceDebug includeExceptionDetailInFaults="true" />
          <service name="DuplexService1.OrderService">

            <!-- Service Endpoints -->
            <endpoint address="" binding="customBinding"  bindingConfiguration="pollingBindingConfig" contract="DuplexService1.IDuplexService">
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />

    again the same result. The other curious thing is the that the SL ClientConfig file is always empty.(<configuration />. Surely SL Duplex communications does not
    require Anonymous auth to be on or we are up the creek.