Com need Password?

  • Thread starter Thread starter tshad
  • Start date Start date
T

tshad

I am creating a COM in VS 2008 and was wondering if the Password is
necessary?

If I create it with a password, can I change it later after it is
registered?

Thanks,

Tom
 
tshad said:
I am creating a COM in VS 2008 and was wondering if the Password is
necessary?

If I create it with a password, can I change it later after it is
registered?

Thanks,

Tom


What kind of a password are you referring to on a COM object?
 
Family Tree Mike said:
What kind of a password are you referring to on a COM object?

When you set up the COM project you need to go to Project/Properties/Signing
to set up a Strong Name. When you select "Sign the Assembly" and then <new>
in the dropdown, you get a window with a KeyFile name and a password (which
you don't have to put in). Not sure why you need it.

But if you reference another class from a COM object, it forces you to put a
strong name in for that project as well.

Tom
 
tshad said:
Family Tree Mike said:
What kind of a password are you referring to on a COM object?

When you set up the COM project you need to go to
Project/Properties/Signing to set up a Strong Name. When you select "Sign
the Assembly" and then <new> in the dropdown, you get a window with a
KeyFile name and a password (which you don't have to put in). Not sure
why you need it.

But if you reference another class from a COM object, it forces you to put
a strong name in for that project as well.

Tom

OK, that makes sense. It doesn't really have anything to do with COM
specifically. Signing is a .Net feature.

To your original question though, you can change the password later, but you
would need to rebuild the assembly.
 
Family Tree Mike said:
tshad said:
When you set up the COM project you need to go to
Project/Properties/Signing to set up a Strong Name. When you select
"Sign the Assembly" and then <new> in the dropdown, you get a window with
a KeyFile name and a password (which you don't have to put in). Not sure
why you need it.

But if you reference another class from a COM object, it forces you to
put a strong name in for that project as well.

Tom


OK, that makes sense. It doesn't really have anything to do with COM
specifically. Signing is a .Net feature.

To your original question though, you can change the password later, but
you would need to rebuild the assembly.

But I am rebuilding all the time. What would cause it to ask me for a
password?

Thanks,

Tom
 
tshad said:
Family Tree Mike said:
OK, that makes sense. It doesn't really have anything to do with COM
specifically. Signing is a .Net feature.

To your original question though, you can change the password later, but
you would need to rebuild the assembly.

But I am rebuilding all the time. What would cause it to ask me for a
password?

Thanks,

Tom


Sorry, I have no idea, nor can I reproduce the behaviour.
 
Back
Top