MissingManifestResourceException when using Portable Class Libraries within WinRT

Our team recently ran into a strange issue.  Our Windows Phone application targets Silverlight 8.1 but we have several WinRT 8.1 based background tasks.  Recently, we refactored our codebase into several Portable Class Libraries (PCLs) in order to better share code between the application and background tasks.  Since then, however, we’ve started seeing MissingManifestResourceExceptions thrown…

2

Dynamically Add Content to Windows Azure Application Roles

In a previous post I introduced the concept of Role Content Folders and how they can be used to deploy additional content (e.g. configuration files, runtime components, etc.) to the virtual machine for a Windows Azure application role.  That post was written from the perspective of a developer working within Visual Studio and works great…

5

Transform Windows Azure Service Model Files During Packaging

The latest versions of the Windows Azure Tools for Visual Studio have the ability to maintain multiple versions of the Service Configuration (.cscfg) file.  The developer is then prompted to select the version to accompany a deployment, whether it’s going to Windows Azure or the development fabric (i.e. the emulator).  However, sometimes a developer needs…

1

Ignore Validation Warnings when Packaging a Windows Azure Application

When a package fails to deploy to Windows Azure (or deploys but its roles fail to start properly) it can be difficult to determine what went wrong.  In many cases, these failures often happen before the diagnostics agent has had a chance to startup and help identify the issue.  A lot of these failures are…

0

Add Files to your Windows Azure Package using Role Content Folders

Windows Azure applications often need to package and deploy additional content.  This could be advanced configuration files such as the diagnostics.wadcfg for the Diagnostics plugin.  It could also be scripts and binaries that modify the virtual machine to which a role is deployed, such as installing additional runtime components.  In any case, prior to the…

1

Finding DASL Property Names

The LINQ-to-DASL provider of the Office Interop API Extensions provides a very limited set of mappings between its query types and their associated DASL properties.  We didn’t have the time to add them all and we didn’t know which properties (besides the obvious ones like Subject and DateReceived) users would be most likely to use…

0

Debugging LINQ-to-DASL Queries

When your LINQ-to-DASL queries do not return the results you expect, how do you determine where the problem is?  The issue could be that the query simply doesn’t do what you expect.  For example, you could be querying the wrong DASL properties and therefore Outlook returns no (or unexpected) items.  (This is easy to do,…

3

Filter Outlook Items by Date with LINQ to DASL

I received an email over the weekend asking why the following LINQ to DASL query threw an exception: Outlook.Folder folder = (Outlook.Folder)Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar); var appointments = from item in folder.Items.AsQueryable<Appointment>() where item.Categories.Contains(“Personal Appointments”) && item.Item.Start.Date >= DateTime.Now – new TimeSpan(30, 0, 0, 0) select item.Item; foreach (var appointment in appointments) { MessageBox.Show(appointment.Start.ToString()); } The query looks…

8

LINQ to DASL Walkthrough

Now that the Office Interop API Extensions have been released, I thought I would post a complete walkthrough of a simple LINQ to DASL application. Let’s start with my fictitious Outlook calendar: This calendar shows that I have four appointments today. The appointments have been categorized as either “Work” (blue) or “Personal” (green). Suppose I…

0

Parameterized Properties and the Office Interop API Extensions

One of the disadvantages of C# compared with VB is its lack of support for parameterized properties. Instead, parameterized properties in C# are exposed as normal method calls prefixed with “get_” and “set_”. This is particularly apparent when working with the Office object model as it exposes many such properties, the majority being indexers on…

0