RegionOrebroLan-Lab / Reporting-Services-With-ADFS-Authentication

6 stars 2 forks source link

Failed to create HTTP Runtime #2

Closed imanshu15 closed 5 years ago

imanshu15 commented 6 years ago

I am using SSRS 2017, And i followed every step of your other than 'get the public-key from a strong-name-key-file' step. Since i cant find any .snk file. And now i get this error, please help me if you can.

library!DefaultDomain!2758!06/28/2018-16:59:18:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: Failed to create HTTP Runtime, Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_SSRS_0. ---> System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'ReportingServicesWebServer, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) (C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\web.config line 25) ---> System.IO.FileLoadException: Could not load file or assembly 'ReportingServicesWebServer, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---> System.ArgumentException: Invalid XML. Missing required tag <IMembershipCondition> for type 'System.Security.Policy.FirstMatchCodeGroup'.
   at System.Security.Policy.PolicyLevel.GenericResolve(Evidence evidence, Boolean& allConst)
   at System.Security.Policy.PolicyLevel.Resolve(Evidence evidence, Int32 count, Byte[] serializedEvidence)
   at System.Security.PolicyManager.CodeGroupResolve(Evidence evidence, Boolean systemPolicy)
   at System.Security.CodeAccessSecurityEngine.TryResolveGrantSet(Evidence evidence, PermissionSet& grantSet)
   at System.Security.PolicyManager.Resolve(Evidence evidence)
   at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission)
   at System.Security.SecurityManager.ResolveCasPolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission)
   --- End of inner exception stack trace ---
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

AND

library!DefaultDomain!2758!06/28/2018-16:59:18:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerAppDomainManagerException: Failed to create Report Server HTTP Runtime, Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerAppDomainManagerException: An error occurred when attempting to start the application domain ReportServer within the Report Server service. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_SSRS_0. ---> System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'ReportingServicesWebServer, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) (C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\web.config line 25) ---> System.IO.FileLoadException: Could not load file or assembly 'ReportingServicesWebServer, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) ---> System.ArgumentException: Invalid XML. Missing required tag <IMembershipCondition> for type 'System.Security.Policy.FirstMatchCodeGroup'.
   at System.Security.Policy.PolicyLevel.GenericResolve(Evidence evidence, Boolean& allConst)
   at System.Security.Policy.PolicyLevel.Resolve(Evidence evidence, Int32 count, Byte[] serializedEvidence)
   at System.Security.PolicyManager.CodeGroupResolve(Evidence evidence, Boolean systemPolicy)
   at System.Security.CodeAccessSecurityEngine.TryResolveGrantSet(Evidence evidence, PermissionSet& grantSet)
   at System.Security.PolicyManager.Resolve(Evidence evidence)
   at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission)
   at System.Security.SecurityManager.ResolveCasPolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission)
   --- End of inner exception stack trace ---
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stack
HansKindberg commented 6 years ago

@imanshu15 Invalid XML. Missing required tag <IMembershipCondition> for type 'System.Security.Policy.FirstMatchCodeGroup'.

I guess you have pasted the xml at the wrong place in RSSrvPolicy.config. Could you post the content of your RSSrvPolicy.config?

Example:

<configuration>
    <mscorlib>
        <security>
            <policy>
                <PolicyLevel version="1">
                    ...
                    <CodeGroup
                        class="FirstMatchCodeGroup"
                        version="1"
                        PermissionSetName="Nothing"
                    >
                        ...
                        <CodeGroup
                            class="FirstMatchCodeGroup"
                            version="1"
                            PermissionSetName="Execution"
                            Description="This code group grants MyComputer code Execution permission. "
                        >
                            <IMembershipCondition
                                class="ZoneMembershipCondition"
                                version="1"
                                Zone="MyComputer"
                            >
                            </IMembershipCondition>
                            <CodeGroup
                                Name="Log4Net-StrongName"
                                class="UnionCodeGroup"
                                Description="This code group grants Log4Net code full trust."
                                PermissionSetName="FullTrust"
                                version="1"
                            >
                                <IMembershipCondition
                                    class="StrongNameMembershipCondition"
                                    PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100297dcac908e28689360399027b0ea4cd852fbb74e1ed95e695a5ba55cbd1d075ec20cdb5fa6fc593d3d571527b20558d6f39e1f4d5cfe0798428c589c311965244b209c38a02aaa8c9da3b72405b6fedeeb4292c3457e9769b74e645c19cb06c2be75fb2d12281a585fbeabf7bd195d6961ba113286fc3e286d7bbd69024ceda"
                                    version="1"
                                >
                                </IMembershipCondition>
                            </CodeGroup>
                            <CodeGroup
                                Name="RegionOrebroLan-StrongName"
                                class="UnionCodeGroup"
                                Description="This code group grants RegionOrebroLan code full trust."
                                PermissionSetName="FullTrust"
                                version="1"
                            >
                                <IMembershipCondition
                                    class="StrongNameMembershipCondition"
                                    PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100d5b5f1623c455dd2ce7a24fcb9ad5db0f32a8793bf2925b82d4b4d43ea1058f5cfd6b8136b8cb850715e921a0256ea4188cfc3b257021125f2cf36b3a584eb6caa674831da70eba16f154ae4ca0dc4cd29dc02d8422e5a72416aeb6bcda9b2e9c06f19df1edb5f5403677345c8f06f2612d571628ef43d2bf6d877c91c94e4d3"
                                    version="1"
                                >
                                </IMembershipCondition>
                            </CodeGroup>
                            <CodeGroup
                                Name="StructureMap-StrongName"
                                class="UnionCodeGroup"
                                Description="This code group grants StructureMap code full trust."
                                PermissionSetName="FullTrust"
                                version="1"
                            >
                                <IMembershipCondition
                                    class="StrongNameMembershipCondition"
                                    PublicKeyBlob="00240000048000009400000006020000002400005253413100040000010001008d9a2a76e43cd9b1b1944b1f3b489a046b33f0bcd755b25cc5d3ed7b18ded38240d6db7578cd986c72d3feb4f94a7ab26fcfa41e3e4f41cf2c029fba91159db05c44d63f0b2bfac24353a07f4a1230dd3d4240340adafa2275277fa083c75958062cd0e60016701db6af7ae718efdf1e802a840595b49c290964255b3c60c494"
                                    version="1"
                                >
                                </IMembershipCondition>
                            </CodeGroup>
                            ...
                        </CodeGroup>
                    </CodeGroup>
                </PolicyLevel>
            </policy>
        </security>
    </mscorlib>
</configuration>

I will go on holiday now. So maybe I can not answer for a while.

imanshu15 commented 6 years ago

You can see RSSrvPolicy.config down below. if you could point me out where i did wrong it would be great.

