LastHope

Hi,
I've tried everything: I tried to uninstall the AVG antivirus, then I tried to reinstall Office...to no attempt! Nothing works anymore!
But I believe I've found the error...instead of starting within VSTO, I've made a simple form containing all the buttons that my plugin had got, assigning the same methods it got...and I tried to start it, in order to test the single function...

But even this doesn't work, because I receive a FileNotFoundException when I try to create my controller which the plugin used to query in order to get the methods...the message is:

Retrieving the COM class factory for the component with CLSID {..} failed due to the following error: 8007007e.

So, it's possible that the antivirus has messed up something within COM That thing is my controller developed by myself, which is in the same project of this test program...it's not possible it cannot find it!
When I used to try to reinstall, restart my program, it did get to recreate the toolbar...but the buttons didn't work --> the controller had this kind of error...

Have you got any idea what may I check Thanks...

LastHope



Re: Visual Studio Tools for Office Retrieving the COM class factory for component with CLSID

LastHope

I've tried also to start my plugin in debug mode, inserting break points and so on..nothing
I don't get anything...I really don't know what I could do... :(
Thanks

LastHope





Re: Visual Studio Tools for Office Retrieving the COM class factory for component with CLSID

LastHope

Finally I've got the real message!

I get that exception when I try to make

_outlook = new ApplicationClass();

System.IO.FileNotFoundException was unhandled
Message="Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 8007007e."
Source="RemoteCalendarsLibrary"
StackTrace:
at RemoteCalendars.Core.RemoteCalendarsController..ctor() in C:\Documents and Settings\Dani Tiles\My Documents\Visual Studio 2005\Projects\RemoteCalendarsVSTO\RemoteCalendarsLibrary\RemoteCalendarsController.cs:line 97
at RCButtons.Form1..ctor() in C:\Documents and Settings\Dani Tiles\My Documents\Visual Studio 2005\Projects\RemoteCalendarsVSTO\RCButtons\Form1.cs:line 19
at RCButtons.Program.Main() in C:\Documents and Settings\Dani Tiles\My Documents\Visual Studio 2005\Projects\RemoteCalendarsVSTO\RCButtons\Program.cs:line 17
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

So, definitely the antivirus has messed up my Office, and it cannot get that thing...I've tried to reinstall PIA, anything else I might try
Thank

LastHope





Re: Visual Studio Tools for Office Retrieving the COM class factory for component with CLSID

LastHope

Hi,
Google has been almost helpful...I don't know, but it may be this the answer:

http://www.eggheadcafe.com/aspnet_answers/NETFrameworkinterop/Apr2006/post26456634.asp

Check the last message...I've that registry which points to ScrBlock.dll...which doesn't exist anymore

That's why I do get the FileNotFoundException :)

Now, the hard question: how can I fix it Should I delete that registry entry Should I completely uninstall and then install again Office 2003 (that worries me because I hope it won't mess up my VSTO installation...)

I'm in your hands ;)

Thanks

LastHope





Re: Visual Studio Tools for Office Retrieving the COM class factory for component with CLSID

LastHope

Hi,
in the end, I decided by myself to delete that entry (I found through Google someone who solved many ActiveSync problems by this way)...and now everything works...

However, I'd like to point this out: the VSTO environment didn't help me at all, even through VS and in debug mode...it didn't throw (like my very stupid, very simple) test program, that NotFoundFileException...and this is bad, I believe. I hope someone else may found my experience useful, and I hope someone through VSTO might check if, in a next release, this check may be made, avoiding developers to build their own test programs ;)

Cheers, and thanks anyway

LastHope





Re: Visual Studio Tools for Office Retrieving the COM class factory for component with CLSID

learningMachine

For anyone who still doesnt get it. the registry value which you want to delete is

HKEY_CLASSES_ROOT\CLSID\{0006F03A-0000-0000-C000-000000000046}\InProcServer32 (Default).

this will set the value of this key to (value not set).

Hope this helps






Re: Visual Studio Tools for Office Retrieving the COM class factory for component with CLSID

v_m

Excellent answer and help. I spent hours and hours to find a solution to this exact problem. WITH YOUR HELP I FIX THE ISSUE.. THANK YOU SO MUCH, I APPREACIATE YOUR TIME AND HELP



Re: Visual Studio Tools for Office Retrieving the COM class factory for component with CLSID

winniecherian

Hi

I added references of Outlook into my application for opening email client using my ASP.NET project,, its working fine in DEBUG mode,,,

but when i install this application on to my WINDOWS 2000 TERMINAL SERVER , this error is shown

Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005.

How should i solve this problem,,,

I am using ASP.NET 2.0,,,

it is perfectly working in DEBUG mode......

only when installed in SERVER its showing the above error

Thanks & regards

winnie cherian

http://support.microsoft.com/kb/q198432/






Re: Visual Studio Tools for Office Retrieving the COM class factory for component with CLSID

Sue Mosher - Outlook MVP

winnie, Outlook is not suitable to automate in ASP.NET code or in any server-based code, for that matter. You might want to start a new thread with details of what you're trying to accomplish, so someone can suggest more viable alternatives.





Re: Visual Studio Tools for Office Retrieving the COM class factory for component with CLSID

GOVOLS

Thank you SO MUCH for the clsid registry entry to delete. I was also going crazy. Worked fine on my Office Dev machine but on Dev laptop it would fail with same errors reported above. Didn't matter whether in VS2003 or 2005.

BUT when I remove the symantec script blocker entry from registry you described above then voila.... Works fine. I am running the latest norton antivirus 10 that supports vista on my laptop. Using an older enterprise version on my Office machine. Maybe configured differently as well. Regardless, I thank you for this tip.