To install a webpart on a SharePoint server so that it is accessible to the web sites included in this, it is necessary several steps:
- First, you must copy the (the) assembly (s) to a folder on the server and install (s) in the Global Assembly Cache (GAC), which is useful for order gacutil - I.
- After this, you must register the class in the web.config file of web site that will use the webpart (for the public key can visit the folder with the assemblies in the GAC, usually% windir% \\ Assembly). Thus, we can add it to the web.config file SafeControls section, and, well, then add it to the library web site webparts.
- Finally, you must restart the IIS server, and with it and we can add the webpart to the site by clicking on Site Settings / Galleries / Web items (to display will need to add by using New).
However, if the webpart automates these tasks, modify the web.config file to use, so it will be convenient to create the web site prior to installing the webpart. If not, we will have to perform the process manually from the second step (to register the class in the web.config file).
0 comments:
Post a Comment