• Sajay's Blog

    Thoughts on BasicHttpBinding, Security and SSL

    • 0 Comments
    BasicHttpBinding, can there be security?. Yes! The point is this binding can be secured and that too with transport level security and restricted to https(SSL) or message level Check this post for details. http://blogs.msdn.com/drnick/archive/2006/06...
  • Sajay's Blog

    Disabling Anonymous Authenticaiton on IIS for Message Security and Impersonation

    • 4 Comments
    When hosting WCF services in IIS we would ideally want to disable anonymous authenticaion on a website when there are other resources or type of endoints being hosted on that site. The solution to this is not quite obvious.The problem basically is that...
  • Sajay's Blog

    Powershell Script to create an MSMQ

    • 7 Comments
    Here is a script to quickly create and delete queues. This was based out of this post . Usage : CreateQueue.ps1 <-c,d> <queuename> <Y/N - Private> <user> <all:restricted Permission> [T:Transactional]
  • Sajay's Blog

    Using a Session in WCF through AspNetCompatibility

    • 5 Comments
    Firstly let us all thank Steve Main . The session/state model is the same that is leveraged by the asp.net framework and hence all the feature of state management comes bundled with it. On a moral note its the responsibility of using this is upto the...
  • Sajay's Blog

    WCF Performance Counters

    • 2 Comments
    Note: Cross posted from Sajay . We generally need to have a quick set of performance counters to identify a performance issue with a service. Shown below are three new counters that you will find with WCF 4.0. I also want to emphasize on the Calls...
  • Sajay's Blog

    TransportWithMessageCredentials - I need to know who is knocking on my door.

    • 4 Comments
    The point to be noted here is that even though the security facts of comminication like integrity and confidentiality is taken care of by the transport we might not get enough information from the client as to "Who are you?". Now for this case you need...
  • Sajay's Blog

    Passing a UserName as a supporting token.

    • 3 Comments
    Firstly i would like to thank Brent Schmaltz who helped me solve this problem. When trying to secure messages might require more than than the primary token to identity the client. We can then resort to sending additional information that would help in...
  • Sajay's Blog

    Hiding UpdatePanel during UpdateProgress

    • 2 Comments
    This was a very simple requirement to hide the currently updating controls. I first ran to the the forums and came across this . The trick was quite simple. When we depend control inside the updatePanel this technique fails. The idea is to wrap the update...
  • Sajay's Blog

    Adding a Message Header without using a MessageContract

    • 2 Comments
    Using Message contracts is quite a straight forward way of creating and adding message headers.But then again you might just want to add a header without going downt that route like this post by Kenny . You generally come across 2 scenarios where you...
  • Sajay's Blog

    Load Balancing WCF - basicHttpBinding

    • 1 Comments
    Load balancing WCF with basicHttpBinding can be done using the keepAliveEnabled property when there is connection reuse. Basically this property when enabled, enables a client to maintain a persistent connection with the service and gives enhanced throughput...
  • Sajay's Blog

    Timeouts and WCF - httpRuntime

    • 1 Comments
    There seems to be very little documentation around the timeout behaviors for the client and service and configuring so many knobs can get you in a fix if you dont know what you are tweaking. The below snippet shows how enable one of these scenarios to...
  • Sajay's Blog

    Message Inspector with Custom Behavior and IClientMessageInspector

    • 1 Comments
    My goal was to to make a simple MessageInspector so that I can see what message is going out at some point and probably add some info into the headers at the client side. Now the SDK had quite a good sample of the message inspector implementation but...
  • Sajay's Blog

    Web Hosted Sample with UserNamePassword Supporting Token

    • 1 Comments
    In the Passing a UserName as a supporting token post was pretty much a single console app to demo the basic flow. This sample is a bit more richer and shows a web hosted service that requires the usernameSecurity token. To configure it please create...
  • Sajay's Blog

    Musings on Workflow Terminated and Exception Handling

    • 3 Comments
    When a workflow runs an activity and that activity throws some kind of unhandled exception you would notice that your workflow get terminated. I have see in many articles that explain how the termination happens. Now this is fine only for a rare set of...
  • Sajay's Blog

    Script for setting up Certificates for WCF

    • 1 Comments
    I thought this script might be quite useful to set up certificates for testing with services hosted in IIS. This uses 3 tools present in the SDK folder. 1. makecert 2. certmgr 3. FindPrivateKey You can find these in the WCF samples. Note: Make sure you...
  • Sajay's Blog

    Intalling and Running your STS for Cardspace

    • 0 Comments
    I realized that there were many gotachs when running the sample STS that is posted here . This has evolved and the experience is really improved. Thanks to Garrett . Some steps Download the sample from the site and run the setup script. You...
  • Sajay's Blog

    Disabling JIT Optimizations

    • 1 Comments
    INI files are not dead yet :) Now if you wanted to disable JIT optimization then place this into your application directory as a <appName>.ini file [.NET Framework Debugging Control] GenerateTrackingInfo=1 AllowOptimize=0 Why would you...
  • Sajay's Blog

    DataContract names for Generic Types

    • 0 Comments
    When generating proxies for Data contracts that are generics types, we see that the hash of the name follows the types to avoid naming collision.To avoid this we can expose a type as follows [ DataContract( Name=" ShapeWithDimensionsIn {0} ) ] public...
  • Sajay's Blog

    Errorlevel and Findstr

    • 2 Comments
    ErrorLevel is not %ERRORLEVEL% . This is probably the first one you should read. Next is the usage of the ERRORLEVEL statement. http://support.microsoft.com/kb/69576 The following table shows the effect of statement when writing your batch scriipt...
  • Sajay's Blog

    metadataPublishing required on Service Behavior

    • 0 Comments
    If you tried generating the proxy against the STS sample this is what you end up with. Microsoft (R) Service Model Metadata Tool [Microsoftr .NET Framework, Version 3.0.50727.357] Copyright (c) Microsoft Corporation. All rights reserved. Error:...
  • Sajay's Blog

    Concurrent Receives - MaxPendingReceives

    • 0 Comments
    Note: Cross posted from Sajay . Permalink One of the performance improvements we did with WCF 4.0 was to enable concurrent receives. This greatly helps scenarios where we need to do some kind of work like DB authentication with username passwords or...
  • Sajay's Blog

    WCF Service with .asmx extensions

    • 0 Comments
    We already have quite a large number of ASMX services and clients. One major point to be kept in mind is that WCF and asmx services can co-exist without any problem and migration to WCF should be your first and only choice unless there is a reason like...
  • Sajay's Blog

    Can you call private members from a different class?

    • 6 Comments
    Standing by OO principles we would have to say "Private memebers are only visible to to the class in which it is defined" This is the MSDN Defintion for the C# private keyword "The private keyword is a member access modifier. Private access is the...
  • Sajay's Blog

    Find processes that have open handles to your files - Powershell

    • 0 Comments
    Note: Cross posted from Sajay . Permalink This seemed like a really nice mix of handle.exe from sysinternals and powershell. Check out the script at http://msgoodies.blogspot.com/2009/03/get-openfile.html Update fix for get-process piping You have...
  • Sajay's Blog

    Sending a simple String using WCF - Understanding the channel stack.

    • 1 Comments
    The snippet below might not be for the faint hearted. Primarily since its quite gory wcf. I realized that there is so much abstraction in the Service model's channel layers thats its only justice that someone does a simple sample in how to send and read...
Page 1 of 5 (114 items) 12345