Datapolis Process System SDK

Search:

Contents
:
IndexBookmarkPrint
Home > Custom Controls > Deployment

Deployment

 

 

The SharePoint solution needs to be deployed before you can move on to utilizing control.  Due to SharePoint security policy you may want to indicate that your control is safe for your web site. Otherwise there may be errors displaying it.

Add safe control entry


For security, SharePoint differentiates between Web controls that are protected against script injection and Web controls that are not. Protected controls, or safe controls, can be accessed by untrusted users. You can register control as safe by editing Package.Template.xml.

 

 

Add safe control entry for the control’s namespace.

 

<?xml version="1.0" encoding="utf-8"?>
          SolutionId="2ab3374a-7777-4b24-9646-c7616cb10139"
          SharePointProductVersion="15.0">
  <Assemblies>
    <Assembly Location="QuickLaunchForm.CustomFieldControl.dll"
              DeploymentTarget="GlobalAssemblyCache" >
      <SafeControls>
        <SafeControl Assembly="$SharePoint.Project.AssemblyFullName$"
          Namespace="QuickLaunchForm.CustomFieldControl.ControlTemplates.QuickLaunchForm.CustomFieldControl"
          TypeName="*" 
          Safe="True"/>
      </SafeControls>
    </Assembly>
  </Assemblies>
</Solution>

 

Deploy


Finally, to deploy your project right-click its name and select Deploy.