Sign in
hongmeig's WebLog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
No tags have been created or used yet.
Archive
Archives
April 2010
(1)
March 2010
(4)
July 2008
(1)
February 2008
(2)
September 2007
(3)
August 2007
(5)
July 2007
(3)
May 2007
(2)
April 2007
(2)
March 2007
(1)
February 2007
(2)
January 2007
(5)
December 2006
(2)
November 2006
(2)
October 2006
(7)
September 2006
(2)
August 2006
(3)
April 2005
(2)
December 2004
(2)
November 2004
(2)
October 2004
(1)
September 2004
(1)
August 2004
(3)
June 2004
(1)
April 2004
(2)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
hongmeig's WebLog
Config based activation in WCF
Posted
over 3 years ago
by
hongmeig
0
Comments
There is a cool WCF feature instroduced in dev10 called configless activation. You don't have to have a *.svc file in your web directory, instead you can activate a WCF service using the following configuration element: < system.serviceModel...
hongmeig's WebLog
Why does the MaxReceiveMessageSize in WCF matter in case of Streaming
Posted
over 3 years ago
by
hongmeig
0
Comments
The default value of MaxReceiveMessageSize in WCF is 65,536. When you choose streaming as TransferMode, WCF runtime will create 8192 as buffer size. So what happened now is that WCF channel stack will read the first 8192 bytes, and decode the first couple...
hongmeig's WebLog
Timeouts in WCF and their default values
Posted
over 3 years ago
by
hongmeig
0
Comments
There are a lot of timeouts in WCF. let us summarize it here. Timeouts on binding These are the most well known timeouts. SendTimeout, ReceiveTimeout, OpenTimeout and CloseTimeout. They can be set easily either through config or code on the Binding...
hongmeig's WebLog
how to turn off the auto-redirect feature in WCF REST 4.0
Posted
over 3 years ago
by
hongmeig
0
Comments
Missing a trailing slash is a common error people make when browsing the web. For better usability, in 4.0, we introduced a feature called autoredirect. It is on by default, meaning, when you set up your REST service to take something like "test/", when...
hongmeig's WebLog
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
Posted
over 3 years ago
by
hongmeig
0
Comments
You are getting this error because the default WCF stream formatter does not support this. You are probably trying to upload some file stream and transfer some other parameters, such as file name, etc within the same method. For example, [OperationContract...
hongmeig's WebLog
How to see windows using remote desktop with dual monitors
Posted
over 5 years ago
by
hongmeig
2
Comments
Let us say i want to connect my laptop to my office machine, which uses dual monitors. I can see some of the windows icons showing up in the taskbar, but i cannot see the window. How can I click any button on that window? Here is the solution: Right...
hongmeig's WebLog
A possible solution to a common sql error
Posted
over 5 years ago
by
hongmeig
0
Comments
If you happen to get the following sql error: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005 or above, this failure may be caused by the fact that under the default settings SQL Server does...
hongmeig's WebLog
How to make a 24'' monitor look better
Posted
over 5 years ago
by
hongmeig
1
Comments
1920 X 1200 is the resolution you wanted for the 24" monitor. The old 1600 X 1200 would make everything looks flattened. So what if my highest resolution is 1600 X 1200? The solution is that you need to update your new driver. Here is how you can do it...
hongmeig's WebLog
WCF error: Cannot resolve KeyInfo for unwrapping key: KeyInfo 'SecurityKeyIdentifier
Posted
over 6 years ago
by
hongmeig
1
Comments
If you are getting an error like : Cannot resolve KeyInfo for unwrapping key: KeyInfo 'SecurityKeyIdentifier and your have checked that your certificate is in the right store and right place. So this might be the reason. check the binding you have...
hongmeig's WebLog
Going to Tech Ed China 2007
Posted
over 6 years ago
by
hongmeig
1
Comments
I am going to attend Tech Ed China 2007 again. I am very excited about it. http://www.microsoft.com/china/technet/teched/speakers/default.mspx
hongmeig's WebLog
How to pass custom object between WCF client app and custom issued security token provider
Posted
over 6 years ago
by
hongmeig
0
Comments
There are two options: 1. OperationContext.Current. Pros: This is pretty straightforward and relatively hard to discover. Cons: This is a thread local storage, and you are invoking a async call, it does not work well. 2. ChannelParameterCollection...
hongmeig's WebLog
Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances
Posted
over 6 years ago
by
hongmeig
0
Comments
If you are getting the following error: “Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances” What should I do? Answer : To fix this, please Open the SQL Server Management...
hongmeig's WebLog
How to make IIS hosted WCF service work with Card Space using localhost
Posted
over 6 years ago
by
hongmeig
1
Comments
First let me explain why it does not work. There are three string comparisons done by card space. The information card has Issuer, IssuerEndpointAddress, and IssuerMexAddress. When you hit a web site which requires an information card, in other...
hongmeig's WebLog
How to use findstr with regular expression
Posted
over 6 years ago
by
hongmeig
0
Comments
By default findstr does the comparison with regular expression. However, what surprised me is that the following command does not work. findstr "abc|def" test.txt when test.txt has only abc in it. According to the online tutorial such as http...
hongmeig's WebLog
How to change your web site from https://localhost to https://mydomain.com
Posted
over 6 years ago
by
hongmeig
0
Comments
There are three steps you need to take to make it work. 1. Modify your hosts file under \Windows\System32\drivers\etc\hosts and add the following entry: 127.0.0.1 mydomain.com 2. Turn off your proxy dection from the IE, Go to Tools->Internet...
hongmeig's WebLog
How do I turn on windows authentication in IIS 7
Posted
over 6 years ago
by
hongmeig
1
Comments
In IIS 6, you can start the IIS manager by typing the inetmgr at the Start->Run windows, and click on the web site, Right click on the web site, go to the directory security, you will have windows authentication check box to click. In IIS 7, it...
hongmeig's WebLog
CardSpace: Why can't i select my personal card
Posted
over 6 years ago
by
hongmeig
1
Comments
You need to make sure that your personal card contains the required claim types you specified in your client binding. To fix this, try set the required claim types to one of the claims that your personal card has. WSFederationHttpBinding binding =...
hongmeig's WebLog
Card Space exception: incoming policy failed validation
Posted
over 6 years ago
by
hongmeig
0
Comments
One possibility is that your binding does not contains required claim types. In your client binding, make sure you have at least one required claims: WSFederationHttpBinding binding = new WSFederationHttpBinding ( WSFederationHttpSecurityMode .Message...
hongmeig's WebLog
Make the WCF service take the personal card
Posted
over 6 years ago
by
hongmeig
0
Comments
The common error that users will run into for the personal card scenario is that the WCF service cannot verify the signing credentials of the saml token. This is because the personal card will trigger the card space runtime to issue a saml token signed...
hongmeig's WebLog
WCF exception: The remote certificate is invalid according to the validation procedure
Posted
over 6 years ago
by
hongmeig
0
Comments
If you are using Https, this might fix it. ServicePointManager .ServerCertificateValidationCallback = RemoteCertificateValidationCallback; public static bool RemoteCertificateValidationCallback( object sender, X509Certificate certificate,...
hongmeig's WebLog
Turning on trace for WCF
Posted
over 6 years ago
by
hongmeig
1
Comments
First you need to download some windows sdk tools. You can get those from http://www.microsoft.com/downloads/details.aspx?FamilyId=C2B1E300-F358-4523-B479-F53D234CDCCF&displaylang=en . Only check the tools section to save you some time. The tools...
hongmeig's WebLog
Fail to install Adobe Reader 8.0 on Vista box
Posted
over 6 years ago
by
hongmeig
1
Comments
I kept getting " your temp directory is read only" error when i tried to install Adobe Reader 8.0 on my new Vista box. Here is the suggestions i got from my friend and it actually works! 1. Right click on your Acrobat install executable -> Select...
hongmeig's WebLog
Some UI no longer works with IE 7
Posted
over 6 years ago
by
hongmeig
0
Comments
After migrating to IE 7, if you are getting some error like: A dialog box pops up saying “Logging Exception: Safety settings on this computer prohibit accessing a data source on another domain” This might solve it: Tools – Internet Options...
hongmeig's WebLog
Where is "Save As" in Word 2007?
Posted
over 6 years ago
by
hongmeig
0
Comments
It took me a while to find it. It is that logo that you need to click, which will pop up the usual stuffs from the previous File menu. Note it is the mouse click, not the right click!
hongmeig's WebLog
CardSpace UI not popping up
Posted
over 6 years ago
by
hongmeig
0
Comments
What could go wrong when cardspace UI is not popping up? You can see if you have card space UI working properly on your box by go to Control Panel->Windows CardSpace. The correct behavior is that your window will grey out, and a highlighted window...
Page 1 of 3 (61 items)
1
2
3