<configuration>
  <mscorlib>
    <security>
      <policy>
        <PolicyLevel version="1">
          <SecurityClasses>
            <SecurityClass Name="AllMembershipCondition" Description="System.Security.Policy.AllMembershipCondition, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="AspNetHostingPermission" Description="System.Web.AspNetHostingPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="DnsPermission" Description="System.Net.DnsPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="EnvironmentPermission" Description="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="FileIOPermission" Description="System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="FirstMatchCodeGroup" Description="System.Security.Policy.FirstMatchCodeGroup, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="IsolatedStorageFilePermission" Description="System.Security.Permissions.IsolatedStorageFilePermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="NamedPermissionSet" Description="System.Security.NamedPermissionSet"/>
            <SecurityClass Name="PrintingPermission" Description="System.Drawing.Printing.PrintingPermission, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
            <SecurityClass Name="ReflectionPermission" Description="System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="RegistryPermission" Description="System.Security.Permissions.RegistryPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="SecurityPermission" Description="System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="SocketPermission" Description="System.Net.SocketPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="SqlClientPermission" Description="System.Data.SqlClient.SqlClientPermission, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="StrongNameMembershipCondition" Description="System.Security.Policy.StrongNameMembershipCondition, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="UnionCodeGroup" Description="System.Security.Policy.UnionCodeGroup, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="UrlMembershipCondition" Description="System.Security.Policy.UrlMembershipCondition, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="WebPermission" Description="System.Net.WebPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            <SecurityClass Name="ZoneMembershipCondition" Description="System.Security.Policy.ZoneMembershipCondition, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
          </SecurityClasses>
          <NamedPermissionSets>
            <PermissionSet
                    class="NamedPermissionSet"
                    version="1"
                    Unrestricted="true"
                    Name="FullTrust"
                    Description="Allows full access to all resources"
                        />
            <PermissionSet
                    class="NamedPermissionSet"
                    version="1"
                    Name="Nothing"
                    Description="Denies all resources, including the right to execute"
                        />
            <PermissionSet
                    class="NamedPermissionSet"
                    version="1"
                    Name="Execution">
              <IPermission
                      class="SecurityPermission"
                      version="1"
                      Flags="Execution"
                            />
            </PermissionSet>
          </NamedPermissionSets>
          <CodeGroup
                  class="FirstMatchCodeGroup"
                  version="1"
                  PermissionSetName="Nothing">
            <IMembershipCondition
                    class="AllMembershipCondition"
                    version="1"
                        />

            <CodeGroup class="FirstMatchCodeGroup" Description="This code group grants MyComputer code Execution permission. " PermissionSetName="Execution" version="1">
              <CodeGroup
                Name="Log4Net-StrongName"
                class="UnionCodeGroup"
                Description="This code group grants Log4Net code full trust."
                PermissionSetName="FullTrust"
                version="1"
                            >
                <IMembershipCondition class="StrongNameMembershipCondition" PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100297dcac908e28689360399027b0ea4cd852fbb74e1ed95e695a5ba55cbd1d075ec20cdb5fa6fc593d3d571527b20558d6f39e1f4d5cfe0798428c589c311965244b209c38a02aaa8c9da3b72405b6fedeeb4292c3457e9769b74e645c19cb06c2be75fb2d12281a585fbeabf7bd195d6961ba113286fc3e286d7bbd69024ceda" version="1" />
              </CodeGroup>
              <CodeGroup
                Name="RegionOrebroLan-StrongName"
                class="UnionCodeGroup"
                Description="This code group grants RegionOrebroLan code full trust."
                PermissionSetName="FullTrust"
                version="1"
                            >
                <IMembershipCondition class="StrongNameMembershipCondition" PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100d5b5f1623c455dd2ce7a24fcb9ad5db0f32a8793bf2925b82d4b4d43ea1058f5cfd6b8136b8cb850715e921a0256ea4188cfc3b257021125f2cf36b3a584eb6caa674831da70eba16f154ae4ca0dc4cd29dc02d8422e5a72416aeb6bcda9b2e9c06f19df1edb5f5403677345c8f06f2612d571628ef43d2bf6d877c91c94e4d3" version="1" />
              </CodeGroup>
              <CodeGroup
                Name="StructureMap-StrongName"
                class="UnionCodeGroup"
                Description="This code group grants StructureMap code full trust."
                PermissionSetName="FullTrust"
                version="1"
                            >
                <IMembershipCondition class="StrongNameMembershipCondition" PublicKeyBlob="00240000048000009400000006020000002400005253413100040000010001008d9a2a76e43cd9b1b1944b1f3b489a046b33f0bcd755b25cc5d3ed7b18ded38240d6db7578cd986c72d3feb4f94a7ab26fcfa41e3e4f41cf2c029fba91159db05c44d63f0b2bfac24353a07f4a1230dd3d4240340adafa2275277fa083c75958062cd0e60016701db6af7ae718efdf1e802a840595b49c290964255b3c60c494" version="1" />
              </CodeGroup>
            </CodeGroup>

            <CodeGroup
                    class="UnionCodeGroup"
                    version="1"
                    PermissionSetName="Execution"
                    Name="Report_Expressions_Default_Permissions"
                    Description="This code group grants default permissions for code in report expressions and Code element. ">
              <IMembershipCondition
                      class="StrongNameMembershipCondition"
                      version="1"
                      PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100512C8E872E28569E733BCB123794DAB55111A0570B3B3D4DE3794153DEA5EFB7C3FEA9F2D8236CFF320C4FD0EAD5F677880BF6C181F296C751C5F6E65B04D3834C02F792FEE0FE452915D44AFE74A0C27E0D8E4B8D04EC52A8E281E01FF47E7D694E6C7275A09AFCBFD8CC82705A06B20FD6EF61EBBA6873E29C8C0F2CAEDDA2"
                            />
            </CodeGroup>
            <CodeGroup
                    class="FirstMatchCodeGroup"
                    version="1"
                    PermissionSetName="Execution"
                    Description="This code group grants MyComputer code Execution permission. ">
              <IMembershipCondition
                        class="ZoneMembershipCondition"
                        version="1"
                        Zone="MyComputer" />
              <CodeGroup
                      class="UnionCodeGroup"
                      version="1"
                      PermissionSetName="FullTrust"
                      Name="Microsoft_Strong_Name"
                      Description="This code group grants code signed with the Microsoft strong name full trust. ">
                <IMembershipCondition
                        class="StrongNameMembershipCondition"
                        version="1"
                        PublicKeyBlob="002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293"
                                />
              </CodeGroup>
              <CodeGroup
                      class="UnionCodeGroup"
                      version="1"
                      PermissionSetName="FullTrust"
                      Name="Ecma_Strong_Name"
                      Description="This code group grants code signed with the ECMA strong name full trust. ">
                <IMembershipCondition
                        class="StrongNameMembershipCondition"
                        version="1"
                        PublicKeyBlob="00000000000000000400000000000000"
                                />
              </CodeGroup>
              <CodeGroup
                      class="UnionCodeGroup"
                      version="1"
                      PermissionSetName="FullTrust"
                      Name="Report_Server_Strong_Name"
                      Description="This code group grants Report Server code full trust. ">
                <IMembershipCondition
                        class="StrongNameMembershipCondition"
                        version="1"
                        PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100272736AD6E5F9586BAC2D531EABC3ACC666C2F8EC879FA94F8F7B0327D2FF2ED523448F83C3D5C5DD2DFC7BC99C5286B2C125117BF5CBE242B9D41750732B2BDFFE649C6EFB8E5526D526FDD130095ECDB7BF210809C6CDAD8824FAA9AC0310AC3CBA2AA0523567B2DFA7FE250B30FACBD62D4EC99B94AC47C7D3B28F1F6E4C8"
                                />
              </CodeGroup>
              <CodeGroup
                      class="UnionCodeGroup"
                      version="1"
                      PermissionSetName="FullTrust">
                <IMembershipCondition
                        class="UrlMembershipCondition"
                        version="1"
                        Url="$CodeGen$/*"
                                />
              </CodeGroup>
              <CodeGroup
                      class="UnionCodeGroup"
                      version="1"
                      PermissionSetName="FullTrust"
                      Name="SharePoint_Server_Strong_Name"
                      Description="This code group grants SharePoint Server code full trust. ">
                <IMembershipCondition
                        class="StrongNameMembershipCondition"
                        version="1"
                        PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100AFD4A0E7724151D5DD52CB23A30DED7C0091CC01CFE94B2BCD85B3F4EEE3C4D8F6417BFF763763A996D6B2DFC1E7C29BCFB8299779DF8785CDE2C168CEEE480E570725F2468E782A9C2401302CF6DC17E119118ED2011937BAE9698357AD21E8B6DFB40475D16E87EB03C744A5D32899A0DBC596A6B2CFA1E509BE5FBD09FACF"
                                />
              </CodeGroup>
              <CodeGroup
                      class="UnionCodeGroup"
                      version="1"
                      PermissionSetName="FullTrust"
                      Name="Analisys_Server_Strong_Name"
                      Description="This code group grants DataFeedClient.dll full trust. ">
                <IMembershipCondition
                        class="StrongNameMembershipCondition"
                        version="1"
                        PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100272736AD6E5F9586BAC2D531EABC3ACC666C2F8EC879FA94F8F7B0327D2FF2ED523448F83C3D5C5DD2DFC7BC99C5286B2C125117BF5CBE242B9D41750732B2BDFFE649C6EFB8E5526D526FDD130095ECDB7BF210809C6CDAD8824FAA9AC0310AC3CBA2AA0523567B2DFA7FE250B30FACBD62D4EC99B94AC47C7D3B28F1F6E4C8"
                                />
              </CodeGroup>
              <CodeGroup
                     class="UnionCodeGroup" 
                     version="1" 
                     PermissionSetName="FullTrust" 
                     Name="OXML_SDK_Strong_Name" 
                     Description="Grants FullTrust to OpenXmlSdk">
                <IMembershipCondition 
                        class="StrongNameMembershipCondition" 
                        version="1" 
                        PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9" 
                                />
              </CodeGroup>
            </CodeGroup>
          </CodeGroup>
        </PolicyLevel>
      </policy>
    </security>
  </mscorlib>
</configuration>
HansKindberg commented 6 years ago

@imanshu15 Try this:

