Help me! How do I connect to an ASMX web service?

With the rise of mobile applications (Windows Store and Windows Phone Store apps), the need for remote processing and storage has never been greater. The necessarily-small footprint of these apps, the limited storage capacity of the hardware, and the sometimes need to do really processor-intensive operations makes offloading jobs to remote servers critical to the…

9

Why can’t I set cookies in WebView when using NavigateToString

The title says it all and we have seen some forum and support cases about this subject.  I have a workaround for you though!  Background When programming with WebView you can use NavigateToString to populate a HTML and JavaScript and if that JavaScript sets cookies, the document. cookie property will fail to set cookies.  Also…

1

Skip the path: stick to the StorageFile

To build user confidence, a user’s files are protected from arbitrary access by Windows Store apps. This has produced a large number of threads in the Windows Store apps Forums from developers who are used to having full access to the file system and who don’t expect to need the user’s permission to view or…


Looking back to understand the future: OpenFileDialog vs. FileOpenPicker

Most of us are familiar with the standard .NET OpenFileDialog object. With the introduction of Windows 8 Store apps the OpenFileDialog has gotten a facelift, a simplified API and yet somehow it’s still not quite the same. The new FileOpenPicker (or Picker) has been the subject of much mystery and confusion on the MSDN forums….


The ListingInformation.ProductListings object has a different interface when deployed to the Windows Store

The CurrentAppSimulator class is useful for exploring licensing information for your Windows Store app.  Once you are done testing you can change the class name to CurrentApp with confidence that your app will perform correctly when deployed to the Windows Store.  There can be a subtle problem if you do not closely follow our sample…

0

Why does the XAML designer report that my custom elements have not been built?

Consider a scenario where you’ve been working on developing business logic for your Windows Store app and you switch to the Visual Studio designer to check a UI element. You may notice the below message in the designer view of some XAML pages: The Design view cannot display correctly because some custom elements have not yet been built….

2

How to accommodate Authenticating Proxies in .NET

In some environments network administrators have chosen to require users to authenticate through their proxy servers.  I will give you a good starting point to code your application to deal with authenticating proxies.  You can make the decision of how and where you would like to cache these proxy credentials if you wish to. A…

2

About WebView and Fonts…

In my previous blog post, I posted some information about using a font which is included as part of the appx package (point #9) which turned out to be not correct.  I took that information from this post on the Windows Store C# forum. Since then, I’ve received requests to more fully explain how to achieve this…

5

Ten Things You Need to Know About WebView

  Hi – I am Matt Small, a Sr. Escalation Engineer on the Microsoft Windows Store Developer Solutions team.  I have been working on Windows 8 since before the Release Preview, and I have spent many hours working in the Store forums, primarily in the C# forum.  I’ve seen a *lot* of posts on the…

31

Consuming a WCF Service from a “Windows Runtime Component” project type is a limited supported scenario particularly with the usage of XmlSerializer.

Background: Consider the following scenario. You are developing a Windows Store app and need to consume a WCF Service. The most common approach of consuming a WCF service and using the .NET framework is to create a managed Windows Store app based on the C# or VB.Net language.   Additionally, Visual Studio 2012 also provides…