J
JT
Hi,
I am having trouble finding information about GUIDs and strong-names
and don't really know what I need. If that's too ambiguous, please
tell me where to look for info on these.
Here's what I am trying to accomplish: I need to know what assembly is
calling methods in a web service. I also use ILMerge.exe to merge my
assemblies into a single executable. One of the dlls in the executable
calls the web service. I need to enforce that only this dll makes
calls to the web service. After ILMerge, I can't use reflection to
obtain the name of the dll that calls the web service and besides
that's not quite a unique ID. The dll that calls the web service will
be distributed for use in other applications, but I need to know that
the dll I'm distributing is making the calls to the web service and not
any other assemblies.
I believe a GUID would be sufficient to identify the calling dll, but I
can't find any information that tells me how to get the GUID of this
calling assembly. After reading some help files and some posted
discussions, I now think that a strong-name will not necessarily change
when the assemblies are recompiled, but I don't know enough to know how
difficult it is to create a snk file. I also don't know if merging my
assemblies will keep me from being able to obtain either a GUID or
strong-name key of the assembly.
I'm sure there are high-level discussions out there. Can anyone point
me to an example of programmatically retrieving an assembly's GUID
and/or creating snks and programmatically retrieving the public key of
an assembly? Is there a better way for me to identify a calling
assembly after it's been merged?
Thanks,
JT
I am having trouble finding information about GUIDs and strong-names
and don't really know what I need. If that's too ambiguous, please
tell me where to look for info on these.
Here's what I am trying to accomplish: I need to know what assembly is
calling methods in a web service. I also use ILMerge.exe to merge my
assemblies into a single executable. One of the dlls in the executable
calls the web service. I need to enforce that only this dll makes
calls to the web service. After ILMerge, I can't use reflection to
obtain the name of the dll that calls the web service and besides
that's not quite a unique ID. The dll that calls the web service will
be distributed for use in other applications, but I need to know that
the dll I'm distributing is making the calls to the web service and not
any other assemblies.
I believe a GUID would be sufficient to identify the calling dll, but I
can't find any information that tells me how to get the GUID of this
calling assembly. After reading some help files and some posted
discussions, I now think that a strong-name will not necessarily change
when the assemblies are recompiled, but I don't know enough to know how
difficult it is to create a snk file. I also don't know if merging my
assemblies will keep me from being able to obtain either a GUID or
strong-name key of the assembly.
I'm sure there are high-level discussions out there. Can anyone point
me to an example of programmatically retrieving an assembly's GUID
and/or creating snks and programmatically retrieving the public key of
an assembly? Is there a better way for me to identify a calling
assembly after it's been merged?
Thanks,
JT