Difference between revisions of "Building cli ure remotely"

From Apache OpenOffice Wiki
Jump to: navigation, search
(NFS mounted disk)
 
Line 35: Line 35:
  
 
Log on as normal user and repeat these step but this time select 'Current User'
 
Log on as normal user and repeat these step but this time select 'Current User'
 +
[[Category:Build_System]]

Latest revision as of 04:12, 29 December 2008

Building cli_ure remotely

When building cli_ure on a remote machine, that is, the project is accessed through a mapped hard drive (Windows), then one may encounter a messages such as this:

..\wntmsci10.pro\bin\climaker.exe \
--out ..\wntmsci10.pro\bin\cli_types.dll \
--keyfile ..\wntmsci10.pro\bin\cliuno.snk \
--assembly-version 1.1.7.0 \
--assembly-description "This assembly contains metadata for the StarOffice/OpenOffice.org API." \
--assembly-company "OpenOffice.org" \
x:\SRC680\wntmsci10.pro\bin.m198\types_doc.rdb

Unhandled Exception: System.Security.Policy.PolicyException: Unverifiable assembly 'X:\SRC680\src.m198\cli_ure\wntmsci10.pro\bin\climaker.exe' failed policy check. 

The reason is that build tools, such as the climaker.exe, which is a .NET application, reside on a different machine but require access to the local .NET Framework. Therefore the security settings must be adapted to allow the program access to the local machine.

To make security settings one uses .NET Framework x.y Configuration (x.y stands for 1.1, 2.0) etc. The configuration panel can be found in the Administrative Tools. Please note, that the configuration was part of the .NET Framework 1.1 but it is not part of the .NET Framework 2.0. Instead it is contained in the .NET SDK 2.0.

NFS mounted disk

Log on as administrator. Open Control Panel -> Administrative Tools -> Microsoft .NET Framework x.y Configuration. In the tree view on the left side select " Runtime Security Policies ". Then select "Adjust Zone Security" on the right side. In the dialog that appears select "Make changes to this computer" and press the "Next" button. In the following dialog select the zone "Trusted Sites" and choose the level of trust to "Full Trust" and press the "Next" button. In the following dialog press "Finish".

Log on as normal user and make the same settings for the current user in the .NET Framework x.y Configuration.

Add the machine where the executable is located to the trusted sites: From the Start menu open Control Panel -> Internet options -> Security -> Trusted Sites -> Sites Uncheck "Require server verification ... " Add the machine where the executable is located, for example \\machine_ooo_build, etc.

Samba mounted disk

Log on as administrator and open the .NET Framwork x.y Configuration. In the tree view on the left side select " Runtime Security Policies ". Then select "Adjust Zone Security" on the right side. In the dialog that appears select "Make changes to this computer" and press the "Next" button. In the following dialog select the zone "Local Intranet" and choose the level of trust to "Full Trust" and press the "Next" button. In the following dialog press "Finish".

Log on as normal user and repeat these step but this time select 'Current User'

Personal tools