How to disable the “Expect: 100 continue” header in WinRT’s HttpWebRequest
var c = new HttpClient(); c.DefaultRequestHeaders.ExpectContinue = false;
var c = new HttpClient(); c.DefaultRequestHeaders.ExpectContinue = false;
How about this? var bounds = Window.Current.Bounds; double height = bounds.Height; double width = bounds.Width;
You should stick with ChangeView for scrolling animations regardless of whether data virtualization is on or not. Without seeing your code where the ChangeView doesn’t work, it’s a bit hard to guess what’s really going on but there are a couple of things that you can try. First approach is to add a Task.Delay(1) before … Read more
What new things needed to run Metro Apps in Windows XP or Windows 7 A virtual machine of Windows 8. Metro apps currently don’t run on Windows 7, and definitely don’t on Windows XP. According to this thread, it’s difficult but might happen eventually: Keep your eyes out on future Channel 9 videos and on … Read more
Suspending event won’t fire while you are debugging (but while running your App normal, it will fire just after you navigate away from the App) as it is said also at this blog: …you will wait forever for these to trigger, even though your app switches back and forth to the screen! The reason is … Read more
You need to use type.GetTypeInfo(), which then has various GetCustomAttribute methods (via extension methods), or there is .CustomAttributes which gives you the raw information (rather than materialized Attribute instances). For example: var attribute = type.GetTypeInfo().GetCustomAttribute<WrapperObjectAttribute>(); if(attribute == null) { … } … GetTypeInfo() is the pain of .NETCore for library authors ;p If .GetTypeInfo() doesn’t … Read more
You can only create metro style apps with C#, VB, JavaScript and C++. There is currently no support for authoring metro style applications with Java.
Clearly you have some problems on the server side. But to find out what’s the problem you need to see a detailed error. For security reasons SignalR doesn’t give you a detailed error by default. But you can edit your code to get the detailed error. First you need to add this code to the … Read more
The problem could be related to the validity of the certificate that you are using it. By default .Net refuses to establish https connection with invalid or not trusted certificate. Usually the certificate is invalid because it is generate by a non-trusted authority (self signed certificate) or because the address of the site is not … Read more
This happened to me once too, but the deleting build directories advice fixed it. Specifically, you just need to delete the bin\Debug and bld\Debug folders in your projects. Their contents will be regenerated by Visual Studio when you rebuild. I assume that this is only one project since it’s a Hello World app; otherwise I … Read more