McAfee has a script stopper that can be configured, unlike Norton's. I don't
use it so I don't know the details of how to configure the script stopper to
trust certain software, but it is possible.
Is this managed code you are using (VB.NET) or VBA code or VB6 code?
If it worked before and not now it's likely not a permissions issue. And I
run code in and out of VS versions all the time with no problems.
Did you recently install any addins or other code that accesses Outlook? I
have seen some cases where badly written managed code can prevent other code
from successfully calling CreateObject() or New() on the Outlook.Application
object. In my experiences with that it never happens to any Outlook addins,
just with standalone code. And the code works if that addin or synch program
is stopped from running.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Duncan" <(E-Mail Removed)> wrote in message
news:AD93312F-1F91-43A8-BD34-(E-Mail Removed)...
> Hi
>
> I am running McAfee but have tried it with it turned off with no success.
> Also tried to create Excel and that works fine. The nearest I have got to
> a
> diagnosis is a posting I found elsewhere saying it was to do with
> permissions/authorities, namely that VS runs with elevated privileges
> (Administrator) and Outlook doesn't, so they clash. The prove that this
> may
> have some validity is that if I shut Outlook and use the CreateObject
> method,
> then the code runs.
>
> What is baffling is why it suddenly stopped working when it originally
> worked and/or why it ever worked if permissions are at the root of it all.
>
> Does this make any sense to you?
>
> Duncan