Outlook Com未注册 [英] Outlook Com not registered

查看:314
本文介绍了Outlook Com未注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,这是一个新的机器上安装的Windows 8.1在我们的办公室。我们在其上安装了Office Professional Plus 2013,一切看起来都很好。但是,我收到以下错误:

Ok so this is a fresh install of windows 8.1 on a new machine in our office. We installed Office Professional Plus 2013 on it and everything looks rosy. However, I get the following error:

我研究的一切都说,在注册表中有一个旧的前景值。 9.3,9.4等等。然而,这台电脑从来没有任何东西,但Outlook 2013上,每个注册表值,我可以找到9.5。

Everything I've researched says that there's a old outlook value in the registry. 9.3, 9.4 etc. However this computer has never had anything but Outlook 2013 on it and every registry value I can find is 9.5.

我开发的应用程序,写了一封标准的电子邮件,当我们向客户发送更新时发送。在C#中相关代码如下:

I am developing an app that pre-writes a standard email we send when we send clients an update. in C# the relevant code looks like this:

string Body = Head + FileList + details + EmailPart + Signature;

Outlook.Application OLapp = new Outlook.Application();
MailItem eMail = OLapp.CreateItem(Outlook.OlItemType.olMailItem); //this is the line that causes the error.
eMail.Subject = "subject";
eMail.To = "";
eMail.HTMLBody = Body; //text created above
eMail.Importance = OlImportance.olImportanceNormal;

eMail.Display();

这适用于办公室中的每台机器,除了这个64位W8盒。我失去了,我修复并重新安装了Professional Plus 2013包,无济于事。 com对象应该在istall上注册,没有办法,我发现手动注册它。我试图针对X86在VS没有效果。我一直在打这个问题几个星期,现在所以我被骗了。有没有人解决这个问题,它不是一个值:9.3 / 9.4注册表问题?

This works on every machine in the office except this 64bit W8 box. I'm at a loss, I've repaired and reinstalled the Professional Plus 2013 package to no avail. The com object should register on istall, there's no way I've found to register it manually. I've tried targeting X86 in VS to no avail. I've been hammering on this issue for a couple of weeks now so I'm stumped. Has anyone resolved this issue where it wasn't a Value: 9.3/9.4 Registry issue?

也许有一种方法来做这不使用COM, dll?任何事情,让这个用户离开地面将是有帮助的。谢谢。

Maybe there's a way to do this that doesn't use COM instead using a dll? Anything to get this user off the ground would be helpful. Thank you.

推荐答案

已解决!

这里我找到了我的解决方案。

Thanks to an answer posted here I was put on the right track for finding my solution.

总之,问题不是注册表中有多个键或无效的键,它是在注册表中的特定位置缺少一个键。具体在HKEY_CLASSES_ROOT\TypeLib \

长:
我的错误指向了一个键{0006001-0000-0000-C000- 000000000046}我可以在线找到的所有内容,然后指向键HKEY_CLASSES_ROOT\Interface {0006001-0000-0000-C000-000000000046}

In long: My error pointed me towards a key {0006001-0000-0000-C000-000000000046} Everything I could find online then pointed towards the key HKEY_CLASSES_ROOT\Interface{0006001-0000-0000-C000-000000000046}

最常见的问题是多个版本条目,9.5,9.4等。您必须删除无效的版本。对于我的问题,只有一个版本,9.5。

The most common issue is when you have multiple version entries, 9.5,9.4 etc. You have to remove the versions that are invalid. For my issue there was only one version, 9.5.

我搜索过其他{0006001-0000-0000-C000-000000000046}条目,每个条目只有一个版本,9.5

I searched for other {0006001-0000-0000-C000-000000000046} entries and every one of them only had one version, 9.5

以上链接的答案是要删除HKEY_CLASSES_ROOT\TypeLib中的无效版本{0006001-0000-0000-C000-000000000046}虽然有一个问题,但密钥不存在。 AHA!

What the answer linked above wanted me to do was to remove invalid versions in HKEY_CLASSES_ROOT\TypeLib{0006001-0000-0000-C000-000000000046} One problem though... the key did not exist. AHA!

我使用HKEY_CLASSES_ROOT\TypeLib手动创建了键{00062FFF-0000-0000-C000-000000000046}(引用我程序使用的MSOUTL.OLB的键)以构建缺少的密钥。 (我不知道如何复制regedit中的整个密钥)

I created the key manually using HKEY_CLASSES_ROOT\TypeLib{00062FFF-0000-0000-C000-000000000046} (A key that referenced the MSOUTL.OLB that my program uses) to build out the missing key. (I don't know of a way to copy an entire key in regedit)

一旦我做了,我需要重新启动计算机,一旦重新启动程序工作完美无瑕。

Once I had done that I needed to restart the computer, once restarted the program works flawlessly.

显然Office365在安装过程中错过了此位置。幸运的是,我可以把这个几个月长的瘟疫开始与我质疑我的代码在我身后!希望这有助于未来的人!

Apparently Office365 misses this location during the install. Thankfully I can put this nearly month long plague that started with me questioning my code behind me! Hope this helps someone else in the future!

这篇关于Outlook Com未注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