Using WebSocket on Windows 7

No, websockets is only natively supported by Windows in Windows 8, regardless of which visual studio version you are using. http://www.paulbatum.com/2011/09/getting-started-with-websockets-in.html This is due to some low level issues in Windows 7 with http.sys. There’s an offchance it may be backported, but seems unlikely: http://weblogs.asp.net/owscott/archive/2012/03/01/what-s-new-in-iis-8.aspx To use websockets on Windows 7, you’ll have to write … Read more

How to determine a 404 response status when using the HttpClient.GetAsync()

You could simply check the StatusCode property of the response: static async void dotest(string url) { using (HttpClient client = new HttpClient()) { HttpResponseMessage response = await client.GetAsync(url); if (response.IsSuccessStatusCode) { Console.WriteLine(response.StatusCode.ToString()); } else { // problems handling here Console.WriteLine( “Error occurred, the status code is: {0}”, response.StatusCode ); } } }

Serialization of Entity Framework objects with One to Many Relationship

When you see an object like: System.Data.Entity.DynamicProxies.Tag_FF17EDDE6893000F7672649A39962DB0CA591C699DDB73E8C2A56203ED7C7B6D It is a runtime EF Generated version of a proxy to what would normally be considered a POCO object. Entity Framework has created this object because it tracks when the objects has changed so when you call .SaveChanges() it can optimize what to do. The downfall of this … Read more

How to update StatusStrip in Windows Forms

You will need to add a ToolStripStatusLabel to the StatusStrip. Then set the text of the label instead (you need to do a statusstrip.Refresh as there is no refresh on the status-label). The Text property on the StatusStrip comes from the StatusStrip inherits ToolStrip (which in turn inherits Control), but has no visual effect due … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)