展望的COM未注册 [英] Outlook Com not registered

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

问题描述

好了,所以这是一个新的机器在我们的办公室的窗户8.1的全新安装。我们安装了Office专业增强版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框。我不知所措,我已经修复并重新安装了专业加2013包无济于事。 COM对象应在istall注册,有没有办法,我发现手动注册。我试过在VS针对X86无济于事。我一直在敲打在这个问题上了几个星期,所以我很为难。有没有人解决了这个问题,即它不是一个值: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}虽然一个问题...关键是不存在的。啊哈!

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}(A则引用MSOUTL.OLB关键,我的程序使用)手动关键打造出来的缺少键。 (我不知道的方式来复制注册表编辑器中的一个完整的密钥)

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!

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

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