<configuration>
    <mscorlib>
        <security>
            <policy>
                <PolicyLevel version="1">
                    <SecurityClasses>
                        <SecurityClass Name="AllMembershipCondition" Description="System.Security.Policy.AllMembershipCondition, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="AspNetHostingPermission" Description="System.Web.AspNetHostingPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="DnsPermission" Description="System.Net.DnsPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="EnvironmentPermission" Description="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="FileIOPermission" Description="System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="FirstMatchCodeGroup" Description="System.Security.Policy.FirstMatchCodeGroup, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="IsolatedStorageFilePermission" Description="System.Security.Permissions.IsolatedStorageFilePermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="NamedPermissionSet" Description="System.Security.NamedPermissionSet"></SecurityClass>
                        <SecurityClass Name="PrintingPermission" Description="System.Drawing.Printing.PrintingPermission, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"></SecurityClass>
                        <SecurityClass Name="ReflectionPermission" Description="System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="RegistryPermission" Description="System.Security.Permissions.RegistryPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="SecurityPermission" Description="System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="SocketPermission" Description="System.Net.SocketPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="SqlClientPermission" Description="System.Data.SqlClient.SqlClientPermission, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="StrongNameMembershipCondition" Description="System.Security.Policy.StrongNameMembershipCondition, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="UnionCodeGroup" Description="System.Security.Policy.UnionCodeGroup, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="UrlMembershipCondition" Description="System.Security.Policy.UrlMembershipCondition, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="WebPermission" Description="System.Net.WebPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                        <SecurityClass Name="ZoneMembershipCondition" Description="System.Security.Policy.ZoneMembershipCondition, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></SecurityClass>
                    </SecurityClasses>
                    <NamedPermissionSets>
                        <PermissionSet
                            class="NamedPermissionSet"
                            version="1"
                            Unrestricted="true"
                            Name="FullTrust"
                            Description="Allows full access to all resources"
                        >
                        </PermissionSet>
                        <PermissionSet
                            class="NamedPermissionSet"
                            version="1"
                            Name="Nothing"
                            Description="Denies all resources, including the right to execute"
                        >
                        </PermissionSet>
                        <PermissionSet
                            class="NamedPermissionSet"
                            version="1"
                            Name="Execution"
                        >
                            <IPermission
                                class="SecurityPermission"
                                version="1"
                                Flags="Execution"
                            >
                            </IPermission>
                        </PermissionSet>
                    </NamedPermissionSets>
                    <CodeGroup
                        class="FirstMatchCodeGroup"
                        version="1"
                        PermissionSetName="Nothing"
                    >
                        <IMembershipCondition class="AllMembershipCondition" version="1"></IMembershipCondition>
                        <CodeGroup
                            class="UnionCodeGroup"
                            version="1"
                            PermissionSetName="Execution"
                            Name="Report_Expressions_Default_Permissions"
                            Description="This code group grants default permissions for code in report expressions and Code element. "
                        >
                            <IMembershipCondition
                                class="StrongNameMembershipCondition"
                                version="1"
                                PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100512C8E872E28569E733BCB123794DAB55111A0570B3B3D4DE3794153DEA5EFB7C3FEA9F2D8236CFF320C4FD0EAD5F677880BF6C181F296C751C5F6E65B04D3834C02F792FEE0FE452915D44AFE74A0C27E0D8E4B8D04EC52A8E281E01FF47E7D694E6C7275A09AFCBFD8CC82705A06B20FD6EF61EBBA6873E29C8C0F2CAEDDA2"
                            >
                            </IMembershipCondition>
                        </CodeGroup>
                        <CodeGroup
                            class="FirstMatchCodeGroup"
                            version="1"
                            PermissionSetName="Execution"
                            Description="This code group grants MyComputer code Execution permission. "
                        >
                            <IMembershipCondition
                                class="ZoneMembershipCondition"
                                version="1"
                                Zone="MyComputer"
                            >
                            </IMembershipCondition>
                            <CodeGroup
                                Name="Log4Net-StrongName"
                                class="UnionCodeGroup"
                                Description="This code group grants Log4Net code full trust."
                                PermissionSetName="FullTrust"
                                version="1"
                            >
                                <IMembershipCondition
                                    class="StrongNameMembershipCondition"
                                    PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100297dcac908e28689360399027b0ea4cd852fbb74e1ed95e695a5ba55cbd1d075ec20cdb5fa6fc593d3d571527b20558d6f39e1f4d5cfe0798428c589c311965244b209c38a02aaa8c9da3b72405b6fedeeb4292c3457e9769b74e645c19cb06c2be75fb2d12281a585fbeabf7bd195d6961ba113286fc3e286d7bbd69024ceda"
                                    version="1"
                                >
                                </IMembershipCondition>
                            </CodeGroup>
                            <CodeGroup
                                Name="RegionOrebroLan-StrongName"
                                class="UnionCodeGroup"
                                Description="This code group grants RegionOrebroLan code full trust."
                                PermissionSetName="FullTrust"
                                version="1"
                            >
                                <IMembershipCondition
                                    class="StrongNameMembershipCondition"
                                    PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100d5b5f1623c455dd2ce7a24fcb9ad5db0f32a8793bf2925b82d4b4d43ea1058f5cfd6b8136b8cb850715e921a0256ea4188cfc3b257021125f2cf36b3a584eb6caa674831da70eba16f154ae4ca0dc4cd29dc02d8422e5a72416aeb6bcda9b2e9c06f19df1edb5f5403677345c8f06f2612d571628ef43d2bf6d877c91c94e4d3"
                                    version="1"
                                >
                                </IMembershipCondition>
                            </CodeGroup>
                            <CodeGroup
                                Name="StructureMap-StrongName"
                                class="UnionCodeGroup"
                                Description="This code group grants StructureMap code full trust."
                                PermissionSetName="FullTrust"
                                version="1"
                            >
                                <IMembershipCondition
                                    class="StrongNameMembershipCondition"
                                    PublicKeyBlob="00240000048000009400000006020000002400005253413100040000010001008d9a2a76e43cd9b1b1944b1f3b489a046b33f0bcd755b25cc5d3ed7b18ded38240d6db7578cd986c72d3feb4f94a7ab26fcfa41e3e4f41cf2c029fba91159db05c44d63f0b2bfac24353a07f4a1230dd3d4240340adafa2275277fa083c75958062cd0e60016701db6af7ae718efdf1e802a840595b49c290964255b3c60c494"
                                    version="1"
                                >
                                </IMembershipCondition>
                            </CodeGroup>
                            <CodeGroup
                                class="UnionCodeGroup"
                                version="1"
                                PermissionSetName="FullTrust"
                                Name="Microsoft_Strong_Name"
                                Description="This code group grants code signed with the Microsoft strong name full trust. "
                            >
                                <IMembershipCondition
                                    class="StrongNameMembershipCondition"
                                    version="1"
                                    PublicKeyBlob="002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293"
                                >
                                </IMembershipCondition>
                            </CodeGroup>
                            <CodeGroup
                                class="UnionCodeGroup"
                                version="1"
                                PermissionSetName="FullTrust"
                                Name="Ecma_Strong_Name"
                                Description="This code group grants code signed with the ECMA strong name full trust. "
                            >
                                <IMembershipCondition
                                    class="StrongNameMembershipCondition"
                                    version="1"
                                    PublicKeyBlob="00000000000000000400000000000000"
                                >
                                </IMembershipCondition>
                            </CodeGroup>
                            <CodeGroup
                                class="UnionCodeGroup"
                                version="1"
                                PermissionSetName="FullTrust"
                                Name="Report_Server_Strong_Name"
                                Description="This code group grants Report Server code full trust. "
                            >
                                <IMembershipCondition
                                    class="StrongNameMembershipCondition"
                                    version="1"
                                    PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100272736AD6E5F9586BAC2D531EABC3ACC666C2F8EC879FA94F8F7B0327D2FF2ED523448F83C3D5C5DD2DFC7BC99C5286B2C125117BF5CBE242B9D41750732B2BDFFE649C6EFB8E5526D526FDD130095ECDB7BF210809C6CDAD8824FAA9AC0310AC3CBA2AA0523567B2DFA7FE250B30FACBD62D4EC99B94AC47C7D3B28F1F6E4C8"
                                >
                                </IMembershipCondition>
                            </CodeGroup>
                            <CodeGroup
                                class="UnionCodeGroup"
                                version="1"
                                PermissionSetName="FullTrust"
                            >
                                <IMembershipCondition
                                    class="UrlMembershipCondition"
                                    version="1"
                                    Url="$CodeGen$/*"
                                >
                                </IMembershipCondition>
                            </CodeGroup>
                            <CodeGroup
                                class="UnionCodeGroup"
                                version="1"
                                PermissionSetName="FullTrust"
                                Name="SharePoint_Server_Strong_Name"
                                Description="This code group grants SharePoint Server code full trust. "
                            >
                                <IMembershipCondition
                                    class="StrongNameMembershipCondition"
                                    version="1"
                                    PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100AFD4A0E7724151D5DD52CB23A30DED7C0091CC01CFE94B2BCD85B3F4EEE3C4D8F6417BFF763763A996D6B2DFC1E7C29BCFB8299779DF8785CDE2C168CEEE480E570725F2468E782A9C2401302CF6DC17E119118ED2011937BAE9698357AD21E8B6DFB40475D16E87EB03C744A5D32899A0DBC596A6B2CFA1E509BE5FBD09FACF"
                                >
                                </IMembershipCondition>
                            </CodeGroup>
                            <CodeGroup
                                class="UnionCodeGroup"
                                version="1"
                                PermissionSetName="FullTrust"
                                Name="Analisys_Server_Strong_Name"
                                Description="This code group grants DataFeedClient.dll full trust. "
                            >
                                <IMembershipCondition
                                    class="StrongNameMembershipCondition"
                                    version="1"
                                    PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100272736AD6E5F9586BAC2D531EABC3ACC666C2F8EC879FA94F8F7B0327D2FF2ED523448F83C3D5C5DD2DFC7BC99C5286B2C125117BF5CBE242B9D41750732B2BDFFE649C6EFB8E5526D526FDD130095ECDB7BF210809C6CDAD8824FAA9AC0310AC3CBA2AA0523567B2DFA7FE250B30FACBD62D4EC99B94AC47C7D3B28F1F6E4C8"
                                >
                                </IMembershipCondition>
                            </CodeGroup>
                            <CodeGroup
                                class="UnionCodeGroup"
                                version="1"
                                PermissionSetName="FullTrust"
                                Name="OXML_SDK_Strong_Name"
                                Description="Grants FullTrust to OpenXmlSdk"
                            >
                                <IMembershipCondition
                                    class="StrongNameMembershipCondition"
                                    version="1"
                                    PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9"
                                >
                                </IMembershipCondition>
                            </CodeGroup>
                        </CodeGroup>
                    </CodeGroup>
                </PolicyLevel>
            </policy>
        </security>
    </mscorlib>
</configuration>
imanshu15 commented 6 years ago

@HansKindberg Hello,Thanks it worked. But now i get this error, can you please help me with this too?

The report server encountered an unhandled exception in HttpApplication. (rsUnhandledHttpApplicationError) Get Online Help ID1038: The AudienceRestrictionCondition was not valid because the specified Audience is not present in AudienceUris. Audience: 'https://localhost:443/ReportServer17'

To this i removed trailing backslash in

 <audienceUris>
        <add value="https://localhost:443/ReportServer17" />
      </audienceUris>

But now i get this,

ID4257: X.509 certificate 'CN=ADFS Signing - ec2-13-127-107-254.ap-south-1.compute.amazonaws.com' validation failed by the token handler. The X.509 certificate CN=ADFS Signing - ec2-13-127-107-254.ap-south-1.compute.amazonaws.com is not in the trusted people store. The X.509 certificate CN=ADFS Signing - ec2-13-127-107-254.ap-south-1.compute.amazonaws.com chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.

Here is my web.config,

