Getting errors about: The current trust level does not allow use of the 'compilerOptions' attribute

book

Article ID: 171926

calendar_today

Updated On:

Products

Management Platform (Formerly known as Notification Server)

Issue/Introduction

The customer has noticed an error not just with SIM logs but in the Application Event and NS logs.
The error entry is:

The current trust level does not allow use of the 'compilerOptions' attribute.

They are not able to open the SMP Console. Errors like this appears in the NS logs:

Unable to schedule replication to the specified server (Server: MySMP.domain.com, Exception: System.InvalidOperationException: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
 

        <title>The current trust level does not allow use of the</title>
'compilerOptions' attribute</title>
        <meta name="viewport" content="width=device-width" />
      

and finally the Application event logs shows this:

The description for Event ID 1310 from source ASP.NET 4.0.30319.0 cannot be found. Either the component that raises this event is not installed on your
local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

3006
A parser error has occurred.
6/19/2018 3:41:08 PM
6/19/2018 8:41:08 PM
9874ab95e1814919b142798e560574b1
1
1
0
/LM/W3SVC/1/ROOT/Altiris/Console-91-131739144681733601
Medium
/Altiris/Console
E:\Program Files\Altiris\CustomConsole\Web\
VL0SMEMCNSITMS1
7120
w3wp.exe
IIS APPPOOL\SMP Server AppPool
HttpException
Inheritance security rules violated by type: 'Altiris.CustomConsole.Web.Global'. Derived types must either match the security accessibility of the base type or be less accessible.
   at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   at System.Web.Compilation.BuildManager.CallAppInitializeMethod()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

Inheritance security rules violated by type: 'Altiris.CustomConsole.Web.Global'. Derived types must either match the security accessibility of the base type or be less accessible.

The current trust level does not allow use of the 'compilerOptions' attribute

Inheritance security rules violated by type: 'Altiris.CustomConsole.Web.Global'. Derived types must either match the security accessibility of the base type or be less accessible.

Cause

Seems that .NET trust levels were reset in IIS.

Environment

ITMS 7.6, 8.0, 8.1

Resolution

Please check that .NET Trust Levels are set to "FULL" for all Altiris websites/applications under Default Web Site>.NET Trust Levels.


 

Attachments