none
WPF Addin for Outlook Prompts Security Question RRS feed

  • Question

  • Hello All,

    I Was trying to make a WPF Addin for Outlook 2003 where on Clicking a toolbar the WPF Exe is called.

    Now when trying to drag drop a email from outlook to WPF Exe , the Outlook prompts for Security alert stating " An Application is trying to access outlook data , allow for 5 , 10 minutes etc "

    Now i want to avoid this Security alert , thus when someone drag drop a email from outlook to WPF exe . the security alert should be handled automatically or should not appear .

    Is there any way to give trust of outlook to this WPF EXE  ?

    Please help me out guys how to suppress the outlook security prompt to enhance the WPF exe user experience.?

     

    Thanks for ur help 

    Mohit 

    Wednesday, April 6, 2011 7:18 AM

Answers

  • Hi Mohit,

    that's a known Bug as I know. And there's no workaround for it.
    The only Idea for that comes in my mind here is to intercept the WnApi-Messages for the Inspector/Explorer Window and watch for key strokes and handle that in the form when it's active.

    That's a bit tricky and is in no way supported by microsoft.

    However - that's nothing for a small code snippet. It's more a Challenge.
    I need to invest a couple of hours for such a prototype and it's not sure if it's working at the end.
    If you are willing to pay for such a prototype you can contact me offline.

    Greets - Helmut


    Helmut Obertanner [http://www.x4u.de] [http://www.outlooksharp.de]
    Wednesday, April 13, 2011 9:37 AM
    Answerer

All replies

  • Hello Mohit,

    you are not creating an AddIn - its an Executable and you are automate Outlook from taht exe.
    Basically you need a third-Party library like Redemption or Add-In-Express to avoid the Outlook-Security Prompt.

    But it depends on what exactloy you want todo. In some cases you will get no security Prompts.
    It depends.

    Greets - Helmut


    Helmut Obertanner [http://www.x4u.de] [http://www.outlooksharp.de]
    Wednesday, April 6, 2011 11:49 AM
    Answerer
  • Hello Helmut,

     

    My Sole purpose is just to drag drop email from outlook and Upload that Email file to Server.

    Thus doing it causes Security Prompt , Is there any way to avoid it without using Redemption or Addin- Express ? 

     

    Is there an alternative like some PInvoke method or any other workaround to overcome this issue ?

    Wednesday, April 6, 2011 12:31 PM
  • Hi Mohit,

    it's just an Idea - but I wuold do it within an Outlook-AddIn.
    On the Drop onyour application you can notify the Outlook-AddIn via Windows API (PostMessage) that something from Outlook has been dropped.
    In Outlook you need to listen to the Message and if you get  that notification, you can check what items are selected and upload them inside the AddIn.

    This way you won't get a security Prompt.
    You can put the code to upload in a dll and use that fom the AddIn.

    Greets - Helmut


    Helmut Obertanner [http://www.x4u.de] [http://www.outlooksharp.de]
    Wednesday, April 6, 2011 1:03 PM
    Answerer
  • When trying to make a outlook addin - Yes i can save the Outlook email file as *.msg and avoid security settings...

    BUT NOW -

     

    A BIG problem again arises ...The Spacebar stops working in Textbox where user types comments when the Focus was shifted to reading pane in Outlook ..

    Event after when the Outlook Addin Form is in focus the spacebar, Ctrl + C , CTrl + V dont work for Form but keeps on working for Outlook in behind..

     

    Which means even the cursor is blinking now in Outlook Addin Form , but now when i press the spacebar the email selection is getting changed in background of Outlook not the spacebar providing space in Textbox in Focused form.

    So thats the catch again...

     

    I DO NOT WANT TO USE REDEMPTION or OUTLOOK ADDIN - EXPRESS ..Can anyone help me out here ???

     

    Wednesday, April 13, 2011 9:15 AM
  • Hi Mohit,

    that's a known Bug as I know. And there's no workaround for it.
    The only Idea for that comes in my mind here is to intercept the WnApi-Messages for the Inspector/Explorer Window and watch for key strokes and handle that in the form when it's active.

    That's a bit tricky and is in no way supported by microsoft.

    However - that's nothing for a small code snippet. It's more a Challenge.
    I need to invest a couple of hours for such a prototype and it's not sure if it's working at the end.
    If you are willing to pay for such a prototype you can contact me offline.

    Greets - Helmut


    Helmut Obertanner [http://www.x4u.de] [http://www.outlooksharp.de]
    Wednesday, April 13, 2011 9:37 AM
    Answerer