Are you developing Solutions for Office 2010 solutions with Visual Studio 2010 and Targeting .NET 4.0?

Deployment of VSTO add-ins have always been tricky. In Office 2007 we could deploy a VSTO Add-in for All users(after the hotfix) but if the assembly is not signed with a Trusted Publisher’s Certificate, each user sees the Microsoft Office Customization Installer dialog box (also know as the trust prompt) asking them if they want…

0

Error:CDO.Message.1 (0x80040220) The "SendUsing" configuration value is invalid on IIS 7.5

The error CDO.Message.1 (0x80040220) -The "SendUsing" configuration value is invalid is back again on IIS 7.5 and the reasons are also the same! inadequate permissions on the IIS Metabase due to which CDOSYS is unable to read the location of the Pickup Directory from the IIS Metabase. What has changed? The default Application Pool Identity…

6

HOW TO: Call .PS1 script from Managed code using Remote Powershell(Exchange 2010)

As promised below is the code to call a .PS1 script and pass parameters to it. Most of the code is very similar to my previous post that showed how to call Exchange & PowerShell cmdlet. using System;using System.Collections.Generic;using System.Text;using System.Management.Automation;using System.Management.Automation.Runspaces;using System.Management.Automation.Remoting;using System.Collections.ObjectModel;using System.Security;namespace CallingScriptPS{ class Program { static void Main(string[] args) { string…

0

HOW TO: Migrating Exchange 2007 PowerShell Managed code to work with Exchange 2010

Will my Exchange 2007 PowerShell Managed code work with Exchange 2010 as is? Unfortunately the answer is NO, fortunately there are not many changes that you will have to make. The management experience given by Exchange 2010 through PowerShell has been moved all the way from Local to Remote. Dave Vespa has a detailed post…

3

"Object reference not set to an instance of an object" error when trying to create object of System.Net.Mail.MailMessage

A few days ago I ran into an interesting problem. A customer who was trying to send a mail using System.Net.Mail was getting the error "Object reference not set to an instance of an object" when trying to create a Instance of the MailMessage class. Code that was failing MailMessage message = new MailMessage() The…

0

HOW TO: Read User Configuration for OWA in Exchange 2010 using EWS Managed API 1.0

The User Configuration operations enable clients to create, delete, retrieve, and update user configuration information. These operations are new in Exchange 2010. Configuration data consists of groups of related application settings. Each group of settings is stored together in separate stream properties that are set on FAI messages. The OWA configuration its stored in IPM.Configuration.OWA.UserOptions…

0

HOW TO: Configure Exchange 2007 and Exchange 2010 for using Impersonation

Exchange 2010: Configuring Exchange Impersonation (Exchange Web Services) http://msdn.microsoft.com/en-us/library/bb204095.aspx Using Exchange Impersonation XML Request/Response http://msdn.microsoft.com/en-us/library/bb204088.aspx Using Impersonation in EWS Managed API http://msdn.microsoft.com/en-us/library/dd633680(EXCHG.80).aspx Exchange 2007: Configuring Exchange Impersonation (Exchange Web Services) http://msdn.microsoft.com/en-us/library/bb204095(EXCHG.80).aspx Using Exchange Impersonation (Exchange Web Services) http://msdn.microsoft.com/en-us/library/bb204088(EXCHG.80).aspx ExchangeServiceBinding Class – Code Sample http://msdn.microsoft.com/en-us/library/exchangewebservices.exchangeservicebinding.aspx Enjoy!

3

HOW TO: List Top Level Folders in a Mailbox using EWS Managed API 1.0

Now that developers have started using Exchange Web Services Managed API, I thought it would be nice for me to post some samples to do simple things using the API. This sample shows: 1)How to list the Top Level folders in a mailbox. 2)Using Paging with the FolderView class. 3)Enabling logging of the Request and…

0