Please enlighten me what is going on and suggest possible work
arounds.
Thanks in advance!
What is this MyPluginControl.dll doing? Does it call to the OCX or what?
--
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
<pran...@gmail.com> wrote in message
news:eb8831b0-2aee-4c1a...@q30g2000prq.googlegroups.com...
I have installed the plug-in in client`s system and tried to register
these files using regsvr32 manually.
But, they are not registering. I got the following error numbers for
the two files.
CDO.dll - 0x80040200
MyPluginControl.ocx - 0x80004005
Please suggest an approach to solve this problem!
Thanks and Regards,
Pranav
It is also illegal to distribute CDO.DLL, which is matched to the version of
Outlook. It should only be installed from the Office CD or from the MS
download, depending on version.
Any OCX should be able to be registered using regsvr32, although on Vista
you run into UAC and permissions issues. In that case an admin logon would
be needed to register the OCX using regsvr32 or a script or whatever.
--
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
<pran...@gmail.com> wrote in message
news:921c88b5-75f8-4ced...@v18g2000pro.googlegroups.com...
I have downloaded the ExchangeCdo.exe from microsoft site and tried to
install it in client system. But, it gave an error saying - "Microsoft
Office 2007" should be installed to install CDO 1.2.1" and exited. I
have developed Add-In for Outlook 2003.
When registered in Elevated Command Prompt, MyPluginControl.ocx has
registered.
But, my add-ins are not displayed in outlook.
The plug-in is unchecked in the COM AddIns list in outlook. I tried to
check it. No luck. It is showing the same error.
Location : "c:\Program Files\Common Files\Microsoft Shared\VSTO
\8.0\AddIn.dll"
Load Behavior : "Not Loaded. Error occured while loading a COM
Plugin."
I have created a user with restricted permissions in the same
(problematic) system and installed my plugin in that. While
installation, it gave the same error about plugincontrol.ocx
registration. To my surprise, the plugin is loaded when I opened the
outlook. Not only this, all the other functionality in it is also
working fine. It is also working in administrator account.
The user which have problem is listed in administrator group and have
admin privileges. Still, it is getting problem with loading of
AddInLoader.
Will the user privileges effect the functionality of plugin? If so,
how can a normal(restricted) user is able to run it without any
errors?
What might be the reason for the abnormal behaviour of this AddIn?
I am tired and stressed in finding a solution for this... :(
Please educate me on whats happening!
Thanks and Regards,
Pranav
In addition to not being supported for use with managed code (if you have
problems no one will help you), CDO is also very strict as to Outlook
security. I would very strongly recommend not using CDO with managed code,
but that's your decision. Just don't complain when it breaks in the field at
a customer site.
I posted a number of suggestions about debugging load errors for managed
code, as well as some suggestions about dependencies for that OCX in the
thread you started in the installation group, which by the way has nothing
to do with creating installation packages.
--
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
<pran...@gmail.com> wrote in message
news:01944c7d-ac09-4406...@y38g2000prg.googlegroups.com...
I have started working with VSTO since 20 days. And have learned many
things and from forums and learning...
More over, this project has been developed an year back! I am just
trying to debug it and solve problems in it!
As you suggested, I have removed cdo.dll from my project. How to know
that CDO.DLL is installed with office or not?
I have downloaded Dependency Walker. In that, it is showing an error
with a missing function DwmExtendFrameIntoClientArea in DWMAPI.dll.
I have searched for this in msdn forums. The easiest solution given in
that is uninstalling IE7. :)
Is there any other solution for this?
I am going through the fusion logs now.
This is my last trial for solving this! If this didn't work, I will
opt for converting my code to managed one, as you have suggested.
Thanks
Pranav
I have no idea about that missing function or even why your code is using it
or for what. You can try to recode using some other method, but again I have
no idea why that's being called.
You also will have to look at why CDO is being used at all, and what you can
do to do whatever is being done using CDO some other way. Most of use
Redemption (www.dimastr.com/redemption) as a managed code safe substitute
for using CDO, but that's a 3rd party library.
--
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
<pran...@gmail.com> wrote in message
news:a7296877-7c2a-452c...@p6g2000pre.googlegroups.com...
Get back to you if I get any errors again!
Regards,
Pranav
*** Assembly Binder Log Entry (3/20/2009 @ 4:18:40 PM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file
specified.
Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\mscorwks.dll
Running under executable C:\PROGRA~1\MICROS~2\OFFICE11\OUTLOOK.EXE
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = CRP19\Administrator
LOG: DisplayName = msosec, Version=7.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = file:///C:/Program Files/Microsoft Office/OFFICE11/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = OUTLOOK.EXE
Calling assembly : Microsoft.Office.Tools.Common, Version=8.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET
\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: msosec, Version=7.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft
Office/OFFICE11/msosec.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft
Office/OFFICE11/msosec/msosec.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft
Office/OFFICE11/msosec.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/Microsoft
Office/OFFICE11/msosec/msosec.EXE.
LOG: All probing URLs attempted and failed.
--
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
<pran...@gmail.com> wrote in message
news:68c6745d-7c8a-441a...@s22g2000prg.googlegroups.com...