Register a Web component to global Cache

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.