<configuration>
  <configSections>
    <section name="structureMap" type="RegionOrebroLan.ReportingServices.StructureMap.Configuration.Section, RegionOrebroLan.ReportingServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=520b099ae7bbdead" />
    <section name="system.identityModel" type="System.IdentityModel.Configuration.SystemIdentityModelSection, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <section name="system.identityModel.services" type="System.IdentityModel.Services.Configuration.SystemIdentityModelServicesSection, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  </configSections>
  <system.web>
    <authorization>
      <deny users="?" />
    </authorization>
    <pages validateRequest="false">
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      </controls>
      <namespaces>
        <remove namespace="System.Linq" />
        <remove namespace="System.ComponentModel.DataAnnotations" />
      </namespaces>
    </pages>
    <authentication mode="Windows" />
    <identity impersonate="false" />
    <compilation defaultLanguage="c#" debug="false" targetFramework="4.0" tempDirectory="C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\RSTempFiles">
      <assemblies>
        <clear />
        <add assembly="ReportingServicesWebServer" />
        <add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        <add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        <add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      </assemblies>
    </compilation>
    <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
    <sessionState mode="Off" />
    <httpHandlers>
      <add verb="*" path="Reserved.ReportServer" type="Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler, ReportingServicesWebServer" />
      <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, ReportingServicesWebServer, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
    </httpHandlers>
    <httpModules>
      <clear />
      <add name="BootstrapperModule" type="RegionOrebroLan.ReportingServices.Web.BootstrapperModule, RegionOrebroLan.ReportingServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=520b099ae7bbdead" />
      <add name="CustomErrorHandlerModule" type="RegionOrebroLan.ReportingServices.Web.ErrorHandlerModule, RegionOrebroLan.ReportingServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=520b099ae7bbdead" />
      <add name="ErrorHandlerModule" type="System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      <add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
      <add name="SessionAuthenticationModule" type="System.IdentityModel.Services.SessionAuthenticationModule, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
      <!-- Must be declared after the SessionAuthenticationModule. -->
      <add name="FederationAuthenticationModule" type="RegionOrebroLan.ReportingServices.Web.FederationAuthenticationModule, RegionOrebroLan.ReportingServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=520b099ae7bbdead" />
    </httpModules>
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
    <httpRuntime executionTimeout="9000" requestValidationMode="2.0" />
    <securityPolicy>
      <trustLevel name="RosettaSrv" policyFile="rssrvpolicy.config" />
    </securityPolicy>
    <trust level="RosettaSrv" originUrl="" legacyCasModel="true" />
    <webServices>
      <soapExtensionTypes>
        <add type="Microsoft.ReportingServices.WebServer.RsSoapExtension, ReportingServicesWebServer" priority="1" group="1" />
      </soapExtensionTypes>
      <soapExtensionReflectorTypes>
        <add type="Microsoft.ReportingServices.WebServer.RsSoapExtensionReflector, ReportingServicesWebServer" />
      </soapExtensionReflectorTypes>
    </webServices>
    <machineKey validationKey="8F9F2DA1DB1ADCD286639F158D6EA61E53C770E7778B6109B903DF76ED9EDA86DFBEB2E84C89677E37E005B1116BF6AAF2A5FC526BEDAC3EB75DFBF5F2887F21" decryptionKey="D02BFF4E835AD1C689A7535F26D60941BE68B1B9A6018FE3" validation="AES" decryption="AES" />
  </system.web>
  <runtime>
    <alwaysFlowImpersonationPolicy enabled="true" />
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.ReportingServices.Interfaces" publicKeyToken="89845dcd8080cc91" culture="neutral" />
        <bindingRedirect oldVersion="8.0.242.0-14.0.0.0" newVersion="14.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.ReportingServices.ProcessingCore" publicKeyToken="89845dcd8080cc91" culture="neutral" />
        <bindingRedirect oldVersion="9.0.242.0-14.0.0.0" newVersion="14.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.ReportingServices.ProcessingObjectModel" publicKeyToken="89845dcd8080cc91" culture="neutral" />
        <bindingRedirect oldVersion="9.0.242.0-14.0.0.0" newVersion="14.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.SqlServer.Types" publicKeyToken="89845dcd8080cc91" culture="neutral" />
        <bindingRedirect oldVersion="10.0.0.0-14.0.0.0" newVersion="14.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="msmgdsrv" publicKeyToken="89845dcd8080cc91" />
        <bindingRedirect oldVersion="9.0.0.0-14.0.0.0" newVersion="14.0.0.0" />
        <codeBase version="14.0.0.0" href="%ProgramFiles%\Microsoft Analysis Services\AS OLEDB\140\msmgdsrv.dll" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Cors" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.2.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="StructureMap" culture="neutral" publicKeyToken="e60ad81abae3c223" />
        <bindingRedirect newVersion="3.1.9.463" oldVersion="0.0.0.0-3.1.9.463" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <structureMap>
    <registries>
      <add type="RegionOrebroLan.ReportingServices.StructureMap.Registry, RegionOrebroLan.ReportingServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=520b099ae7bbdead" />
    </registries>
  </structureMap>

  <system.identityModel>
    <identityConfiguration>
      <audienceUris>
        <add value="https://localhost:443/ReportServer17" />
      </audienceUris>
      <certificateValidation certificateValidationMode="PeerOrChainTrust" />
      <claimsAuthenticationManager type="RegionOrebroLan.ReportingServices.Security.Claims.WindowsFederationClaimsAuthenticationManager, RegionOrebroLan.ReportingServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=520b099ae7bbdead" />
      <issuerNameRegistry type="System.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <trustedIssuers>
          <add name="https://url/adfs/ls/" thumbprint="8a59b38065d2d4aa774d7379e725f192a2cfefca" />
        </trustedIssuers>
      </issuerNameRegistry>
    </identityConfiguration>

  </system.identityModel>

  <system.identityModel.services>
    <federationConfiguration>
      <cookieHandler requireSsl="true" />
      <wsFederation issuer="https://url/adfs/ls/" passiveRedirectEnabled="true" realm="https://localhost:443/ReportServer17/" requireHttps="true" />
    </federationConfiguration>
  </system.identityModel.services>
</configuration>
HansKindberg commented 6 years ago

@imanshu15 Important! The trailing slash in https://reports.local.net/ReportServer/ is important when configuring AD FS and in Web.config.

You need the trailing slash https://localhost:443/ReportServer17/. If not, redirecting after authentication will not work. So you need the trailing slash both in Web.config and in AD FS (Enable support for the WS-Federation Passive protocol and enter https://reports.local.net/ReportServer/ as Relying party WS-Federation Passive protocol URL).

You use localhost. I can't see how that will work when authenticating with AD FS. Is your AD FS on the same machine as your Report Server?

About the certificate error. First you need to export the "Signing certificate" from AD FS (the AD FS management tool) and then you have to import it to the Trusted Root Certification Authorities of the local-machine (on the machine where Reportings Services is installed), Cert:\LocalMachine\Root.

imanshu15 commented 6 years ago

Okay thank you. Great its connecting to ADFS server now. And no the servers in not in the same machine. But we been using localhost on web projects to connect from adfs. Now i am getting this,

We can't sign you in with this credential because your domain isn't available. Make sure your device is connected to your organization's network and try again. If you previously signed in on this device with another credential, you can sign in with that credential.

I am thinking that its a problem with my side . So thank you very much for the help

HansKindberg commented 6 years ago

@imanshu15 Ok, glad to help The Reporting Services machine have to be on the domain.

imanshu15 commented 6 years ago

@HansKindberg Yes, I connected to the same domain. And ADFS is working fine but now i get this from ssrs,

The report server encountered an unhandled exception in HttpApplication. (rsUnhandledHttpApplicationError) Get Online Help The user name or password is incorrect.

Have i missed something while configuring? or an error on my side?

HansKindberg commented 6 years ago

@imanshu15 Is there anything in C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\LogFiles\Error.log?

imanshu15 commented 6 years ago

yes, here i have copied the log file below.

> 2018-07-10 10:21:48,054 [31]: System.Security.SecurityException: We can't sign you in with this credential because your domain isn't available. Make sure your device is connected to your organization's network and try again. If you previously signed in on this device with another credential, you can sign in with that credential.
> 
>    at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String upn, SafeAccessTokenHandle& safeTokenHandle)
>    at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName, String type)
>    at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName)
>    at RegionOrebroLan.ReportingServices.Security.Principal.WindowsFederationIdentityFactory.Create(String userPrincipalName)
>    at RegionOrebroLan.ReportingServices.Security.Claims.WindowsFederationClaimsAuthenticationManager.Authenticate(String resourceName, ClaimsPrincipal incomingPrincipal)
> The Zone of the assembly that failed was:
> MyComputer
> 2018-07-10 10:21:48,054 [31]: System.Security.SecurityException: We can't sign you in with this credential because your domain isn't available. Make sure your device is connected to your organization's network and try again. If you previously signed in on this device with another credential, you can sign in with that credential.
> 
>    at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String upn, SafeAccessTokenHandle& safeTokenHandle)
>    at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName, String type)
>    at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName)
>    at RegionOrebroLan.ReportingServices.Security.Principal.WindowsFederationIdentityFactory.Create(String userPrincipalName)
>    at RegionOrebroLan.ReportingServices.Security.Claims.WindowsFederationClaimsAuthenticationManager.Authenticate(String resourceName, ClaimsPrincipal incomingPrincipal)
>    at System.IdentityModel.Services.WSFederationAuthenticationModule.SignInWithResponseMessage(HttpRequestBase request)
>    at System.IdentityModel.Services.WSFederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)
>    at RegionOrebroLan.ReportingServices.Web.FederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs e)
>    at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
>    at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
>    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
> The Zone of the assembly that failed was:
> MyComputer
> 2018-07-10 10:33:05,267 [33]: System.Security.SecurityException: The user name or password is incorrect.
> 
>    at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String upn, SafeAccessTokenHandle& safeTokenHandle)
>    at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName, String type)
>    at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName)
>    at RegionOrebroLan.ReportingServices.Security.Principal.WindowsFederationIdentityFactory.Create(String userPrincipalName)
>    at RegionOrebroLan.ReportingServices.Security.Claims.WindowsFederationClaimsAuthenticationManager.Authenticate(String resourceName, ClaimsPrincipal incomingPrincipal)
> The Zone of the assembly that failed was:
> MyComputer
> 2018-07-10 10:33:05,318 [33]: System.Security.SecurityException: The user name or password is incorrect.
> 
>    at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String upn, SafeAccessTokenHandle& safeTokenHandle)
>    at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName, String type)
>    at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName)
>    at RegionOrebroLan.ReportingServices.Security.Principal.WindowsFederationIdentityFactory.Create(String userPrincipalName)
>    at RegionOrebroLan.ReportingServices.Security.Claims.WindowsFederationClaimsAuthenticationManager.Authenticate(String resourceName, ClaimsPrincipal incomingPrincipal)
>    at System.IdentityModel.Services.WSFederationAuthenticationModule.SignInWithResponseMessage(HttpRequestBase request)
>    at System.IdentityModel.Services.WSFederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)
>    at RegionOrebroLan.ReportingServices.Web.FederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs e)
>    at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
>    at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
>    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
> The Zone of the assembly that failed was:
> MyComputer
> 
HansKindberg commented 6 years ago

