Сервер отчетов: попытка подключения к серверу отчетов не удалась - PullRequest
0 голосов
/ 29 апреля 2019

Когда файл сервера отчетов web.config был изменен и перезапущен путем добавления этих двух строк:

<appSettings>
<add key="aspnet:IgnoreFormActionAttribute" value="true" />
<add key="aspnet:MaxHttpCollectionKeys" value="100000" />
</appSettings>

Сервер отчетов работал нормально, но как только файл web.config был возвращен к исходному, онначал выдавать ошибку ниже:

The attempt to connect to the report server failed.  Check your connection information and that the report server is a compatible version.

Любая идея о том, что это может быть или что могло вызвать проблему, так как при первом изменении файла не было никаких проблем?

Сообщение об ошибке:

Appdomain:3 ReportManager_DSQL1_0-1-132065533978847882 started. appdomainmanager!DefaultDomain!15cc!07/02/2019-16:03:18:: e ERROR: AppDomain ReportManager_DSQL1_0 failed to start. Error: Unable to read the security policy file for trust level 'RosettaSrv'. library!DefaultDomain!15cc!07/02/2019-16:03: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 ReportManager_DSQL1_0. ---> System.Web.HttpException: Unable to read the security policy file for trust level 'RosettaSrv'. ManagerException: An error occurred when attempting to start the application domain ReportManager within the Report Server service. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportManager_DSQL1_0. ---> System.Web.HttpException: Unable to read the security policy file for trust level 'RosettaSrv'. --- End of inner exception stack trace ---; rshost!rshost!15cc!07/02/2019-16:03:19:: e ERROR: Failed to create HttpRuntime 80131500. rshost!rshost!15cc!07/02/2019-16:03:19:: e ERROR: Failed to get appdomain 80131500, pipeline=0x00000004F81A1C20. rshost!rshost!15cc!07/02/2019-16:03:19:: e ERROR: Error state. Internal abort for pipeline=0x00000004F81A1C20 ... appdomainmanager!DefaultDomain!1bd0!07/02/2019-16:03:24:: i INFO: Appdomain:3 ReportManager_DSQL1_0-1-132065533978847882 unregistered. rshost!rshost!1bd0!07/02/2019-16:03:24:: i INFO: Application domain type ReportManager statistics: created: 1, unloaded: 1, failed: 0, timed out: 0. appdomainmanager!DefaultDomain!1b90!07/02/2019-16:04:10:: i INFO: Appdomain:4 ReportServer_DSQL1_0-2-132065534498060215 started. appdomainmanager!DefaultDomain!1b90!07/02/2019-16:04:10:: e ERROR: AppDomain ReportServer_DSQL1_0 failed to start. Error: Unable to read the security policy file for trust level 'RosettaMgr'. library!DefaultDomain!1b90!07/02/2019-16:04:10:: 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_DSQL1_0. ---> System.Web.HttpException: Unable to read the security policy file for trust level 'RosettaMgr'.





--One difference in rssrvpolicy.config

 <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>

--Second difference in rssrvpolicy.config
        <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>
...