Share via


hongmeig's WebLog

Config based activation in WCF

There is a cool WCF feature instroduced in dev10 called configless activation. You don't have to...

Date: 04/16/2010

Why does the MaxReceiveMessageSize in WCF matter in case of Streaming

The default value of MaxReceiveMessageSize in WCF is 65,536. When you choose streaming as...

Date: 03/13/2010

Timeouts in WCF and their default values

There are a lot of timeouts in WCF. let us summarize it here. Timeouts on binding These are the most...

Date: 03/05/2010

how to turn off the auto-redirect feature in WCF REST 4.0

Missing a trailing slash is a common error people make when browsing the web. For better usability,...

Date: 03/02/2010

How to solve System.InvalidOperationException: For request in operation Test to be a stream the operation must have a single parameter whose type is Stream

You are getting this error because the default WCF stream formatter does not support this. You are...

Date: 03/02/2010

How to see windows using remote desktop with dual monitors

Let us say i want to connect my laptop to my office machine, which uses dual monitors. I can see...

Date: 07/06/2008

A possible solution to a common sql error

If you happen to get the following sql error: An error has occurred while establishing a connection...

Date: 02/26/2008

How to make a 24'' monitor look better

1920 X 1200 is the resolution you wanted for the 24" monitor. The old 1600 X 1200 would make...

Date: 02/25/2008

WCF error: Cannot resolve KeyInfo for unwrapping key: KeyInfo 'SecurityKeyIdentifier

If you are getting an error like : Cannot resolve KeyInfo for unwrapping key: KeyInfo...

Date: 09/28/2007

Going to Tech Ed China 2007

I am going to attend Tech Ed China 2007 again. I am very excited about it....

Date: 09/26/2007

How to pass custom object between WCF client app and custom issued security token provider

There are two options: 1. OperationContext.Current. Pros: This is pretty straightforward and...

Date: 09/12/2007

Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances

If you are getting the following error: “Generating user instances in SQL Server is disabled. Use...

Date: 08/31/2007

How to make IIS hosted WCF service work with Card Space using localhost

First let me explain why it does not work. There are three string comparisons done by card space....

Date: 08/29/2007

How to use findstr with regular expression

By default findstr does the comparison with regular expression. However, what surprised me is that...

Date: 08/29/2007

How to change your web site from https://localhost to https://mydomain.com

There are three steps you need to take to make it work. 1. Modify your hosts file under...

Date: 08/29/2007

How do I turn on windows authentication in IIS 7

In IIS 6, you can start the IIS manager by typing the inetmgr at the Start->Run windows, and...

Date: 08/20/2007

CardSpace: Why can't i select my personal card

You need to make sure that your personal card contains the required claim types you specified in...

Date: 07/30/2007

Card Space exception: incoming policy failed validation

One possibility is that your binding does not contains required claim types. In your client binding,...

Date: 07/30/2007

Make the WCF service take the personal card

The common error that users will run into for the personal card scenario is that the WCF service...

Date: 07/30/2007

WCF exception: The remote certificate is invalid according to the validation procedure

If you are using Https, this might fix it. ServicePointManager.ServerCertificateValidationCallback =...

Date: 05/01/2007

Turning on trace for WCF

First you need to download some windows sdk tools. You can get those from...

Date: 05/01/2007

Fail to install Adobe Reader 8.0 on Vista box

I kept getting "your temp directory is read only" error when i tried to install Adobe Reader 8.0 on...

Date: 04/11/2007

Some UI no longer works with IE 7

After migrating to IE 7, if you are getting some error like: A dialog box pops up saying “Logging...

Date: 04/11/2007

Where is "Save As" in Word 2007?

It took me a while to find it. It is that logo that you need to click, which will pop up the usual...

Date: 03/08/2007

CardSpace UI not popping up

What could go wrong when cardspace UI is not popping up? You can see if you have card space UI...

Date: 02/20/2007

How to do authorization based on the body content

This is a forum question, and here is a very sneaky way to do so. protected override bool...

Date: 02/16/2007

How to setup SSL on Vista with IIS 7

IIS 7 has a new UI which is different from the previous version. Here I am going to talk about how...

Date: 01/23/2007

What happened behind the scene in Card Space

Yes, i am sure quite a lot of people have already seen the great card space UI. But if you are like...

Date: 01/04/2007

Download "Simple WPF based Smartclient application" sample today

"Simple WPF based Smartclient application" sample from...

Date: 01/04/2007

The CAPICOM library failed to load might be caused by permission

A clean installation of Vista, download the card space sample from https://cardspace.netfx3.com, and...

Date: 01/04/2007

Serialization magic with DataContract attribute in WCF

I want to serialize something similar to this format: <Body> <Response>...

Date: 01/03/2007

MutualCertificate with server x509 cert in the response

If you are getting error from the client saying something like this: Cannot find a token...

Date: 12/06/2006

Custom Identity verifier

Getting identity verifier error? Here is one way to work around it....

Date: 12/06/2006

External tools in VS is your friend

Go to the Tools, click on External Tools ... On the pop up dialogue, you can add some commands which...

Date: 11/16/2006

Open file the fastest way in VS: >of

Say i have a huge VS solution with quite a lot files which might exist under a lot of directories....

Date: 11/14/2006

Best fonts for doing demo using VS

For presentation, start VS, go to Tools->Options, under Environment/Fonts and colors, choose...

Date: 10/25/2006

How to distribute my public key portion of the cert to the Client in an "SSL" fashion

Distributing x.509 is always a painful thing, and using WCF, it no long is. In the WCF...

Date: 10/24/2006

What cert shall i use for WSE 3.0

If you are going to request one certificate from a cert authority, then you probably need to...

Date: 10/23/2006

configuration entry intellisense

Wondering how do you ever get intellisense while writing configuration files using VS? Here is why?...

Date: 10/16/2006

The .svc page only show the text value of the .svc file

Your IIS needs to link the .svc extension to the aspnet_isapi.dll. You can this by right click on...

Date: 10/16/2006

403.1 error while hosting WCF service using IIS

If you are getting 403.1 error while hosting WCF using IIS, then you might be using the wrong...

Date: 10/16/2006

TechEd China is fun

Delivered two talks at the Tech Ed China Beijing stop. One on WCF security and the other one on WSE...

Date: 10/03/2006

Automatically adding WSE2 dll to the VS 2005 web service project

Make sure that you don't have any reference in your code which still refer to the WSE 2 dll. VS 2005...

Date: 09/13/2006

winhttpcfg can be used to solve your cert permission problem

To see the complete list of users who have access to the private key of a certain cert, for example,...

Date: 09/06/2006

Perf issue with X509Certificate2.Extensions with the OID look up

If you are running into some perf issue with using X509 certificate in WSE 3.0 or .NET Framework...

Date: 08/22/2006

WSE 3.0 download site

WSE 3.0 was released last year, and here is the download link:...

Date: 08/22/2006

Going to TechEd China to give talks on WSE and WCF

Please visit https://www.microsoft.com/china/technet/teched/ for more informations, and sign up now.

Date: 08/22/2006

Check XmlElement.HasAttributes before calling XmlElement.Attributes

I have tested it against Everrette. If an xmlelement you are working with doesn't contain any...

Date: 04/04/2005

How to traverse xmlelement.childnodes effectively

I have been working on the performance these days, and I want to share some tricks that you can do...

Date: 04/04/2005

WSE2 SP2 released today

This release fixes some top customer issues and provide a new security token, KerberosToken2, which...

Date: 12/03/2004

Next>