@imanshu15 I cant say why this is happening. Maybe it has to do something with that your environment is different than mine.

Short: The only claim that is sent back from ADFS to the Reporting Serivices application is the UPN (User-Principal-Name). Then the UPN is used to construct a WindowsIdentity, https://msdn.microsoft.com/en-us/library/td3046fc(v=vs.110).aspx.

At this page, the note says: This constructor is intended for use only on computers joined to Windows Server 2003 or later domains. An exception is thrown for earlier domain types. This restriction is due to the fact that this constructor uses the KERB_S4U_LOGON structure, which was first introduced in Windows Server 2003.

Do you have an old windows-domain?

It is this line of code that throws the exception: https://github.com/RegionOrebroLan-Lab/.NET-ReportingServices-Extensions/blob/master/Source/Project/Security/Principal/WindowsFederationIdentityFactory.cs#L12

I dont know how comfortable you are with programming C#. But I suggest you build a console application that you test to run on the Reporting Services machine. In the application you try: var windowsIdentity = new WindowsIdentity(userPrincipalName); This line of code must work otherwhise the SSRS - ADFS authentication will not work.

Also: What service account did you configure for the SSRS? I used the default one, "virtual reporting service account", or something, dont remember. My reflection is if the process running dont have the rights to execute "new WindowsIdentity(userPrincipalName)". Not shore but just trying to figure it out.

imanshu15 commented 6 years ago

No the domain in not an old one.Here what should i pass as userPrincipalName?

HansKindberg commented 6 years ago

@imanshu15 You could start by passing your own userPrincipalName. Do you have the tool Active Directory Users & Computers? https://www.microsoft.com/en-us/download/details.aspx?id=45520

You can search your AD for accounts and check what the userPrincipalName is (normally the same as your email-address). To be able to look at all attributes for an account you have to check Advanced functions in the "Active Directory Users & Computers" gui.

Or you can run the following code: var userPrincipalName = System.DirectoryServices.AccountManagement.UserPrincipal.Current.UserPrincipalName;

brian-swart commented 5 years ago

I'm having a similar issue that this one was created for. I don't know what to do with step 6. There is no .snk file anywhere and the instructions aren't clear on what needs to be done. Do we need to create our own .snk file and sign all of the libraries in the zip file with it? I tried skipping that step but when I restarted the service I got the error in the screenshot below. It looks like an issue with the signing to me but I'm not sure. Any thoughts?

HansKindberg commented 5 years ago

@bjswart If you are using the assemblies in the zip-file you do not have to sign them. You only have to sign the https://github.com/RegionOrebroLan-Lab/.NET-ReportingServices-Extensions assembly if you want to change it for some reason.

So you should follow the instruction: https://github.com/RegionOrebroLan-Lab/Reporting-Services-With-ADFS-Authentication#6-rssrvpolicyconfig

This means that you allow the assemblies, that comes with the zip-file, to run in Reporting-services.

As I understand the error you posted is that there is something wrong with that permission.

Could you post the content of your RSSrvPolicy.config?

Regards Hans

brian-swart commented 5 years ago

Thank you for the response. I was able to get past that issue. I missed the step where I had to unblock the dll's if downloaded directly to the server. Now I'm getting the error below. Any ideas?

image

brian-swart commented 5 years ago

Sorry for the short post before. I've been working on getting my test server up and running so I can try this without updating a production server. I realized this morning that you already answered the issue above. I exported the token signing certificate from our ADFS server and installed it per your instructions and got around the issue. I'm not sure how this will work long term though because we use the automatic rollover feature.

Anyway, I've gotten past my last issue and I'm able to authenticate to the /ReportServer/ url (big yay!). However, when I go to the /Reports/ url I get a 500 error in chrome. The error in Error.log is below.

2019-02-20 11:22:33,653 [6]: WindowsAuthentication - GetUserInfo (3 parameters): Could not get identity from cookies.
System.InvalidOperationException: IdentityResolver - GetIdentity: Could not get identity from cookies. Available cookies: .ASPXAUTH. ---> System.Web.HttpException: Unable to validate data.
   at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
   at System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket)
   at RegionOrebroLan.ReportingServices.Web.Security.FormsAuthenticationWrapper.Decrypt(String value)
   at RegionOrebroLan.ReportingServices.Authentication.IdentityResolver.GetIdentity(IDictionary`2 cookies)
   --- End of inner exception stack trace ---
   at RegionOrebroLan.ReportingServices.Authentication.IdentityResolver.GetIdentity(IDictionary`2 cookies)
   at RegionOrebroLan.ReportingServices.Authentication.WindowsAuthentication.GetUserInfo(IRSRequestContext requestContext, IIdentity& userIdentity, IntPtr& userId)

I tried adding the /Reports/ url to the relying party identifier and the WS-Federation Passive Endpoints. I also added it as another key in the audienceUris element of the web config as well as replaced it in the realm attribute of the /system.identityModel.services/federationConfiguration/wsFederation element. Even with those changes I still get the same error in the log file.

Any idea what I have wrong or how I can get both the /ReportServer/ url and the /Reports/ url to work?

Thanks for all of your help!

HansKindberg commented 5 years ago

@bjswart

Looks like the same error as in this earlier issue/question: https://github.com/RegionOrebroLan-Lab/Reporting-Services-With-ADFS-Authentication/issues/5

According to the error there is a problem with the machine-keys.

/Hans

moqueet009 commented 3 months ago
Report Server Version 2018.0150.1115.165 ((BI_Server_Main).240524-1343) English (United States) C:\Program Files\Microsoft Power BI Report Server\PBIRS\Logfiles\ReportingServicesService_2024_07_28_09_18_01.log BI02 Microsoft Windows NT 10.0.20348 10.0.20348 16476 Hypervisor
AMD64 AMD64

