InprocServer32/mscoree.dll issue

B

Ben Litchfield

I am creating an Excel Add-in in VS 2005, when I either check the "Register
for COM Interop" or use the "regasm /codebase" command the registry entry for
the InprocServer32 is "mscoree.dll" and the add-in does not load with the
message "cannot find add-in mscoree.dll, Delete from list?"

After a little searching I found that If I modify the
HCL\CLSID\<GUID>\InprocServer32 entry from "mscoree.dll" to
"c:\windows\system32\mscoree.dll" it works, but if I unregister/reregister it
goes back and I need to update the registry again.

I have a couple questions

1)Is there something wrong with my setup that having just "mscoree.dll"
doesn't work?
2)Does it typically work without the full path?
3)Is there a way when I register via the command line that I specify the
full path to mscoree.dll?
4)Would it be an issue if I just always set this registry entry to the full
path? I want to distribute this to a set of users and want to avoid this
issue during deployment.
 
C

Cindy M -WordMVP-

Hi Ben,

This isn't really my area of expertise, but since you still haven't gotten a
response...

You should NOT install your Add-in to work with mscoree.dll. You should generate
a "shim" and link it to that. Look at the articles this msdn search turns up:

http://search.msdn.microsoft.com/search/default.aspx?siteId=0&tab=0&query=Office
+Add-in+Shim
I am creating an Excel Add-in in VS 2005, when I either check the "Register
for COM Interop" or use the "regasm /codebase" command the registry entry for
the InprocServer32 is "mscoree.dll" and the add-in does not load with the
message "cannot find add-in mscoree.dll, Delete from list?"

After a little searching I found that If I modify the
HCL\CLSID\<GUID>\InprocServer32 entry from "mscoree.dll" to
"c:\windows\system32\mscoree.dll" it works, but if I unregister/reregister it
goes back and I need to update the registry again.

I have a couple questions

1)Is there something wrong with my setup that having just "mscoree.dll"
doesn't work?
2)Does it typically work without the full path?
3)Is there a way when I register via the command line that I specify the
full path to mscoree.dll?
4)Would it be an issue if I just always set this registry entry to the full
path? I want to distribute this to a set of users and want to avoid this
issue during deployment.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
B

Ben Litchfield

Hi Cindy,

Thanks for the response, yesterday I started building the shim solution
based off the infamous shim page

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_shim.asp

It appears that this was built using VS 2003 and not VS 2005 and that there
are enough differences that it is not a drop in replacement.

I think I am stuck on signing my Shim DLL, it appears that Authenticode is
included with VS 2005, but the commands don't match exactly as VS 2003. Do
you know of a Authenticode tutorial that works with VS 2005?

Thanks,
Ben
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?QmVuIExpdGNoZmllbGQ=?=,
Thanks for the response, yesterday I started building the shim solution
based off the infamous shim page

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_shim.asp

It appears that this was built using VS 2003 and not VS 2005 and that there
are enough differences that it is not a drop in replacement.

I think I am stuck on signing my Shim DLL, it appears that Authenticode is
included with VS 2005, but the commands don't match exactly as VS 2003. Do
you know of a Authenticode tutorial that works with VS 2005?
Mmm, I'm afraid I can't help you. But you might want to see if anything in this thread helps:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=578417&SiteID=1

(Technically, the question does belong here, but if you aren't getting a response...)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply in the
newsgroup and not by e-mail :)
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?QmVuIExpdGNoZmllbGQ=?=,
thanks for the follow-up :)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top