• 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

    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

    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

    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

    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

    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

    Vista Beta 2 - An Eye Candy

    • 3 Comments
    I am really happy that hey kept the side bar. Really makes it an awesome space utilization for more wider monitors.
  • 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

    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

    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

    ServiceThrottlingBehavior defaults for .NET 4

    • 1 Comments
    This is one of the new updates that you will find with the .NET 4 installation. This was a decision we reached after understanding the fact that almost all customers had to bump this number up to a sweet spot of around 100 sessions. However the initial...
  • 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

    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

    ServiceAuthorizationManager and PrincipalPermission

    • 1 Comments
    You may face a problem when trying to check for Principal permission and demand in the CheckAccessCore of the SerivceAuthorizationManager and you might see a security exception. This is primarily because the threads principal is not set when this demand...
  • Sajay's Blog

    Checking the SIDs in the WindowsClaimSet

    • 1 Comments
    In continuation to my post of SAM vs PP , we concluded that to avoid fractured policy checking we can still check if the user belongs to a particular group by checking the occurence of an SID in the WindowsClaimSet that he submits to the service. One...
  • 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

    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

    Throttling using managed semaphores and named monitors

    • 1 Comments
    Firstly I would like to explain what is a managed semaphore. This was introduced to me during a session by Andy Clymer (developmetor). Basically the requirement of a semaphore is pretty clear but then again we don't have to resort to kernel objects and...
  • Sajay's Blog

    Xbox and Vista Connectivity

    • 1 Comments
    After quite a long blog on managed semaphores this would be quite a refresher. :) When trying to connect your XBOX 360 to your vista with Media center things can get pretty interesting. There are quite a few posts that would tell you trouble shooting...
  • 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...
  • Sajay's Blog

    Finally Zermatt's here

    • 1 Comments
    IIts been a long wait. After working with customers for getting out their token service and doing all the claim based black magic, finally we have a framework. Its not a bubble gum and match stick situation more and its a full framework. If you want...
  • Sajay's Blog

    WF 4.0 First Look!

    • 1 Comments
    More coming up Here is the First Look at WF 4.0 talk by Kenny http://channel9.msdn.com/pdc2008/TL17/
  • Sajay's Blog

    Bird is leaving the blogs.msdn.com nest

    • 1 Comments
    After quite a lot of hard work I finally managed to move and aggregate stuff and so have moved onto http://sajay.com . What even was or would have been here is now at http://sajay.com/category/Microsoft.aspx Microsoft (68) Thats all folks.
Page 1 of 5 (114 items) 12345