473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

COM Interop hell

I have COM. I make it interoped with strong key.
Works fine so far in dev enviroment, BUT once transfer to production the
application using this interop wont start.
original COM in directory with interoped COM, but the registeration of COM
made from system32 folder (this should be this way)
Once more: THE EXACTLY SAME configuration (except VS) in prod enviroment.
In OLEViewer the only difference between dev and prod enviroment (from COM
point of view) is this STRANGE string in CLSID area (what the hell is it)
InprocServer32[InprocServer32]=Z_)(!QE........Y%Global_System_OLEAUT32>....

So
1) What is this string?
2) How to make it work? BTW once registered COM from the same directory with
Interopped everythink OK (application working) - But wrong 'cos this COM
should be registered from system32 (dependencies issue). Transferring
Interop to system32 folder do not solve the problem..

PLEASE HELP

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
Nov 16 '05 #1
3 1295
Hi Tamir,

Do you mean, you wants to expose the .net assembly as a com object for a
com client to use?
After you copy the app into another machine, that did not work?

I think if you need to copy the application to another machine, we do need
to register the assembly again, so that the COM client will aware of that
from the registry.
Aslo if you wants to move the assembly's relative path, we do need to use
the Regasm tool with /codebase switch so that the registry will have the
fullpath to the assembly's path.

You may take a look at the regasm tool.
http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfassemblyregistrationtoolregasmexe.asp

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 16 '05 #2
no, I have assembly wich is interopped com
the com from wich the assembly created is in system32 folder and not in the
same place with the interrop presssed

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "

""Peter Huang"" <v-******@online.microsoft.com> wrote in message
news:3W**************@cpmsftngxa10.phx.gbl...
Hi Tamir,

Do you mean, you wants to expose the .net assembly as a com object for a
com client to use?
After you copy the app into another machine, that did not work?

I think if you need to copy the application to another machine, we do need
to register the assembly again, so that the COM client will aware of that
from the registry.
Aslo if you wants to move the assembly's relative path, we do need to use
the Regasm tool with /codebase switch so that the registry will have the
fullpath to the assembly's path.

You may take a look at the regasm tool.
http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfassemblyregistrationtoolregasmexe.asp

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 16 '05 #3
Hi,

So, can you describe the problem more detailed?
do you mean you use the tlbimp to generate a interop assembly from com
object, but when you copy the interop assembly and the app into another
machine, the app does not work?

If so, I think you may try to use the regmon and filemon tool to see if
there is anything not found or access deny error.
http://www.sysinternals.com/ntw2k/source/filemon.shtml
http://www.sysinternals.com/ntw2k/source/regmon.shtml

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: keefah | last post by:
Hi, I'm writing a C# web app that uses Outlook to send email. I use a reference to the Microsoft Outlook 11.0 Object Library, but it's giving me problems. I tracked down some stuff on the Net...
22
by: Jim Hubbard | last post by:
I am reposting a portion of a thread that I am involved in under a new topic because it seems that there are still people that believe the whole "DLL Hell" myth. I hope I can shed some light on...
0
by: lacour | last post by:
I can't seem to figure out the difference between adding a COM dll reference in VS2003 and by using TLBIMP. I have a COM dll that references another COM dll, and I want the syntax of my...
20
by: Razzie | last post by:
Hey all, I'm really going through a small hell right now - I've completely lost it :) I made a project, using two interop libraries from exchange (created them as in this msdn article:...
1
by: GreatB | last post by:
Bill Gates died in a car accident. He found himself in Purgatory being sized up by God . .. "Well, Bill, I'm really confused on this call. I'm not sure whether to send you to Heaven or Hell....
8
by: Rob Edwards | last post by:
When trying to add the Microsoft CDO for Exchange Management Library (aka CDOEXM.dll) I receive the following message: "A reference to 'Microsoft CDO for Exchange Management Library' could not be...
1
by: Siv | last post by:
Hi, I referenced Excel via COM in References and selected the Excel Version 11.0 but somehow it picked up the Beta of Office 2007 in the Interop reference that gets pulled in as well. I decided...
2
by: JC | last post by:
Anybody knows what problem has this code? I think, in the Garbage Collector? You know the Solution? The program in the test's case, whit 350 contacts, run OK before number 86. The error is a...
7
by: Wiebe Tijsma | last post by:
Hi, I'm running a web application application using the Microsoft.Interop.Security.AzRoles version 1.2.0.0 in the GAC. After an upgrade to Vista, I also have a version 2.0.0.0 in the GAC. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.