Register oneWebGlobal cache for components
Procedure1: Generate a key for the component. OpenVs.netCommand Prompt window, enter the following command:
Format::Sn.exe-KName of the key file you obtained1.
Figure1
Figure2
Figure3
Procedure2: Components you have created Assemblyinfo. CSFileAssemblykeyfileItemEnter your key file information,For example: [Assembly: assemblykeyfile ("C: \ controlfrj. SNK")]
Figure4
Figure5
Figure6
Figure7
Procedure3: Use commands orProgramSet copy: Drive letter of the Operating System: \ Windows \ assembly (In this exampleWINXPThe operating system is used as an example.)Command Method8:
Format:Gacutil.exe -I YourDLLFile path information
Figure8
Procedure4: InAssemblySelect the registered component from the folder, right-click the component, and click Properties in the pop-up menu. Copy the component Version Information and Public Key tag,9.
Figure9
Procedure5: Open Drive letter of your operating system:\ Windows \ Microsoft. NET \ framework \Your current OS Version Number\ Config(In this example:D: \ windows \ Microsoft. NET \ framework \ v1.1.4322 \ config) FolderMachine. configUse Notepad for editing.
Figure10
Procedure6: FindAssembliesTo add the following sub-item:
<Addassembly = "pseudo MP3, version = 1.0.2251.19290, culture = neutral, publickeytoken = 65C 739912abd9888 "/>12.
WhereAddassembly: Your Assembly name(Non-namespace name);Version: Assembly version number; Culture = neutral; publickeytoken: Public Key tag.
Figure11
Figure12
Procedure7: InWebAfter registering your components in the form, you can start to use them freely.14.
For example:<% @ Register tagprefix = "pseudo engine" namespace = "pseudo engine" assembly = "pseudo MP3" %>
Use:
<Pseudo engine: pseudo MP3 id = "pseudo domp32" runat = "server"> </pseudo engine: pseudo MP3> </TD>
Figure13