The need to install Aspose.BarCode for Reporting Services manually can occur in the following conditions:
- Automatic installation fails due to some reason, such as I/O security issues.
- You need to install the product on a named (not default) instance of Reporting Services or on multiple instances.
- You want to upgrade to the latest version, by just replacing the assembly instead of uninstalling the old version and then installing the new one using MSI installer. Note, however, in this case you may end up with some files not upgraded, such as the offline documentation.
To install Aspose.BarCode for Reporting Services manually, some registration and installation steps will need to be performed manually. For manual installation, developers will need to copy and modify files in the installation directory of Microsoft SQL Server Reporting Services. The SSRS 2000 assembly is located in the Bin\SSRS2000 directory of the zip package, the SSRS 2005 assembly is located in the Bin\SSRS2005 directory and the SSRS 2008 assembly is located in the Bin\SSRS2008 directory.
Perform following steps for manual installation:
Step 1. Locate the Report Server installation directory. The root directory for Microsoft SQL Server is usually C:\Program Files\Microsoft SQL Server. Further process is slightly different for Reporting Services 2000 and 2005/2008. SQL Report Server 2000 is installed in the C:\Program Files\Microsoft SQL Server\MSSQL\ Reporting Services\ReportServer directory.
There could be several instances of Microsoft SQL Server 2005/2008 configured on the machine and they will occupy several MSSQL.x subdirectories such as MSSQL.1, MSSQL.2 and so on. You will need to find the correct directory i.e. C:\Program Files\Microsoft SQL Server\MSSQL.x\Reporting Services\ReportServer, before you proceed with the following steps.
As you can see, the only difference between the Reporting Services 2000 and 2005/2008 installation directories is that the path includes “MSSQL” for the 2000 version and “MSSQL.x” for the 2005/2008 version. All paths used below will refer to this directory as <Instance>.
Step 2. Copy Aspose.BarCode.ReportingServices.dll to C:\Program Files\Microsoft SQL Server\<Instance>\Reporting Services\ReportServer\bin folder.
Step 3. Now, register this product as render item in rsreportserver.config.
To do this, open C:\Program Files\Microsoft SQL Server\MSSQL.x\Reporting Services\ReportServer\rsreportserver.config and add the following lines into the <ReportItems> element:
<Configuration>
...
<Extensions>
...
<!-- Start config of Aspose.BarCode for Reporting Services-->
<ReportItems>
<ReportItem Name="BarCode" Type="Aspose.BarCode.ReportingServices.BarCodeReportItem, Aspose.BarCode.ReportingServices"/>
</ReportItems>
<!-- End of config -->
</Extensions>
</Configuration>
Setp 4. Now, give permissions to execute.
To do this, open C:\Program Files\Microsoft SQLServer\MSSQL.x\Reporting Services\ReportServer\rssrvpolicy.config and add the following text as the last item in the second to outer <CodeGroup> element (which should be <CodeGroup class="FirstMatchCodeGroup" version="1" PermissionSetName="Execution" Description="This code group grants MyComputer code Execution permission."> ):
<CodeGroup>
…
<CodeGroup>
…
<!-- Start config of Aspose.BarCode for Reporting Services-->
<CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Name="BarCode" Description="Aspose.BarCode for Reporting Services ">
<IMembershipCondition class="StrongNameMembershipCondition" version="1" PublicKeyBlob="00240000048000009400000006020000002400005253413100040000010001005542E99CECD28842DAD186257B2C7B6AE9B5947E51E0B17B4AC6D8CECD3E01C4D20658C5E4EA1B9A6C8F854B2D796C4FDE740DAC65E834167758CFF283EED1BE5C9A812022B015A902E0B97D4E95569EB8C0971834744E633D9CB4C4A6D8EDA03C12F486E13A1A0CB1AA101AD94943236384CBBF5C679944B994DE9546E493BF" />
</CodeGroup>
<!-- End of config-->
</CodeGroup>
</CodeGroup>