rshost!rshost!3c80!07/28/2024-09:18:01:: i INFO: CLR runtime is initialized. rshost!rshost!3c80!07/28/2024-09:18:01:: i INFO: Derived memory configuration based on physical memory as 8387596 KB rshost!rshost!3c80!07/28/2024-09:18:01:: w WARN: Failed to initialize performance counters: 2. Possible setup issue. appdomainmanager!DefaultDomain!3c80!07/28/2024-09:18:01:: i INFO: Entered managed ServiceMain in DefaultDomain. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing ConnectionType to '0' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing SecureConnectionLevel to '0' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing DisableSecureFormsAuthenticationCookie to 'False' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing CleanupCycleMinutes to '10' minute(s) as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing MaxActiveReqForOneUser to '20' requests(s) as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing DatabaseQueryTimeout to '300' second(s) as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing RunningRequestsScavengerCycle to '60' second(s) as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing RunningRequestsDbCycle to '60' second(s) as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing RunningRequestsAge to '30' second(s) as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing MaxScheduleWait to '5' second(s) as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing DisplayErrorLink to 'True' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing WebServiceUseFileShareStorage to 'False' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing WatsonFlags to '1064' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing WatsonDumpOnExceptions to 'Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException,Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing WatsonDumpExcludeIfContainsExceptions to 'Microsoft.PowerBI.ReportServer.WebApi.Catalog.CatalogAccessException,System.Threading.ThreadAbortException,System.Web.UI.ViewStateException,System.OutOfMemoryException,System.Web.HttpException,System.IO.IOException,System.IO.FileLoadException,Microsoft.SharePoint.SPException,Microsoft.ReportingServices.WmiProvider.WMIProviderException,System.AppDomainUnloadedException' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing AuthenticationTypes to '16' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing RSWindowsExtendedProtectionLevel to 'Off' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing RSWindowsExtendedProtectionScenario to 'Proxy' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing EnableAuthPersistence to 'True' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing IsSchedulingService to 'True' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing IsNotificationService to 'True' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing IsEventService to 'True' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing PollingInterval to '10' second(s) as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing MaxCatalogConnectionPoolSizePerProcess to '0' connections as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing WindowsServiceUseFileShareStorage to 'False' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing MemorySafetyMargin to '80' percent as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing MemoryThreshold to '90' percent as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing RecycleTime to '720' minute(s) as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing MaxAppDomainUnloadTime to '30' minute(s) as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing MaxQueueThreads to '0' thread(s) as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: w WARN: Initializing UrlRoot to default value of '' because it was incorrectly specified in Configuration file as ''. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing IsWebServiceEnabled to 'True' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing MaxConnections to '2' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing Timeout to '10' second(s) as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing AppID to '(Default)' as specified in Configuration file. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Initializing CacheLevel to 'Default' as specified in Configuration file. resourceutilities!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: SKU: Power BI Report Server - SQL Server Enterprise with Software Assurance configmanager!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Using report server internal url http://localhost:80/ReportServerBI02. configmanager!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Using report server external url http://BI02:80/ReportServerBI02. configmanager!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Using url root http://BI02:80/ReportServerBI02. rshost!rshost!199c!07/28/2024-09:18:02:: i INFO: Configuring maxPhysicalCpu=0, minLogicalCpu=0 rshost!rshost!199c!07/28/2024-09:18:02:: i INFO: Logical processor per physical processor 2 rshost!rshost!199c!07/28/2024-09:18:02:: i INFO: Logical processor per core 1 rshost!rshost!199c!07/28/2024-09:18:02:: i INFO: Logical processor unlimited rshost!rshost!199c!07/28/2024-09:18:02:: i INFO: Maximum logical CPU is 4 library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Catalog max connection pool size: 1536 configmanager!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Using report server internal url http://localhost:80/ReportServerBI02. configmanager!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Using report server external url http://BI02:80/ReportServerBI02. configmanager!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Using url root http://BI02:80/ReportServerBI02. library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: SQLDump flags: ReferencedMemory, AllThreads, SendToWatson library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: MiniDump flags: DataSegs, UnloadedModules, ProcessThreadData library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Dump on: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogExceptionMicrosoft.ReportingServices.Modeling.InternalModelingExceptionMicrosoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Do not dump on: Microsoft.PowerBI.ReportServer.WebApi.Catalog.CatalogAccessExceptionSystem.Threading.ThreadAbortExceptionSystem.Web.UI.ViewStateExceptionSystem.OutOfMemoryExceptionSystem.Web.HttpExceptionSystem.IO.IOExceptionSystem.IO.FileLoadExceptionMicrosoft.SharePoint.SPExceptionMicrosoft.ReportingServices.WmiProvider.WMIProviderExceptionSystem.AppDomainUnloadedException library!DefaultDomain!199c!07/28/2024-09:18:02:: i INFO: Minidump location: C:\Program Files\Microsoft Power BI Report Server\PBIRS\Logfiles appdomainmanager!DefaultDomain!199c!07/28/2024-09:18:03:: i INFO: Registering AppDomain: type='WindowsService'; id='2'; Name='WindowsService_0' appdomainmanager!DefaultDomain!199c!07/28/2024-09:18:03:: i INFO: Creating a new AppDomainLifeCycleManagementEntry for AppDomain id '2' appdomainmanager!DefaultDomain!199c!07/28/2024-09:18:03:: i INFO: Appdomain STARTED: id='2'; name='WindowsService_0' servicecontroller!DefaultDomain!199c!07/28/2024-09:18:03:: i INFO: Creating an instance of class 'ReportingServicesLibrary, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' from assembly 'Microsoft.ReportingServices.Library.ServiceAppDomain' in domain 'WindowsService_0' library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing ConnectionType to '0' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing SecureConnectionLevel to '0' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing DisableSecureFormsAuthenticationCookie to 'False' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing CleanupCycleMinutes to '10' minute(s) as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing MaxActiveReqForOneUser to '20' requests(s) as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing DatabaseQueryTimeout to '300' second(s) as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing RunningRequestsScavengerCycle to '60' second(s) as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing RunningRequestsDbCycle to '60' second(s) as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing RunningRequestsAge to '30' second(s) as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing MaxScheduleWait to '5' second(s) as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing DisplayErrorLink to 'True' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing WebServiceUseFileShareStorage to 'False' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing WatsonFlags to '1064' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing WatsonDumpOnExceptions to 'Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException,Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing WatsonDumpExcludeIfContainsExceptions to 'Microsoft.PowerBI.ReportServer.WebApi.Catalog.CatalogAccessException,System.Threading.ThreadAbortException,System.Web.UI.ViewStateException,System.OutOfMemoryException,System.Web.HttpException,System.IO.IOException,System.IO.FileLoadException,Microsoft.SharePoint.SPException,Microsoft.ReportingServices.WmiProvider.WMIProviderException,System.AppDomainUnloadedException' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing AuthenticationTypes to '16' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing RSWindowsExtendedProtectionLevel to 'Off' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing RSWindowsExtendedProtectionScenario to 'Proxy' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing EnableAuthPersistence to 'True' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing IsSchedulingService to 'True' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing IsNotificationService to 'True' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing IsEventService to 'True' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing PollingInterval to '10' second(s) as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing MaxCatalogConnectionPoolSizePerProcess to '0' connections as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing WindowsServiceUseFileShareStorage to 'False' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing MemorySafetyMargin to '80' percent as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing MemoryThreshold to '90' percent as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing RecycleTime to '720' minute(s) as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing MaxAppDomainUnloadTime to '30' minute(s) as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing MaxQueueThreads to '0' thread(s) as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: w WARN: Initializing UrlRoot to default value of '' because it was incorrectly specified in Configuration file as ''. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing IsWebServiceEnabled to 'True' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing MaxConnections to '2' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing Timeout to '10' second(s) as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing AppID to '(Default)' as specified in Configuration file. library!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Initializing CacheLevel to 'Default' as specified in Configuration file. resourceutilities!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: SKU: Power BI Report Server - SQL Server Enterprise with Software Assurance configmanager!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Using report server internal url http://localhost:80/ReportServerBI02. configmanager!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Using report server external url http://BI02:80/ReportServerBI02. configmanager!WindowsService_0!199c!07/28/2024-09:18:03:: i INFO: Using url root http://BI02:80/ReportServerBI02. library!WindowsService_0!199c!07/28/2024-09:18:04:: i INFO: Catalog max connection pool size: 1536 configmanager!WindowsService_0!199c!07/28/2024-09:18:04:: i INFO: Using report server internal url http://localhost:80/ReportServerBI02. configmanager!WindowsService_0!199c!07/28/2024-09:18:04:: i INFO: Using report server external url http://BI02:80/ReportServerBI02. configmanager!WindowsService_0!199c!07/28/2024-09:18:04:: i INFO: Using url root http://BI02:80/ReportServerBI02. library!WindowsService_0!199c!07/28/2024-09:18:04:: i INFO: SQLDump flags: ReferencedMemory, AllThreads, SendToWatson library!WindowsService_0!199c!07/28/2024-09:18:04:: i INFO: MiniDump flags: DataSegs, UnloadedModules, ProcessThreadData library!WindowsService_0!199c!07/28/2024-09:18:04:: i INFO: Dump on: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogExceptionMicrosoft.ReportingServices.Modeling.InternalModelingExceptionMicrosoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException library!WindowsService_0!199c!07/28/2024-09:18:04:: i INFO: Do not dump on: Microsoft.PowerBI.ReportServer.WebApi.Catalog.CatalogAccessExceptionSystem.Threading.ThreadAbortExceptionSystem.Web.UI.ViewStateExceptionSystem.OutOfMemoryExceptionSystem.Web.HttpExceptionSystem.IO.IOExceptionSystem.IO.FileLoadExceptionMicrosoft.SharePoint.SPExceptionMicrosoft.ReportingServices.WmiProvider.WMIProviderExceptionSystem.AppDomainUnloadedException library!WindowsService_0!199c!07/28/2024-09:18:04:: i INFO: Minidump location: C:\Program Files\Microsoft Power BI Report Server\PBIRS\Logfiles library!WindowsService_0!25f8!07/28/2024-09:18:04:: i INFO: Catalog SQL Server Edition = EnterpriseCore crypto!WindowsService_0!25f8!07/28/2024-09:18:04:: i INFO: Initializing crypto as user: NT SERVICE\PowerBIReportServer crypto!WindowsService_0!25f8!07/28/2024-09:18:04:: i INFO: Exporting public key rshost!rshost!459c!07/28/2024-09:18:04:: i INFO: Registered url=http://+:80/ReportServerBI02/, vdir=/ReportServerBI02, pdir=C:\Program Files\Microsoft Power BI Report Server\PBIRS\ReportServer. rshost!rshost!459c!07/28/2024-09:18:04:: i INFO: Registered url=https://+:443/ReportServerBI02/, vdir=/ReportServerBI02, pdir=C:\Program Files\Microsoft Power BI Report Server\PBIRS\ReportServer. rshost!rshost!459c!07/28/2024-09:18:04:: i INFO: Currently registered url https://+:443/ReportServerBI02/ on endpoint 2 rshost!rshost!459c!07/28/2024-09:18:04:: i INFO: Currently registered url http://+:80/ReportServerBI02/ on endpoint 2 rshost!rshost!199c!07/28/2024-09:18:04:: i INFO: Derived memory configuration based on physical memory as 8387596 KB rpcserver!DefaultDomain!350c!07/28/2024-09:18:04:: i INFO: Process monitoring started. servicecontroller!DefaultDomain!459c!07/28/2024-09:18:04:: i INFO: Total Physical memory: 8588898304 crypto!WindowsService_0!25f8!07/28/2024-09:18:04:: i INFO: Importing existing encryption key configmanager!WindowsService_0!25f8!07/28/2024-09:18:04:: i INFO: Using report server internal url http://localhost:80/ReportServerBI02. configmanager!WindowsService_0!25f8!07/28/2024-09:18:04:: i INFO: Using report server external url http://BI02:80/ReportServerBI02. configmanager!WindowsService_0!25f8!07/28/2024-09:18:04:: i INFO: Using url root http://BI02:80/ReportServerBI02. servicecontroller!WindowsService_0!25f8!07/28/2024-09:18:04:: e ERROR: Exception caught loading and setting code permissions policy level: System.Security.XmlSyntaxException: Invalid syntax on line 84. at System.Security.Util.Parser.GetRequiredSizes(TokenizerStream stream, Int32& index) at System.Security.Util.Parser.ParseContents() at System.Security.Util.Parser..ctor(Tokenizer t) at System.Security.SecurityManager.LoadPolicyLevelFromStringHelper(String str, String path, PolicyLevelType type) at System.Security.SecurityManager.LoadPolicyLevelFromString(String str, PolicyLevelType type) at Microsoft.ReportingServices.Library.ServiceController.SetAppDomainPolicy() library!WindowsService_0!25f8!07/28/2024-09:18:04:: e ERROR: ServiceStartThread: Exception caught while starting service. Error: System.Security.XmlSyntaxException: Invalid syntax on line 84. at System.Security.Util.Parser.GetRequiredSizes(TokenizerStream stream, Int32& index) at System.Security.Util.Parser.ParseContents() at System.Security.Util.Parser..ctor(Tokenizer t) at System.Security.SecurityManager.LoadPolicyLevelFromStringHelper(String str, String path, PolicyLevelType type) at System.Security.SecurityManager.LoadPolicyLevelFromString(String str, PolicyLevelType type) at Microsoft.ReportingServices.Library.ServiceController.SetAppDomainPolicy() at Microsoft.ReportingServices.Library.ServiceController.ServiceStartThread(Object firstStart) library!WindowsService_0!25f8!07/28/2024-09:18:04:: e ERROR: ServiceStartThread: Attempting to start service again... rpcserver!DefaultDomain!25f8!07/28/2024-09:18:04:: i INFO: RPC Server started. servicecontroller!DefaultDomain!25f8!07/28/2024-09:18:04:: i INFO: RPC Server started. Endpoint name ='ReportingServices$PBIRS' appdomainmanager!DefaultDomain!4508!07/28/2024-09:18:11:: i INFO: Registering AppDomain: type='ReportServer'; id='3'; Name='ReportServer_PBIRS_0-1-133666210910411453' appdomainmanager!DefaultDomain!4508!07/28/2024-09:18:11:: i INFO: Creating a new AppDomainLifeCycleManagementEntry for AppDomain id '3' appdomainmanager!DefaultDomain!4508!07/28/2024-09:18:11:: i INFO: Appdomain STARTED: id='3'; name='ReportServer_PBIRS_0-1-133666210910411453' appdomainmanager!DefaultDomain!4508!07/28/2024-09:18:11:: e ERROR: AppDomain ReportServer_PBIRS_0 failed to start. Error: Invalid syntax on line 84. library!DefaultDomain!4508!07/28/2024-09:18:11:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: Failed to create HTTP Runtime, Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_PBIRS_0. ---> System.Security.XmlSyntaxException: Invalid syntax on line 84. at System.Security.Util.Parser.GetRequiredSizes(TokenizerStream stream, Int32& index) at System.Security.Util.Parser.ParseContents() at System.Security.Util.Parser..ctor(Tokenizer t) at System.Security.SecurityManager.LoadPolicyLevelFromStringHelper(String str, String path, PolicyLevelType type) at System.Security.SecurityManager.LoadPolicyLevelFromString(String str, PolicyLevelType type) at System.Web.HttpRuntime.SetTrustLevel(TrustSection trustSection, SecurityPolicySection securityPolicySection) at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObject(String appId, Type type, String virtualPath, String physicalPath, Boolean failIfExists, Boolean throwOnError) at ReportingServicesHttpRuntime.RsHttpRuntime.Create(RsAppDomainType type, String vdir, String pdir, Int32& domainId) --- End of inner exception stack trace ---; appdomainmanager!DefaultDomain!4508!07/28/2024-09:18:11:: e ERROR: AppDomain ReportServer error: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_PBIRS_0. ---> System.Security.XmlSyntaxException: Invalid syntax on line 84.. appdomainmanager!DefaultDomain!4508!07/28/2024-09:18:11:: e ERROR: AppDomain ReportServer id 3 ('ReportServer_PBIRS_0-1-133666210910411453') was created. Unloading it... appdomainmanager!DefaultDomain!4508!07/28/2024-09:18:11:: i INFO: UnloadAspDomain ReportServer: 3, 'ReportServer_PBIRS_0-1-133666210910411453' appdomainmanager!DefaultDomain!4508!07/28/2024-09:18:11:: i INFO: SetUnloadStarted AppDomain id '3': unloadStarted = 1 appdomainmanager!DefaultDomain!4508!07/28/2024-09:18:11:: i INFO: Appdomain:3 ReportServer_PBIRS_0-1-133666210910411453 unloading. library!DefaultDomain!4508!07/28/2024-09:18:11:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerAppDomainManagerException: Failed to create Report Server HTTP Runtime, Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerAppDomainManagerException: An error occurred when attempting to start the application domain ReportServer within the Report Server service. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_PBIRS_0. ---> System.Security.XmlSyntaxException: Invalid syntax on line 84. at System.Security.Util.Parser.GetRequiredSizes(TokenizerStream stream, Int32& index) at System.Security.Util.Parser.ParseContents() at System.Security.Util.Parser..ctor(Tokenizer t) at System.Security.SecurityManager.LoadPolicyLevelFromStringHelper(String str, String path, PolicyLevelType type) at System.Security.SecurityManager.LoadPolicyLevelFromString(String str, PolicyLevelType type) at System.Web.HttpRuntime.SetTrustLevel(TrustSection trustSection, SecurityPolicySection securityPolicySection) at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObject(String appId, Type type, String virtualPath, String physicalPath, Boolean failIfExists, Boolean throwOnError) at ReportingServicesHttpRuntime.RsHttpRuntime.Create(RsAppDomainType type, String vdir, String pdi rshost!rshost!4508!07/28/2024-09:18:11:: e ERROR: Failed to create HttpRuntime 80131500. rshost!rshost!4508!07/28/2024-09:18:11:: e ERROR: Failed to get appdomain 80131500, pipeline=0x000001C8901A3860. rshost!rshost!4508!07/28/2024-09:18:11:: e ERROR: Error state. Internal abort for pipeline=0x000001C8901A3860 ... appdomainmanager!DefaultDomain!25a8!07/28/2024-09:18:17:: i INFO: Unregistering AppDomain id='3' appdomainmanager!DefaultDomain!25a8!07/28/2024-09:18:17:: i INFO: Unregistering AppDomain: searching for AppDomain id '3' appdomainmanager!DefaultDomain!25a8!07/28/2024-09:18:17:: i INFO: Appdomain:3 ReportServer_PBIRS_0-1-133666210910411453 unregistered. rshost!rshost!25a8!07/28/2024-09:18:17:: i INFO: Application domain type ReportServer statistics: created: 1, unloaded: 1, failed: 0, timed out: 0. appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:20:: i INFO: Registering AppDomain: type='ReportServer'; id='4'; Name='ReportServer_PBIRS_0-2-133666210999857692' appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:20:: i INFO: Creating a new AppDomainLifeCycleManagementEntry for AppDomain id '4' appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:20:: i INFO: Appdomain STARTED: id='4'; name='ReportServer_PBIRS_0-2-133666210999857692' appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:20:: e ERROR: AppDomain ReportServer_PBIRS_0 failed to start. Error: Invalid syntax on line 84. library!DefaultDomain!4264!07/28/2024-09:18:20:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: Failed to create HTTP Runtime, Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_PBIRS_0. ---> System.Security.XmlSyntaxException: Invalid syntax on line 84. at System.Security.Util.Parser.GetRequiredSizes(TokenizerStream stream, Int32& index) at System.Security.Util.Parser.ParseContents() at System.Security.Util.Parser..ctor(Tokenizer t) at System.Security.SecurityManager.LoadPolicyLevelFromStringHelper(String str, String path, PolicyLevelType type) at System.Security.SecurityManager.LoadPolicyLevelFromString(String str, PolicyLevelType type) at System.Web.HttpRuntime.SetTrustLevel(TrustSection trustSection, SecurityPolicySection securityPolicySection) at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObject(String appId, Type type, String virtualPath, String physicalPath, Boolean failIfExists, Boolean throwOnError) at ReportingServicesHttpRuntime.RsHttpRuntime.Create(RsAppDomainType type, String vdir, String pdir, Int32& domainId) --- End of inner exception stack trace ---; appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:20:: e ERROR: AppDomain ReportServer error: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_PBIRS_0. ---> System.Security.XmlSyntaxException: Invalid syntax on line 84.. appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:20:: e ERROR: AppDomain ReportServer id 4 ('ReportServer_PBIRS_0-2-133666210999857692') was created. Unloading it... appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:20:: i INFO: UnloadAspDomain ReportServer: 4, 'ReportServer_PBIRS_0-2-133666210999857692' appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:20:: i INFO: SetUnloadStarted AppDomain id '4': unloadStarted = 1 appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:20:: i INFO: Appdomain:4 ReportServer_PBIRS_0-2-133666210999857692 unloading. library!DefaultDomain!4264!07/28/2024-09:18:20:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerAppDomainManagerException: Failed to create Report Server HTTP Runtime, Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerAppDomainManagerException: An error occurred when attempting to start the application domain ReportServer within the Report Server service. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_PBIRS_0. ---> System.Security.XmlSyntaxException: Invalid syntax on line 84. at System.Security.Util.Parser.GetRequiredSizes(TokenizerStream stream, Int32& index) at System.Security.Util.Parser.ParseContents() at System.Security.Util.Parser..ctor(Tokenizer t) at System.Security.SecurityManager.LoadPolicyLevelFromStringHelper(String str, String path, PolicyLevelType type) at System.Security.SecurityManager.LoadPolicyLevelFromString(String str, PolicyLevelType type) at System.Web.HttpRuntime.SetTrustLevel(TrustSection trustSection, SecurityPolicySection securityPolicySection) at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObject(String appId, Type type, String virtualPath, String physicalPath, Boolean failIfExists, Boolean throwOnError) at ReportingServicesHttpRuntime.RsHttpRuntime.Create(RsAppDomainType type, String vdir, String pdi rshost!rshost!4264!07/28/2024-09:18:20:: e ERROR: Failed to create HttpRuntime 80131500. rshost!rshost!4264!07/28/2024-09:18:20:: e ERROR: Failed to get appdomain 80131500, pipeline=0x000001C8901A3860. rshost!rshost!4264!07/28/2024-09:18:20:: e ERROR: Error state. Internal abort for pipeline=0x000001C8901A3860 ... appdomainmanager!DefaultDomain!25a8!07/28/2024-09:18:26:: i INFO: Unregistering AppDomain id='4' appdomainmanager!DefaultDomain!25a8!07/28/2024-09:18:26:: i INFO: Unregistering AppDomain: searching for AppDomain id '4' appdomainmanager!DefaultDomain!25a8!07/28/2024-09:18:26:: i INFO: Appdomain:4 ReportServer_PBIRS_0-2-133666210999857692 unregistered. rshost!rshost!25a8!07/28/2024-09:18:26:: i INFO: Application domain type ReportServer statistics: created: 2, unloaded: 2, failed: 0, timed out: 0. appdomainmanager!DefaultDomain!1d70!07/28/2024-09:18:36:: i INFO: Registering AppDomain: type='ReportServer'; id='5'; Name='ReportServer_PBIRS_0-3-133666211167513335' appdomainmanager!DefaultDomain!1d70!07/28/2024-09:18:36:: i INFO: Creating a new AppDomainLifeCycleManagementEntry for AppDomain id '5' appdomainmanager!DefaultDomain!1d70!07/28/2024-09:18:36:: i INFO: Appdomain STARTED: id='5'; name='ReportServer_PBIRS_0-3-133666211167513335' appdomainmanager!DefaultDomain!1d70!07/28/2024-09:18:37:: e ERROR: AppDomain ReportServer_PBIRS_0 failed to start. Error: Invalid syntax on line 84. library!DefaultDomain!1d70!07/28/2024-09:18:37:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: Failed to create HTTP Runtime, Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_PBIRS_0. ---> System.Security.XmlSyntaxException: Invalid syntax on line 84. at System.Security.Util.Parser.GetRequiredSizes(TokenizerStream stream, Int32& index) at System.Security.Util.Parser.ParseContents() at System.Security.Util.Parser..ctor(Tokenizer t) at System.Security.SecurityManager.LoadPolicyLevelFromStringHelper(String str, String path, PolicyLevelType type) at System.Security.SecurityManager.LoadPolicyLevelFromString(String str, PolicyLevelType type) at System.Web.HttpRuntime.SetTrustLevel(TrustSection trustSection, SecurityPolicySection securityPolicySection) at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObject(String appId, Type type, String virtualPath, String physicalPath, Boolean failIfExists, Boolean throwOnError) at ReportingServicesHttpRuntime.RsHttpRuntime.Create(RsAppDomainType type, String vdir, String pdir, Int32& domainId) --- End of inner exception stack trace ---; appdomainmanager!DefaultDomain!1d70!07/28/2024-09:18:37:: e ERROR: AppDomain ReportServer error: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_PBIRS_0. ---> System.Security.XmlSyntaxException: Invalid syntax on line 84.. appdomainmanager!DefaultDomain!1d70!07/28/2024-09:18:37:: e ERROR: AppDomain ReportServer id 5 ('ReportServer_PBIRS_0-3-133666211167513335') was created. Unloading it... appdomainmanager!DefaultDomain!1d70!07/28/2024-09:18:37:: i INFO: UnloadAspDomain ReportServer: 5, 'ReportServer_PBIRS_0-3-133666211167513335' appdomainmanager!DefaultDomain!1d70!07/28/2024-09:18:37:: i INFO: SetUnloadStarted AppDomain id '5': unloadStarted = 1 appdomainmanager!DefaultDomain!1d70!07/28/2024-09:18:37:: i INFO: Appdomain:5 ReportServer_PBIRS_0-3-133666211167513335 unloading. library!DefaultDomain!1d70!07/28/2024-09:18:37:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerAppDomainManagerException: Failed to create Report Server HTTP Runtime, Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerAppDomainManagerException: An error occurred when attempting to start the application domain ReportServer within the Report Server service. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_PBIRS_0. ---> System.Security.XmlSyntaxException: Invalid syntax on line 84. at System.Security.Util.Parser.GetRequiredSizes(TokenizerStream stream, Int32& index) at System.Security.Util.Parser.ParseContents() at System.Security.Util.Parser..ctor(Tokenizer t) at System.Security.SecurityManager.LoadPolicyLevelFromStringHelper(String str, String path, PolicyLevelType type) at System.Security.SecurityManager.LoadPolicyLevelFromString(String str, PolicyLevelType type) at System.Web.HttpRuntime.SetTrustLevel(TrustSection trustSection, SecurityPolicySection securityPolicySection) at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObject(String appId, Type type, String virtualPath, String physicalPath, Boolean failIfExists, Boolean throwOnError) at ReportingServicesHttpRuntime.RsHttpRuntime.Create(RsAppDomainType type, String vdir, String pdi rshost!rshost!1d70!07/28/2024-09:18:37:: e ERROR: Failed to create HttpRuntime 80131500. rshost!rshost!1d70!07/28/2024-09:18:37:: e ERROR: Failed to get appdomain 80131500, pipeline=0x000001C8901A3860. rshost!rshost!1d70!07/28/2024-09:18:37:: e ERROR: Error state. Internal abort for pipeline=0x000001C8901A3860 ... rshost!rshost!4264!07/28/2024-09:18:42:: i INFO: Application domain type ReportServer statistics: created: 3, unloaded: 3, failed: 0, timed out: 0. appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:42:: i INFO: Registering AppDomain: type='ReportServer'; id='6'; Name='ReportServer_PBIRS_1-4-133666211218919215' appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:42:: i INFO: Registering AppDomain: overriding the registration of the following AppDomain - type='ReportServer'; id='5'; Name='ReportServer_PBIRS_0-3-133666211167513335' appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:42:: i INFO: Creating a new AppDomainLifeCycleManagementEntry for AppDomain id '6' appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:42:: i INFO: Appdomain STARTED: id='6'; name='ReportServer_PBIRS_1-4-133666211218919215' appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:42:: e ERROR: AppDomain ReportServer_PBIRS_1 failed to start. Error: Invalid syntax on line 84. library!DefaultDomain!4264!07/28/2024-09:18:42:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: Failed to create HTTP Runtime, Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_PBIRS_1. ---> System.Security.XmlSyntaxException: Invalid syntax on line 84. at System.Security.Util.Parser.GetRequiredSizes(TokenizerStream stream, Int32& index) at System.Security.Util.Parser.ParseContents() at System.Security.Util.Parser..ctor(Tokenizer t) at System.Security.SecurityManager.LoadPolicyLevelFromStringHelper(String str, String path, PolicyLevelType type) at System.Security.SecurityManager.LoadPolicyLevelFromString(String str, PolicyLevelType type) at System.Web.HttpRuntime.SetTrustLevel(TrustSection trustSection, SecurityPolicySection securityPolicySection) at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObject(String appId, Type type, String virtualPath, String physicalPath, Boolean failIfExists, Boolean throwOnError) at ReportingServicesHttpRuntime.RsHttpRuntime.Create(RsAppDomainType type, String vdir, String pdir, Int32& domainId) --- End of inner exception stack trace ---; appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:42:: e ERROR: AppDomain ReportServer error: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_PBIRS_1. ---> System.Security.XmlSyntaxException: Invalid syntax on line 84.. appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:42:: e ERROR: AppDomain ReportServer id 6 ('ReportServer_PBIRS_1-4-133666211218919215') was created. Unloading it... appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:42:: i INFO: UnloadAspDomain ReportServer: 6, 'ReportServer_PBIRS_1-4-133666211218919215' appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:42:: i INFO: SetUnloadStarted AppDomain id '6': unloadStarted = 1 appdomainmanager!DefaultDomain!4264!07/28/2024-09:18:42:: i INFO: Appdomain:6 ReportServer_PBIRS_1-4-133666211218919215 unloading. library!DefaultDomain!4264!07/28/2024-09:18:42:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerAppDomainManagerException: Failed to create Report Server HTTP Runtime, Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerAppDomainManagerException: An error occurred when attempting to start the application domain ReportServer within the Report Server service. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_PBIRS_1. ---> System.Security.XmlSyntaxException: Invalid syntax on line 84. at System.Security.Util.Parser.GetRequiredSizes(TokenizerStream stream, Int32& index) at System.Security.Util.Parser.ParseContents() at System.Security.Util.Parser..ctor(Tokenizer t) at System.Security.SecurityManager.LoadPolicyLevelFromStringHelper(String str, String path, PolicyLevelType type) at System.Security.SecurityManager.LoadPolicyLevelFromString(String str, PolicyLevelType type) at System.Web.HttpRuntime.SetTrustLevel(TrustSection trustSection, SecurityPolicySection securityPolicySection) at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters) at System.Web.Hosting.ApplicationManager.CreateObject(String appId, Type type, String virtualPath, String physicalPath, Boolean failIfExists, Boolean throwOnError) at ReportingServicesHttpRuntime.RsHttpRuntime.Create(RsAppDomainType type, String vdir, String pdi rshost!rshost!4264!07/28/2024-09:18:42:: e ERROR: Failed to create HttpRuntime 80131500. rshost!rshost!4264!07/28/2024-09:18:42:: e ERROR: Failed to get appdomain 80131500, pipeline=0x000001C8901A3860. rshost!rshost!4264!07/28/2024-09:18:42:: e ERROR: Error state. Internal abort for pipeline=0x000001C8901A3860 ... appdomainmanager!DefaultDomain!25a8!07/28/2024-09:18:48:: i INFO: Unregistering AppDomain id='6' appdomainmanager!DefaultDomain!25a8!07/28/2024-09:18:48:: i INFO: Unregistering AppDomain: searching for AppDomain id '6' appdomainmanager!DefaultDomain!25a8!07/28/2024-09:18:48:: i INFO: Appdomain:6 ReportServer_PBIRS_1-4-133666211218919215 unregistered. rshost!rshost!25a8!07/28/2024-09:18:48:: i INFO: Application domain type ReportServer statistics: created: 4, unloaded: 4, failed: 0, timed out: 0.

can any one help to figure out this