Le Café Central de

                    ... Deva blogs!!

  • Le Café Central de DeVa

    Troubleshooting: Outlook Social Connector Provider error codes


    Outlook Social Connector providers should return errors to the caller. Please note that Success, warning, and error values are returned by using a 32-bit number that is called a result handle, or HRESULT. An HRESULT is not a handle to anything; it is merely a 32-bit value that has several fields encoded in the value.

    A positive result indicates success with status, a zero result indicates success without status (S_OK), and a negative result indicates failure. I have listed the couple of the error codes that I noticed…

    Error code



    Authentication failed on the network of the social network site.


    No connection is available to connect to the social network site.


    General failure error.


    The OSC provider denied permission for the resource


    An invalid argument was passed to a function.

    For the detailed list of Outlook Social Connector Provider Error Codes are listed at http://msdn.microsoft.com/en-us/library/ff759376.aspx


  • Le Café Central de DeVa

    Outlook 2010 Developer Series: Developing a Real Outlook Social Connector Provider


    The Outlook Social Connector is a set of new features to help keep track of your friends and colleagues while enabling you to grow your professional network. The Outlook Social Connector is available now as part of the Microsoft Office 2010.

    The Outlook Social Connector (OSC) brings social views of your colleagues and friends right to your Inbox. As you read your e-mail messages, glance down at the new People Pane to see the picture, name, and title of the sender. A rich, aggregated collection of information about the sender is included.

    You can use the OSC Provider Proxy Library to develop a real provider for the Outlook Social Connector.

    Happy Office development. Enjoy!!

  • Le Café Central de DeVa

    Live: TechED North America 2012


    Hear directly from Satya Nadella, Scott Guthrie, Mark Russinovich, Bill Staples, Quentin Clark and many other senior Microsoft technology leaders as they delve deep into the technical aspects of Windows Azure and other products.

    You can watch & learn more sessions LIVE online on Monday, June 11, 2012 as it will be broadcasted from TechEd 2012 in Orlando. The event will start at 8 a.m. PDT/11 a.m. EDT.

    + Register for these sessions now.
    + Check out all of the Windows Azure sessions at TechEd North America or download the full session list
    + Also you can visit Microsoft Tech ED Virtual Pressroom @ http://www.microsoft.com/en-us/news/events/teched/

    Register and enjoy the live sessions @ June 11-14!!

  • Le Café Central de DeVa

    Windows Azure – Digital Chalk Talks


    Windows Azure Virtual Machines – Part I (Windows)

    Corey Sanders, Principal Program Manager, Windows Azure : Learn how to create and manage Windows Virtual Machines in Windows Azure

    Windows Azure Virtual Machines – Part II (Linux)

    Henry Jerez, Sr. Program Manager, Windows Azure : Learn how to create and manage Linux Virtual Machines on Windows Azure

    Windows Azure Web Sites with ASP.NET

    Scott Hanselman, Principal Program Manager, Windows Azure : Learn how to quickly and easily publish an ASP.NET website to Windows Azure Web Sites

    Windows Azure Web Sites with node.js

    Glenn Block, Sr. Program Manager, Windows Azure - Learn how to build and deploy a node.js application to Windows Azure Web Sites using git on Mac OS

    Windows Azure Web Sites – OSS Apps & WebMatrix

    Vishal Joshi, Principal Program Manager Lead, Windows Azure : Learn how to create a new php & MySQL web site from the OSS gallery, edit locally and re-publish with one click using WebMatrix

    Windows Azure Cross-Platform Command Line Tools

    Yavor Georgiev, Program Manager, Windows Azure : Learn the basics of how to manage Windows Azure Web Sites and Windows Azure Virtual Machines from a Mac OS or Linux command line

    Cloud Services

    Vijay Rajagopalan, Principal Program Manager Lead, Windows Azure: Learn what’s new in Windows Azure Cloud Services

    Apache™ Hadoop™ Based Services for Windows Azure

    Mike Flasko, Sr. Program Manager Lead, Data Platform : Learn how to use Hadoop™ running on Windows Azure to process large volumes of structured and unstructured data

    Team Foundation Service Preview Introduction

    Aaron Bjork, Principal Program Manager Lead, Team Foundation Server : Learn the basics of the new Team Foundation Service Preview.

    Windows Azure Web Sites – Continuous Integration with Team Foundation Server

    Brad Millington, Sr. Program Manager, Windows Azure : Learn how to configure continuous integration with Team Foundation Server and Windows Azure Web Sites

    Windows Azure SQL Database Introduction

    Greg Leake, Director, Product Marketing, Data Platform: Learn how to configure/manage highly available relational databases using Windows Azure SQL Database

    Windows Azure Storage Introduction

    Jai Haridas, Principal SDE Manager, Windows Azure:  Learn the basics of Windows Azure storage and how it enables you to build highly scalable applications

    Refer: http://www.meetwindowsazure.com/DigitalChalkTalks

  • Le Café Central de DeVa

    Download: Windows 8 - Release Preview


    Now you can download the Windows 8 Release Preview, the next milestone of the highly anticipated Windows 8 operating system. It’s available for download today in 14 languages at http://preview.windows.com, the Windows 8 Release Preview delivers a fast and fluid experience, along with a new user interface that responds equally well to touch as it does to keyboard and mouse.

    Windows 8 Release Preview

    Windows 8 Release Preview delivers new apps from Microsoft and partners. Highlights include Bing Travel, News and Sports apps, as well as Gaming and Music Xbox apps that integrate with your Zune pass. The Windows 8 Release Preview also features notable improvements to the Mail, Photos and People apps that initially debuted with the Windows 8 Consumer Preview. You can download the preview @ http://windows.microsoft.com/en-US/windows-8/download

    Need help?

    · Frequently asked questions

    · ISO image downloads

    · Windows Compatibility Center

    · Windows 8 Release Preview forum


    · Windows Dev Center

    · Free developer tools and samples

    · Developer forums

    · Windows 8 app developer blog

    IT pros

    · Springboard Series on TechNet

    · New features for businesses

    · IT pro forums

    · The Springboard Series Blog


  • Le Café Central de DeVa

    General: Training materials for Outlook 2010

    Please find the list of training materials for Outlook 2010….
    Make the switch to Outlook 2010
    Training Switch from Outlook 2003 to Outlook 2010. This course explains how to do familiar tasks, such as send e-mail messages and use the calendar.
    Tame your Inbox: Organize messages by conversation
    Training Ever wish you had a smarter, handier way to arrange your Outlook Inbox? Now, learn how Date (Conversations) can simplify and clarify your view.
    Getting started with Outlook 2010
    Article Whether you used an earlier version of Outlook or have never used Outlook before, explore these resources to begin learning Outlook 2010.
    Save time with Outlook 2010 Quick Steps (Video by BrainStorm)
    Link Learn how to save time in Outlook 2010 by using Quick Steps, a new feature that allows you to perform multiple actions at once.
    Download Office 2010 training
    Article Get free, downloadable versions of many Office 2010 training courses. They’re in PowerPoint 2010 format, so you can customize them for group training
    Get familiar with the Outlook Calendar
    Training Learn how to use the Outlook 2010 calendar to create appointments and meetings, set recurrence, tasks and reminders, and create all-day events
    Use e-mail signatures in Outlook 2010
    Training In this course, learn to add and format e-mail signatures, and to use an image of your handwritten signature or other pictures.
    Use electronic business cards in Outlook 2010
    Training Learn how to create electronic business cards. This course shows you how to edit and format them, and use downloadable card templates.
    Outlook and RSS: The internet in your mailbox
    Training Learn how to subscribe to RSS Feeds and view those Feeds in Outlook 2010.
    Send Automatic Replies when you're away
    Training Learn how to send out-of-office replies to people who send email messages to your Outlook 2010 Exchange Server account, and how to create rules.
    Manage your mail and more with conditional formatting
    Training Overview Help manage your Inbox, calendar , and to-do list b y using conditional formatting.
    Save time with templates in Outlook
    Training Learn how to use templates with email, calendar items, tasks, and contacts in Outlook 2010. Templates can save you a lot of time and help reduce errors.
    Mailbox management 1: Use views to stay organized
    Training Overview Learn how to manage your Outlook 2010 mailbox by setting and changing views, settings that control how Outlook displays your data.
    Mailbox management 2: Instant Search and Search Folders
    Training Learn how to manage your Outlook 2010 mailbox with Instant Search and Search Folders.
    Mailbox management 3: File your stuff in folders
    Training Create folders in an Outlook mailbox, and in an Outlook data file. You'll also learn how to move items into and out of folders, and manage folders.
    Outlook Best Practices: How Harry got organized
    Training Learn with Harry as his mentor shows how to use Outlook to increase productivity with email and time management best practices.
    Outlook 2010 keyboard shortcuts I: Email
    Training Learn Outlook 2010 keyboard shortcuts for your email inbox. Learn CTRL key shortcuts that let you move messages, create new email messages, search email.
    Outlook 2010 keyboard shortcuts II: Calendar, contacts, tasks
    Training Learn Outlook 2010 keyboard shortcuts for your calendar. This course will help you create meetings, open the address book and move around the calendar.
    Outlook 2010 keyboard shortcuts III: Alt key shortcuts
    Training Learn how to use ALT key shortcuts that let you access almost any command in Outlook 2010. These keyboard shortcuts are also called access keys.
  • Le Café Central de DeVa

    What’s new: Bing Search API is available on Windows Azure Marketplace


    Now Bing Search API is available on the Windows Azure Marketplace! Starting today, you can sign up in the Marketplace to access web, image, news, and video search results, as well as related searches and spelling suggestions using JSON or XML. As a one stop shop for cloud data, apps, and services, the Windows Azure Marketplace provides opportunities to access hundreds of other datasets and distribute your applications. In transitioning, the Search API is able to serve more relevant and up-to-date results. You can more info @ http://www.bing.com/community/site_blogs/b/developer/archive/2012/05/17/bing-developer-update-2.aspx

  • Le Café Central de DeVa

    How to install the latest applicable updates for Microsoft Outlook 2003, 2007 and 2010?


    The above query is a common one that we receive from our customers. Have a look at our support KB regarding this (specific to US English version only) http://support.microsoft.com/kb/2625547 . This article provides a comprehensive list of the most recent hotfix updates and service packs for Microsoft Outlook. Some Outlook features are dependent on Microsoft Word and Microsoft Office components. Therefore, you should also install the latest updates for the Word and Office core components.

    The above article is applicable to Outlook 2003, Outlook 2007 and Outlook 2010. Also, the above article will be updated to reference new updates as they are released.

    Note: You can visit the Update Center for Microsoft Office (http://technet.microsoft.com/en-us/office/ee748587.aspx) to find links to the most recent cumulative and public updates for Microsoft Office.

    Happy updating!!

  • Le Café Central de DeVa

    Exchange PowerShell: How to get list of mailboxes, folders, subfolders, items in folder, foldersize programmatically?


    One of my customer automated Exchange PowerShell with his .Net application. They had a requirement to enhance the functionality – to get the list of exchange mailboxes, folders and its sub folders, items in folder, foldersize. Finally it needs to be saved in .csv format. 
    To implement this, we used Get-Mailbox and Get-MailboxFolderStatistics Exchange cmdlets. For looping the objects, we used foreach-object and couple of pipes to achieve the goal.

    PowerShell (screenshot):

    Exchange PowerShell

    PowerShell (script) – adding for your reference:

    [PS] C:\Documents and Settings\Administrator>Get-Mailbox | Select-Object alias | foreach-object {Get-MailboxFolderStatistics -Identity $_.alias | select-object Identity, ItemsInFolder, FolderSize} | Export-csv c:\Stats.csv -NoTypeInformation



    As you know you can automate your application using .Net programmatically by referring the following articles:http://msdn.microsoft.com/en-us/library/bb332449(v=exchg.80).aspx and http://msdn.microsoft.com/en-us/library/ff326159(v=exchg.140).aspx.

    Happy programming!!

  • Le Café Central de DeVa

    Interesting article: “Nokia Lumia 800 Windows phone experiment @ 105,000 feet”

    Interesting article on “Nokia Lumia 800 reaches 105,000 feet”… just check it out!!
  • Le Café Central de DeVa

    Utility review: Calcheck – Outlook Calendar Checking tool


    In this post, we will have a look at the Calendar Checking tool (Calcheck) for Outlook which is published recently by Randy. This program checks the Microsoft Outlook Calendar and items for problems or for potential problems. It's is a command-line program that checks Outlook Calendars for problems. To use this tool, the Outlook calendar must reside on a Microsoft Exchange Server.

    Note: The tool does not work with IMAP, with POP3, or with other non-Exchange mail servers.

    The tool opens an Outlook profile, opens the Outlook Calendar, and then checks several things such as permissions, free/busy publishing, and auto booking. Then, the tool checks each item in the calendar folder for problems that can cause items to seem to be missing or that might otherwise cause problems in the Calendar.

    It can be used with the following: Outlook 2003, 2007, 2010 and Exchange Server 2003, 2007, 2010.

    To install this download:

    1.Click the Download button on this page to download the file and save it to your computer.
    2.Unzip the compressed file that you downloaded in a blank directory on your computer.
    Instructions for how to use this tool:

    After you install this download, open a Command Prompt window in the directory that contains the CalCheck.exe file. To obtain detailed instructions, type the calcheck /? command in the Command Prompt window, and then press Enter.

    Calcheck - Usage

    Here is a list of command-line switches for CalCheck.exe:

    CalCheck [-P <Profile name>] [-M <Mailbox name>] [-S <Server name>] [-O<path>] [-A] [-F] [-R] [-V] [-No]
    CalCheck -?

    -P Profile name (If this parameter is not specified, the tool prompts you for a profile)
    -M Mailbox DN (If this parameter is specified, only process the mailbox that is specified)
    -S Server name (Process the complete server unless a mailbox is specified)
    -O Output path (path to place output files -default is the current directory)
    -A All calendar items are output to CALCHECK.CSV
    -F Create a CalCheck folder, and move flagged error items to the folder
    -R Put a Report message that contains the CalCheck.log file in the Inbox
    -V Verbose output to the Command Prompt window
    -No To omit a calendar item test
    The No parameter works with "org" to omit the “Attendee becomes Organizer” test and works with "dup" to omit duplicate item detection
    -? Print this message

    To remove this download:
    To remove CalCheck, delete the directory where it is installed on the hard disk.

    You can download the utility in two flavors - CalCheckX64, CalCheckX86. You can download it from http://www.microsoft.com/en-us/download/details.aspx?id=28786&WT.mc_id=rss_office_allproducts

    What the utility does & what you will see in the report?

    When you try the Calcheck.exe, the following Calendar-specific checks are performed and logged in the report:

    • Permissions on the Calendar
    • Delegates on the Calendar
    • Free/Busy publishing information
    • Direct Booking settings for the Mailbox or Calendar
    • Total number of items in the Calendar folder

    The following item-level checks are performed and logged in the report:

    • No Organizer email address
    • No Sender email address
    • No dispidRecurring property (causes an item to not show in the Day/Week/Month view)
    • Time existence of the dispidApptStartWhole and dispidApptEndWhole properties
    • No Subject for meetings that occur in the the future or for recurring meetings (a warning is logged)
    • Message Class check (a warning is logged)
    • dispidApptRecur (recurrence blob) is checked for time on overall start and end times, not for exceptions
    • Check for Conflict items in the Calendar
    • Check for duplicate items, based on certain MAPI properties
    • Check if over 1250 recurring meetings (a warning is logged) and 1300 recurring meetings (an error is reported); 1300 is the limit
    • Check if you are an attendee and you became the Organizer of a meeting
    • Check meeting exception data to ensure it is the correct size

    Note: If you have a problem with CalCheck - you can post information about it on http://calcheck.codeplex.com/workitem/list/basic

    Later I will add couple of screenshots that I tried at my end. I recommend you to try this wonderful utility and make use of it!

    Happy troubleshooting!!
  • Le Café Central de DeVa

    Outlook Object Model: How to include usemap attribute programmatically?


    In this post, I will show you how to make use of usemap attribute of img HTML element in HTML emails programmatically. For this, I used Outlook 2010 VBA & Outlook Object Model. You can design the application with C# or VB.Net with Outlook Object Model library as per your wish.

    We will do this exercise in two steps:

    First, we need to set the Bodyformat of the message as olFormatHTML
    Second, at the Message body we need to include the usemap attribute with img HTML element.

    Here is the code snippet that I tried:

       1: ...
       2: Dim str As String
       3: Dim newMSG As Outlook.MailItem
       5: Set newMSG = Application.CreateItem(0)
       6: newMSG.To = Session.CreateRecipient("test@testexchange.com")
       7: newMSG.Subject = "Test message"
       8: newMSG.BodyFormat = olFormatHTML
       9: newMSG.Body = "start Body here.  "
      10: newMSG.Body = newMSG.Body & "  Add more text."
      12: str = "<html> <body> <p>Click the logo:</p>"
      13: str = str & " <img src='http://www.microsoft.com/presspass/imagegallery/images/products/office/office2010/MS_Office_w_2010_vertical_web.jpg' width=200 height=200 alt='Sites' usemap='#sitesmap' />"
      14: str = str & " <map name='sitesmap'> <area shape='rect' coords='0,0,82,126' alt='Bing' href='http://www.bing.com'/>"
      15: str = str & " <area shape='circle' coords='0,90,58,3' href='www.microsoft.com' alt='Microsoft'/>"
      16: str = str & "</map> </body> </html>"
      18: newMSG.HTMLBody = str
      19: newMSG.Save
      20: 'newMSG.Send
      21: newMSG.Display
      22: ...

    Once you’re done, try run the above sample – you’ll see the below results whenever you move to cursor to the above co-ordinates.



    Happy programming!!

  • Le Café Central de DeVa

    PowerShell: Determine Version number, build number and Service Pack of Exchange Server


    In my earlier article, we learnt how to get the Exchange Server version, version/build number of Exchange 2003 and it’s earlier. In this, we will see how to get these info & couple of additional info in Exchange Server 2007/2010 using Exchange Management Shell and Exchange Management Console.

    Using Exchange Management Console:

    To view the server properties in the Exchange Management console, try the following steps:

    1.Start the Microsoft Exchange Management console. In the navigation pane, expand the Server Configuration objects until you locate the server object, and then select the server object.
    2.On the right side, notice the Exchange version number.

    Using Exchange Management Shell:

    For this, I used Get-ExchangeServer cmdlet to view the server properties in Exchange Management Shell:


    I want to save the above info in a .txt file (saved under c:\output.txt):


    Now, I want to customize the above one by the following to get more clarity:


    Still I want to add more info like Site, Server Role and Edition etc..


    Hope this helps you to move ahead.

  • Le Café Central de DeVa

    Exchange Server 2007, 2010: How to query user mailboxes, its permissions using Exchange PowerShell?


    In Exchange Server 2007/2010, you can use Exchange PowerShell cmdlets (especially using Get-Mailbox, Get-MailboxPermission, Get-ADPermission, Get-MailboxFolderPermission) to get a verity of info. I played with couple of the below in different scenarios and want to share the same with you – so that you can give a shot and make use of.

    Scenario # 1: How to query permissions on a mailbox (testuser1)?
    > Get-MailboxPermission test1


    Scenario #2: How to query permissions of all the mailboxes on a particular server?
    > Get-Mailbox –Server “ServerName” | Get-MailboxPermission


    Scenario #3: How to query permissions of all the mailboxes?
    > Get-Mailbox | Get-MailboxPermission
    Note: This will get the list of all permissions (including SELF permissions and inherited permissions)


    Scenario # 4: How to query permissions of all the mailboxes (filter out SELF and inherited permissions)?
    > Get-Mailbox | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false}

    Scenario #5: How to query mailbox permissions and Security permissions (only enumerate permissions that are not Inherited)?
    > Get-Mailbox | Get-MailboxPermission | where {$_.IsInherited -eq $False}
    Note: The above query will get you the “explicitly assigned permissions”

    Scenario #6: How to query the explicitly assigned permissions (filter out SELF permissions)?
    > Get-Mailbox | Get-MailboxPermission | where { ($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”) }

    Scenario #7: How to query list of all mailboxes with Send-As permission assigned on them?
    > Get-Mailbox | Get-ADPermission | where {($_.ExtendedRights -like “*Send-As*”)} | FT –Wrap
    Note: This will get the list of mailboxes with Send-As permission assigned. Also you can notice that it shows Send-As permissions assigned to SELF on all mailboxes also.

    Scenario #8: How to query list of all mailboxes with Send-As permission assigned on them (filter out SELF and inherited permissions as similar to Scenario #4)?
    > Get-Mailbox | Get-ADPermission | where {($_.ExtendedRights -like “*Send-As*”) -and ($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”)} | FT –Wrap

    Scenario #9: How to query the permissions of shared calendar in Exchange 2010?
    > Get-MailboxFolderPermission –identity “mailboxaccount*:\Calendar”
    Note: If you just try Get-MailboxFolderPermission with identity with mailboxaccount won’t get you the above.

    Scenario #10: How to query the users rights to a specific users mailbox?
    > Get-MailboxPermission –identity “username” | fl user, accessrights


    Scenario #11: How to query the permissions for every users mailbox?
    > Get-MailboxPermission –identity * | fl user, identity, accessrights



    + Exporting the data:
    At anypoint of time, if you want to export the above results to a CSV file, then you can use “Export-csv”. Say, let we try with one of the above scenario – try with scenario # 2:
    > Get-Mailbox | Get-MailboxPermission | Export-csv C:\permissions.csv


    + Automation using .Net Framework:
    If you want to like to add Exchange management capabilities to your Microsoft .NET Framework–based applications then you can try the above by referring the following: http://msdn.microsoft.com/en-us/library/bb332449(v=exchg.80).aspx and http://msdn.microsoft.com/en-us/library/ff326159(v=exchg.140).aspx.

    Happy PowerShelling and automation…!!

  • Le Café Central de DeVa

    Admin: How to remove retention policy from Outlook/Exchange?


    ·To remove retention policy from Outlook:

    When you remove a retention policy from an email message, the folder policy applies to the item, if one is assigned.

    1. In the message list, click a message. (To select more than one message, press and hold CTRL as you click each message.)

    2. On the Home tab, in the Tags group, click Assign Policy.


    3. Under Retention Policy, click Use Folder Policy.

    Note: The retention policy for a message appears in the header in the Reading Pane under the recipient names and includes the expiration date. If no retention policy is applied, no information appears under the message recipient names.

    From Exchange:

    You can use the following exchange cmdlet: http://technet.microsoft.com/en-us/library/dd297962.aspx. Please note that the retention policies are used to apply message retention settings to folders and items in a mailbox.

    The below cmdlet removes an existing retention policy "Business Critical", which is assigned to users, and suppresses the confirmation prompt.

    > Remove-RetentionPolicy -Identity "Business Critical" -Confirm:$false -Force

  • Le Café Central de DeVa

    Outlook Object Model: How to assign a Webpage to a specific Outlook folder programmatically?


    In this post we will see how to assign a web page to a specific Outlook folder programmatically using C# and Outlook Object Model. For this I tried the following sample, which checks for a folder named “HtmlView” in Microsoft Office Outlook. If the folder does not exist, the code creates the folder and assigns a Web page to it. If the folder exists, the code displays the folder contents.

    The following sample is written using C#.Net, Visual Studio 2010 and Outlook 2010 (Outlook Object Model API).

    Code snippet:

       1: //Microsoft.Office.Interop.Outlook._Application
       2: // Create an Outlook application.
       3: Outlook._Application oApp = new Outlook.Application();
       5: // Get the MAPI NameSpace and Logon values.
       6: Outlook._NameSpace oNS = (Outlook._NameSpace)oApp.GetNamespace("MAPI");
       7: oNS.Logon(Missing.Value, Missing.Value, true, true);
       9: //Assign a Web page with a specific Outlook folder
      10: Outlook.MAPIFolder newView = null;
      11: string viewName = "HtmlView";
      12: Outlook.MAPIFolder inBox = (Outlook.MAPIFolder) oApp.ActiveExplorer().Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
      13: Outlook.Folders searchFolders = (Outlook.Folders)inBox.Folders;
      14: bool foundView = false;
      16: foreach (Outlook.MAPIFolder searchFolder in searchFolders)
      17: {
      18:    if (searchFolder.Name == viewName)
      19:       {
      20:          newView = inBox.Folders[viewName];
      21:          foundView = true;
      22:       }
      23: }
      25: if (!foundView)
      26: {
      27:      newView = (Outlook.MAPIFolder)inBox.Folders. Add("HtmlView", Outlook.OlDefaultFolders.olFolderInbox);
      28:      newView.WebViewURL = "http://www.microsoft.com";
      29:      newView.WebViewOn = true;
      30: }
      32: oApp.ActiveExplorer().SelectFolder(newView);
      33: oApp.ActiveExplorer().CurrentFolder.Display();

    Run the sample and you will see the following output in Outlook:

    Outlook 2010 - Output

    Happy programming!!

  • Le Café Central de DeVa

    Handy: Keyboard Shortcuts for Windows 8


    Have you started playing around with new Windows 8 OS? You can get the list of Keyboard shortcuts for Windows 8….Enjoy!!

  • Le Café Central de DeVa

    Debug : Workaround - Remote debugging monitor (msvsmon.exe) error on Windows 7


    I was playing around debugging a custom app in one of my Windows 7 & Visual Studio 2010. When I tried running msvsmon.exe (Remote Debugging Monitor) and got the following error message when attempting to remote debug:

    Error while trying to run project: Unable to start debugging.

    This operation returned because the timeout period expired.

    During further investigation, I found that the issue is that the firewall is not setup properly on the Win7 machine for remote debugging. I noticed that when msvsmon first launches, it will prompt the user to configure the firewall.

    Per the debugger blogpost, this happens due to the firewall security API changes since Vista, the prompt may not come up. I tried the following workaround to move ahead:

    Control Panel->System and Security->Windows Firewall: Change notification settings -> enable Notify me when Windows Firewall blocks a new program ->Ok

    After implementing the above, I started remote debugging again and this time I can notice that msvsmon shows popup a windows security alert dialog box that prompt to grant access permission to msvsmon.

    Happy debugging!!

  • Le Café Central de DeVa

    Update: Windows Phone SDK 7.1.1 available for download


    The Windows Phone SDK 7.1.1 Update is now available for your download.

    It enables Windows Phone developers to do two things:

    • Develop apps that work well on the new 256 MB devices
    • Use the WPSDK 7.1 to develop on machines running Windows 8

    The 7.1.1 Update is really just that – it’s an update to the existing WPSDK: it doesn’t add much in the way of new features to your WPSDK installation; it updates your existing install to do a few new tricks:

    • The Visual Studio IDE is patched to enable selection from a list of emulators, and launching it (note that the WPSDK can only support connecting to one at a time, though)
    • The Windows Phone [512 MB device] emulator image is updated to use build 8773
    • A second, new emulator device image is included, allowing you to emulate running your app on a 256 MB device
    • The Microsoft Advertising SDK is updated to the latest version (previously only available as a separate install)
    • IntelliSense now supports specifying the 512 MB device requirement in your manifest file, should you choose to opt your app out from running on the new 256 MB devices
    • Language support is again consistent both in the IDE (the 7.1.1 Update supports all 10 of the WPSDK 7.1 languages) and in the emulator OS (Malay and Indonesian been added)
  • Le Café Central de DeVa

    Developer Webcasts on Exchange Server 2010 programming


    Please find the developer webcasts for Exchange Server 2010. If you're planning to create your own custom application using Exchange Server 2010, i would recommend you to start from this.

    I will try to add related info on the above shortly. Happy Coding!!
  • Le Café Central de DeVa

    Availability Web Service Protocol Specification References


    Information for the availability service is provided via our open specifications document: [MS-OXWAVLS].
    Information for the security model used in the availability service, please reference the following document: [MS-OXCPERM].

    For more info, you can refer:

    Availability Web Services Protocol specification: http://msdn.microsoft.com/en-us/library/cc463891(v=exchg.80).aspx or http://download.microsoft.com/download/5/D/D/5DD33FDF-91F5-496D-9884-0A0B0EE698BB/[MS-OXWAVLS].pdf or http://download.microsoft.com/download/5/D/D/5DD33FDF-91F5-496D-9884-0A0B0EE698BB/Exchange_Protocols.zip.

  • Le Café Central de DeVa

    EWS : How to access user’s free/busy info programmatically using Exchange Web Services (EWS)?


    In this post, we will see how to access user free/busy information programmatically using Exchange Web Services (EWS) – Proxy. Exchange provides such a service by storing what is referred to as free/busy data. This information will indicate what requested time range is free, busy, and tentative for a particular user. It will also provide any out of office (oof) status as well. Free/Busy data can be obtained using the Availability service provided by the Exchange Server. This is simply a web service which obtains the free/busy data directly from a user’s calendar.

    Specifically, the GetUserAvailability operation will provide the free/busy state at specific level of detail.Using GetUserAvailability operation, which provides current user availability information at a specified level of detail - about the availability of a set of users, rooms, and resources within a specified time period. Client applications such as Microsoft Office Outlook, Microsoft Outlook Web Access, Microsoft Outlook Mobile Access, and other applications use SMTP addresses to identify the requested user information.

    Let start now by creating the binding, set the credentials/URL and pass the binding (esb) to the following functionality ( which I haven’t added here).

    Identify the time to compare free/busy information:

    Duration duration = new Duration();

    duration.StartTime = DateTime.Now;

    duration.EndTime = DateTime.Now.AddHours(4);

    Identify the options for comparing free/busy information:

    FreeBusyViewOptionsType fbViews = new FreeBusyViewOptionsType();

    fbViews.TimeWindow = duration;

    fbViews.RequestedView = FreeBusyViewType.MergedOnly;

    fbViews.RequestedViewSpecified = true;

    fbViews.MergedFreeBusyIntervalInMinutes = 35;

    fbViews.MergedFreeBusyIntervalInMinutesSpecified = true;

    Identify the user mailbox to review for free/busy data:
    MailboxData[] mbx=

    mbx[0] = new MailboxData();

    EmailAddress emailAddress = new EmailAddress();

    emailAddress.Address = "user1@domain.com";

    emailAddress.Name = String.Empty;

    mbx[0].Email = emailAddress;

    mbx[0].ExcludeConflicts = false;

    Make the request and set the time zone of the request:
    getusrRequest.TimeZone = newSerializableTimeZone();

    getusrRequest.TimeZone.Bias = 480;

    getusrRequest.TimeZone.StandardTime = newSerializableTimeZoneTime();

    getusrRequest.TimeZone.StandardTime.Bias = 0;

    getusrRequest.TimeZone.StandardTime.DayOfWeek = DayOfWeekType.Sunday.ToString();

    getusrRequest.TimeZone.StandardTime.DayOrder = 1;

    getusrRequest.TimeZone.StandardTime.Month = 11;

    getusrRequest.TimeZone.StandardTime.Time = "02:00:00";

    getusrRequest.TimeZone.DaylightTime = new SerializableTimeZoneTime();

    getusrRequest.TimeZone.DaylightTime.Bias = -60;

    getusrRequest.TimeZone.DaylightTime.DayOfWeek = DayOfWeekType.Sunday.ToString();

    getusrRequest.TimeZone.DaylightTime.DayOrder = 2;

    getusrRequest.TimeZone.DaylightTime.Month = 3;

    getusrRequest.TimeZone.DaylightTime.Time = "02:00:00";

    In addition to that, add the mailbox and the view options to the request
    getusrRequest.MailboxDataArray = mbx;

    getusrRequest.FreeBusyViewOptions = fbViews;

    Send the above request and get the response:
    GetUserAvailabilityResponseType getusrResponse = esb.GetUserAvailability(getusrRequest);

    Access the free/busy info:

    if(getusrResponse.FreeBusyResponseArray.Length < 1)


    Console.WriteLine("No free/busy response data available.");




    foreach(FreeBusyResponseType fbrt in getusrResponse.FreeBusyResponseArray)


    if(fbrt.ResponseMessage.ResponseClass == ResponseClassType.Error)


    Console.WriteLine("Error:" + fbrt.ResponseMessage.MessageText);




    FreeBusyView fbv = fbrt.FreeBusyView;

    Console.WriteLine("Merged free/busy data: " + fbv.MergedFreeBusy);




    If you run the above piece of code, then you will get the result:


    For more information, you can refer the following article: http://msdn.microsoft.com/en-us/library/aa564001(v=exchg.140).aspx

    Happy programming!!

  • Le Café Central de DeVa

    Migration: Exchange Public folders and its future


    Public Folders are used in earlier versions of Microsoft Exchange Server to store free/busy data and files. From Microsoft Exchange Server 2007, free/busy data is no longer stored in public folders. It’s recommend that you do not store files in public folders in Exchange 2007. Instead, consider using Microsoft Office SharePoint, or Windows SharePoint Services. Public folders are included and supported in Exchange 2007 and 2010. However, future releases of Microsoft Exchange might not include public folders. You can visit http://blogs.technet.com/b/exchange/archive/2006/02/20/419994.aspx. Also, you can refer MS Exchange team blog have posted the updated public folder guidance for versions of Exchange past Exchange 2007.

    So, what are my options?

    If you're building something new, you should look at the requirements and building on the SharePoint Technologies platform:

    + Starting with Exchange 2007, we recommend that applications use the Availability service to provide free/busy data for Exchange mailbox users. Windows SharePoint Services replaces the file sharing functionality that public folders provide. You must redesign applications that use public folders to use Exchange Web Services.
    + Also consider redesigning custom applications as early as possible as future versions of Microsoft Exchange may not contain public folders.
    + In addition to that you can refer the wonderful blogpost by Joel.

  • Le Café Central de DeVa

    GoingNative 2012: Wonderful sessions on C++11


    Are you a C++ developer? Then, its for you. Recently I was watching Channel9, “GoingNative 2012” - wonderful sessions on C++. Please find the related links for your reference:

    Happy programming!!

  • Le Café Central de DeVa

    Differences: Outlook Object Model vs Pocket Outlook Object Model


    Recently one of my developer customer (developer of PC and mobile based applications) was asking is there any difference available between Outlook Object Model (OOM) API and Pocket Outlook Object Model (POOM) API? If yes, where it's documented? As you know, the Pocket Outlook Object Model (POOM) API is a COM-based library that provides programmatic access to Personal Information Manager (PIM) data on mobile devices. It provides functionality for manipulating PIM-item collections and folders.

    I pointed him to have a look at the MSDN document, which points at the principal differences between the Pocket Outlook Object Model and the Outlook object model.

Page 6 of 29 (706 items) «45678»