StreamInsight 503 The remote server returned an error: (503) Server Unavailable.

July 18, 2011 at 1:21 PMalex
Unable to connect to service

Description

The HTTP service located at http://localhost/StreamInsight/Default is too busy.
-------------------
The remote server returned an error: (503) Server Unavailable.
===========
Server 2008 Std, Roles installed: IIS, SQL Svr 2008 R2. Need anything else ?

 

The endpoint not being active can also manifest as The HTTP service located at http://localhost/StreamInsight/Default is too busy. -------------------
The remote server returned an error: (503) Server Unavailable
.

image

If you follow the steps to diagnose and resolve this issue at:

http://blogs.msdn.com/b/appfabriccat/archive/2010/10/21/streaminsight-getting-started-with-using-the-event-flow-debugger-viewing-diagnostics-and-exposing-the-management-service.aspx

but, if that does not help, and if you have IIS7 installed, change port number of your binding to 8080 so that it does not conflict with IIS security.

Posted in: Development | R&D

Tags:

Adding custom soap headers in wcf

July 18, 2011 at 9:11 AMalex

 I’ve researched on the topic of SOAP header support in WCF and it seems that there are two primary ways for interaction with headers:

1.     Message contract definition:

WCF message contracts this also easily allows you to define and set WCF SOAP headers.

[MessageContract]
public class BankingTransaction
{
  [MessageHeader]
  public Operation operation;
  [MessageHeader] 
  public DateTime transactionDate;
  [MessageBodyMember] 
  private Account sourceAccount;
  [MessageBodyMember] 
  private Account targetAccount;
  [MessageBodyMember] 
  public int amount;
}

Here, the "operation" and the "transactionDate" are defined as SOAP headers.

2.     Inspecting headers via WCF Behaviors.
The client side
IClientMessageInspector defines two methods BeforeSendRequest and AfterReceiveReply
while the server side
IDispatchMessageInspector has the opposite methods, i.e. AfterReceiveRequest and BeforeSendReply.

With this, you could add headers to every message going across the wire (or selectively only to a few).

Here's a snippet from a IClientMessageInspector implementor:

public object BeforeSendRequest(ref Message request, IClientChannel channel)
{
    …
    request.Headers.Add(header);

    return null;
}

            There is a library on Codeplex WCF Extras it's an easy extension library for WCF which offers custom SOAP headers.

If clients are on .NET 2.0 and not using WCF this should still work just fine. Wecould still use the message inspector on the server side to sniff and extract the custom headers being sent by your .NET 2.0 clients. More details are here: Custom SOAP Headers: WCF and SMX. 

Posted in: Development | R&D

Tags:

Verificability of the code

July 3, 2011 at 2:32 AMalex

Posted in: R&D

Tags:

C# 5.0 Kick off

July 1, 2011 at 1:29 AMalex

There is not hell lot of materials out there, but I'll keep this post updated as new materials are becoming available to general public.

 

Platform and language spects:

1. C# Language Specification for Asynchronous Functions available for download here.

Development tools refreshes:

2. Iterators in VB here.

1. Microsoft Visual Studio Async CTP (SP1 Refresh)

 

Posted in:

Tags:

Private Cloud

July 1, 2011 at 1:26 AMalex
A while ago we've talked about the necessity of providing Private Cloud capabilities to the companies those have concerns about security, performance, costs, and now, finally, Microsoft provides it - http://www.microsoft.com/virtualization/en/us/private-cloud-get-started.aspx

Posted in: R&D

Tags:

Microsoft's All-In-One Code Framework

June 22, 2011 at 10:58 AMalex

Posted in: Development

Tags:

Adding a custom provider in IE 9.0

June 16, 2011 at 11:10 AMalex

Microsoft has decided to remove this feature from IE 9.0, but it can be accessed via:

http://www.ieaddons.com/en/createsearch.aspx

Posted in: Development

Tags:

29 ways to stay creative

June 15, 2011 at 12:35 AMalex
Thought it might bring some fresh ideas, it did for me for sure.

Posted in:

Tags:

Windows 8 preview

June 4, 2011 at 11:59 PMalex

It will be different:

* Tiles and focus on Hubs

* Hardware acceleration and running on APM processors

* More...

Will be interesting to see how's experience with upgrading the system will be comparable or not with Apple's one.

Posted in: Development | R&D

Tags:

2011 Predictions, Cloud rules

February 22, 2011 at 9:06 AMalex

Posted in: Development

Tags: