-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: venkat_kl
Message 4 in Discussion

Hi,   You need to create a strong name using the SN.EXE utility. However, you 
can not sign the COM assembly. The compiler error is being raised because the 
interop assembly itself is not signed. 
Instead of setting a reference to the COM component in your project through
VS.NET, you will have to run TLBIMP.EXE on the DLL that you want to use in
your program. When you run it, you can sign it using the /keyfile switch
(pointing to the output of SN.EXE). Once you have done that, set a
reference to that in your project in VS, and then compile. It should
compile fine   then try using GACUTIL.exe   other useful resources, just go 
through these;   http://dotnet.sys-con.com/read/46609.htm   
http://blogs.msdn.com/shawnfa/archive/2005/01/13/352636.aspx   
http://support.microsoft.com/kb/313666   you can read below mentioned portion 
in the follwing link; http://support.microsoft.com/kb/326909    Create a 
Runtime Callable Wrapper for DTSpkg.dll  type=text/javascript>loadTOCNode(2, 
'summary');</SCRIPT> If a Microsoft Windows .NET-based client computer accesses 
a COM component, you must use a wrapper around unmanaged code (which the COM 
component contains). This type of wrapper is a runtime callable wrapper (RCW) 
and you build them from the type library information that the Dtspkg.dll 
exposes. You can use the Type Library Importer tool (Tlbimp. exe) to build the 
RCW:  tlbimp.exe "C:\Program Files\Microsoft SQL 
Server\80\Tools\Binn\dtspkg.dll" /out:Microsoft.SQLServer.DTSPkg80.dll 
/keyfile:DTSPkg.snkThe /keyfile parameter signs 
Microsoft.SQLServer.DTSPkg80.dll with a strong name by using the public or 
private key pair in DTSPkg.snk. To create the key pair that is present in 
DTSPkg.snk, use the Strong Name Tool (Sn.exe):  sn.exe -k DTSPkg.snkBecause you 
must install the RCW in the global assembly cache (GAC), you must use a strong 
name like the other assemblies in the GAC. 

 
Back to the top Install the RCW in the Global Assembly Cache  
type=text/javascript>loadTOCNode(2, 'summary');</SCRIPT> Install the RCW in the 
GAC by using the Global Assembly Cache Tool (GACutil.exe):  gacutil.exe /i 
Microsoft.SQLServer.DTSPkg80.dllAfter you install the RCW, you can add it as a 
reference to a Visual Studio .NET C# Class Library project. 
     http://support.installshield.com/kb/view.asp?articleid=Q111094   Regards, 
Venkat.KL

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to