R
Razzie
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:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmtps/html/writingmngsinks.asp). I
set my project properties as 'Register as COM interop' to true, I can
install it my project on my developement machine without a flaw. Great.
Now I wanted to install it on another machine with a .NET framework. I set
the 'Register as COM interop' to false, recompiled, and copied the files to
the other machine. I used the regsvcs.exe tool for it to register it, as
pointed out to me by Nicholas Paldino in another question of mine. Now I get
the error that my dll does not have a strong name.
So back to my developement machine. When I use the sn.exe tool to create a
strong key, I put this info in the project properties and the
assemblyinfo.cs file, and I recompile, I get another error: one (not both!)
of the interop dll files from exchange does not have a strong name. If I
look at the properties of these interop files, I can clearly see that one of
them has the 'Strong name' property set to 'true' and one to 'false'. Why
they both do not have a strong name is a mystery to me since I followed the
steps in the MSDN article as mentioned before, and you'd expect they'd
conveniently both have strong names, but alas.
So, in another post of Patty O'dors in this newsgroup I read a solution to
this... but doesn't work. If I set the key file in the VS.NET project
properties, this doesn't work. If I use the tlbimp.exe tool on the
oldInterop file (without the strong name) using:
tlbimp.exe oldInterop.dll /keyfile: someKeyFile.snk /out:newInterop.dll
I get the error: oldInterop.dll is not a valid type library
AAArrrgh I mean... why is that? I can add it as a reference, browse through
it and all, and now jet ANOTHER error. It really frustrates me. I only want
to deploy my fine working project on another machine, and I have to go
through all this
Anyway, can anyone please help me with this?
Thanks a million,
Razzie
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:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmtps/html/writingmngsinks.asp). I
set my project properties as 'Register as COM interop' to true, I can
install it my project on my developement machine without a flaw. Great.
Now I wanted to install it on another machine with a .NET framework. I set
the 'Register as COM interop' to false, recompiled, and copied the files to
the other machine. I used the regsvcs.exe tool for it to register it, as
pointed out to me by Nicholas Paldino in another question of mine. Now I get
the error that my dll does not have a strong name.
So back to my developement machine. When I use the sn.exe tool to create a
strong key, I put this info in the project properties and the
assemblyinfo.cs file, and I recompile, I get another error: one (not both!)
of the interop dll files from exchange does not have a strong name. If I
look at the properties of these interop files, I can clearly see that one of
them has the 'Strong name' property set to 'true' and one to 'false'. Why
they both do not have a strong name is a mystery to me since I followed the
steps in the MSDN article as mentioned before, and you'd expect they'd
conveniently both have strong names, but alas.
So, in another post of Patty O'dors in this newsgroup I read a solution to
this... but doesn't work. If I set the key file in the VS.NET project
properties, this doesn't work. If I use the tlbimp.exe tool on the
oldInterop file (without the strong name) using:
tlbimp.exe oldInterop.dll /keyfile: someKeyFile.snk /out:newInterop.dll
I get the error: oldInterop.dll is not a valid type library
AAArrrgh I mean... why is that? I can add it as a reference, browse through
it and all, and now jet ANOTHER error. It really frustrates me. I only want
to deploy my fine working project on another machine, and I have to go
through all this

Thanks a million,
Razzie