06-29-04 10:52 PM
Try changing
<Assembly:
AssemblyKeyFile(" D:\BTSCustomPreprocessor\MyBTSPreProcess
or\MyBTSPreProcesso
r.snk")>
to
<Assembly: AssemblyKeyFile("..\\..\\MyBTSPreProcessor.snk")>
Your strong name .snk file may not be "found" by the compiler. See below.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name)
utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
J. Lynch
"A BizTalk Enthusiast"
"R Childers BTS 2002 < Year" <R Childers BTS 2002 <
Year@discussions.microsoft.com> wrote in message
news:BEF7EB77-B00D-4032-9CEC-5301655D0466@microsoft.com...
> I'm trying to create a custom preprocessor with VB.Net. FW 1.1 BTS 2002
> Class Library project.
>
> I do the following but the component name doesn't show is File Recieve
function dropdown.
> 1.
> Set ref to BTSComponet:
> BTSComponentsLib.dll
>
> 2.
> Implement the inteface (with GUID Ref:
> <Guid("C8391A26-63A7-4484-B622-CF88615CBBD2")> _
> Public Class CustPreProcessorVB
> Inherits ServicedComponent
> Implements BTSComponentsLib.IBTSCustomProcess
> 3.
> Create a Strong Name file BEFORE compile:
> sn -k D:\BTSCustomPreprocessor\MyBTSPreProcess
or\MyBTSPreProcessor.snk
>
> 4.
> Add strong name ref in Assebmly.vb file:
> <Assembly:
AssemblyKeyFile(" D:\BTSCustomPreprocessor\MyBTSPreProcess
or\MyBTSPreProcesso
r.snk")>
>
> 5.
> Compile dll:
> No errors
>
> 6.
> Create A reg file for BTS Implement Category:
>
[HKEY_CLASSES_ROOT\CLSID\{C8391A26-63A7-4484-B622-CF88615CBBD2}\Imp
lemented
Categories\{20E8080F-F624-4401-A203-9D99CF18A6D9}]
>
> 7.
> Copy all componets in Bin Directory to tagrget BTS server that will run
the componts.
>
> 8.
> Register Dll with regserv using FW 1.1:
> C:\WINNT\Microsoft.NET\Framework\v1.1.4322\RegSvcs.exe
MyBTSPreProcessor.dll
> No Errors
> 9.
> Run reg file
> No Errors
>
> Open BTS Admin, select a File Recieve function: BAM no prog ID found for
component, My Componet is not in the list.
>
> WHAT is out of order here?
[ Post a follow-up to this message ]
|