Installing C# Com interop on other machine

R

Razzie

Hey all,

I developed an application as a com object. I set the 'register for com
interop' in the project properties to true.

How do I deploy this on another machine? I can't add the DLL as a COM object
in Component Services.

THanks,

Razzie
 
N

Nicholas Paldino [.NET/C# MVP]

Razzie,

The first thing you need to do is make sure that you have the framework
installed on the machine which you will be installing components for COM+
on.

If that is in place, then you shouldn't select "register for COM
interop" as you aren't registering for COM interop. Rather, what you want
to do is run regsvcs.exe on the assembly, which will register it properly in
COM+.

If you know that your client is a .NET client, then your component will
be registered automatically upon first use.

Hope this helps.
 
R

Razzie

Nicholas,

Thanks for your reply. I will test this soon and hope it works :)

Nicholas Paldino said:
Razzie,

The first thing you need to do is make sure that you have the framework
installed on the machine which you will be installing components for COM+
on.

If that is in place, then you shouldn't select "register for COM
interop" as you aren't registering for COM interop. Rather, what you want
to do is run regsvcs.exe on the assembly, which will register it properly
in COM+.

If you know that your client is a .NET client, then your component will
be registered automatically upon first use.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Razzie said:
Hey all,

I developed an application as a com object. I set the 'register for com
interop' in the project properties to true.

How do I deploy this on another machine? I can't add the DLL as a COM
object in Component Services.

THanks,

Razzie
 
R

Razzie

Ok new problem:

'The assembly does not have a strong name'. It says that on the deployement
machine.

Now I read something about creating a key using the sn.exe tool, added it to
my project, recompiled, but now I get the error (on the developement
machine) that my other dll files (some exchange interop files) do not have a
strong name. How do I give those a strong name, I can't edit that into my
assemblyinfo.cs file can I. What a lot of work to deploy a project :(

Thanks,

Razzie

Razzie said:
Nicholas,

Thanks for your reply. I will test this soon and hope it works :)

Nicholas Paldino said:
Razzie,

The first thing you need to do is make sure that you have the
framework installed on the machine which you will be installing
components for COM+ on.

If that is in place, then you shouldn't select "register for COM
interop" as you aren't registering for COM interop. Rather, what you
want to do is run regsvcs.exe on the assembly, which will register it
properly in COM+.

If you know that your client is a .NET client, then your component
will be registered automatically upon first use.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Razzie said:
Hey all,

I developed an application as a com object. I set the 'register for com
interop' in the project properties to true.

How do I deploy this on another machine? I can't add the DLL as a COM
object in Component Services.

THanks,

Razzie
 
R

Razzie

This same question was posted by Patty O'Dors I noticed too late :(

Razzie said:
Ok new problem:

'The assembly does not have a strong name'. It says that on the
deployement machine.

Now I read something about creating a key using the sn.exe tool, added it
to my project, recompiled, but now I get the error (on the developement
machine) that my other dll files (some exchange interop files) do not have
a strong name. How do I give those a strong name, I can't edit that into
my assemblyinfo.cs file can I. What a lot of work to deploy a project :(

Thanks,

Razzie

Razzie said:
Nicholas,

Thanks for your reply. I will test this soon and hope it works :)

Nicholas Paldino said:
Razzie,

The first thing you need to do is make sure that you have the
framework installed on the machine which you will be installing
components for COM+ on.

If that is in place, then you shouldn't select "register for COM
interop" as you aren't registering for COM interop. Rather, what you
want to do is run regsvcs.exe on the assembly, which will register it
properly in COM+.

If you know that your client is a .NET client, then your component
will be registered automatically upon first use.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hey all,

I developed an application as a com object. I set the 'register for com
interop' in the project properties to true.

How do I deploy this on another machine? I can't add the DLL as a COM
object in Component Services.

THanks,

Razzie
 

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