Mike's profileA Man Named BR80PhotosBlogListsMore Tools Help

Mike Brady

Occupation
Location
Interests

Weather

Loading...
June 29

Iran Home Runs


I’m always looking for a more thoughtful presentation of current events than what you find coming from Washington DC politicians or their private sector parrots on talk radio, FOX News, MSNBC, etc.

I found three articles on Iran that, if they are not home runs, they at least put players in scoring position. 

Liberty and the Tehran Spring – Justin Raimondo
The Timid Emperor – Alan Bock
Is Barack Obama’s Realism Better than George W. Bush’s Idealism? – Ivan Eland

June 15

Bind a ComboBox to a generic Dictionary

 

The following was swiped from Mad Props!

Often you have a ComboBox (or ListBox) whose items you want to "bind" to a list of values. In the world of .NET 2.0 we have this funky new generic Dictionary collection, but there's a trick to using it to bind. Here's the code:

var choices = new Dictionary<string, string>(); 
choices["A"] = "Arthur"; 
choices["F"] = "Ford"; 
choices["T"] = "Trillian"; 
choices["Z"] = "Zaphod"; 
comboBox1.DataSource = new BindingSource(choices, null); 
comboBox1.DisplayMember = "Value"; 
comboBox1.ValueMember = "Key"; 

Now you can set comboBox1.SelectedValue = "F" and it will display "Ford"! How cool is that?

May 22

MaxReceivedMessageSize error when calling WCF service

 

I had this same problem with my first WCF service:

The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

I changed the maxReceivedMessageSizein the app.config of the service’s consumer (the value was 65536):

<wsHttpBinding>
                <binding name="WSHttpBinding_IAtrSyncService" closeTimeout="00:01:00"
                    openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                    bypassProxyOnLocal="false" transactionFlow="false"
                    hostNameComparisonMode="StrongWildcard"
                    maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
                    messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
                    allowCookies="false">

Technorati Tags:

WCF Introduction

 

I’m trying to learn about Microsoft Sync Services for ADO.NET v2.0.  I want the client databases to talk to the server via a WCF service hosted on IIS.  I needed to get a quick background on creating a WCF web service.  Here are the resources that I have found helpful given that I had no background on the subject.

Sahil Malik’s WCF blog postings
http://blah.winsmarts.com/WCF.aspx

David Chappell’s document
http://cid-f15c15da8cece70f.skydrive.live.com/self.aspx/Public/Introducing%7C_WCF%7C_in%7C_NET%7C_Framework%7C_35%7C_v1.doc

Dan Wahlin’s screencast
http://weblogs.asp.net/dwahlin/archive/2007/02/03/video-creating-a-service-with-windows-communication-service-wcf.aspx

Chakkaradeep’s blog entry [New WCF Features in Visual Studio 2008]
http://www.geekzone.co.nz/vs2008/4653

Also helpful:
Configuring Internet Information Services 7.0 for Windows Communication Foundation
http://msdn.microsoft.com/en-us/library/bb675150.aspx


Technorati Tags:
February 09

Windows Licensing


“There’s no one on this earth – normal – who is going to buy three licenses of Windows [for the home].”
--Paul Thurrott : Windows Weekly #93

That’s why I run Ubuntu Linux on my secondary PC.

 
Kids  
Photo 1 of 15
Thanks for visiting!
Please wait...
Sorry, the comment you entered is too long. Please shorten it.
You didn't enter anything. Please try again.
Sorry, we can't add your comment right now. Please try again later.
To add a comment, you need permission from your parent. Ask for permission
Your parent has turned off comments.
Sorry, we can't delete your comment right now. Please try again later.
You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
Complete the security check below to finish leaving your comment.
The characters you type in the security check must match the characters in the picture or audio.
Su Abbottwrote:
you are missed by your old work buddies...and i, at least, am glad to hear you miss at least someone from here ;)  be it me or others
 
sniffle
 
so...hows the new job?  and what about that commute? ;)
July 25

Xbox Live GamerCard

mwbrady68
Xbox Live GamerCard
Rep:
3/5 stars
Score:
740
Zone:
Family
Burnout ParadisePac-Man C.E.Aegis WingLuxor 2Boom Boom Rocket