Microsoft SSRS 2012报表管理器 - HTTP 500错误(网站无法显示页面),而报表服务器正常

时间:2017-03-10 07:39:07

标签: sql-server reporting-services ssrs-2012 reportserver reportmanager

我的情况是我的Microsoft SSRS 2012报表服务器工作正常,但报表管理器不行  抛出HTTP 500错误(网站无法显示页面)。

SSRS 2012报表管理器和报表服务器工作正常,直到昨天我成功  使用SSRS安装SQL Server 2016; SSRS 2016报表服务器和报表管理器都很好;我也是  SSRS 2008R2报表服务器和报表管理器。 (我有SSRS 2008R2和SSRS 2012都正常工作  就在成功安装SSRS 2016之前;现在SSRS 2012的报告管理器部分是 不工作,其他人保持完整)

我认为SQL Server 2012几乎在一年前就被安装为默认实例。

SSRS 2012 Reporting Services配置管理器的详细信息:

服务帐户:使用内置帐户(ReportServer $ SQL2012DEV)

SSRS 2016和SSRS 2008R2 Reporting Services配置管理器的详细信息:

服务帐户:使用内置帐户(网络服务)

我有Reporting Services配置管理器的屏幕截图。 enter image description here

以下是SQL Server配置管理器的屏幕截图:enter image description here

这取自Event Viewer-Windows Log-Application:Source ASP.NET 2.0.50727.0



Failed to initialize the AppDomain:ReportManager_SQL2012DEV_0

Exception: System.Web.HttpException

Message: Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

StackTrace:    at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   at System.Web.Compilation.BuildManager.CallAppInitializeMethod()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

InnerException: System.Configuration.ConfigurationErrorsException

Message: Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

StackTrace:    at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
   at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
   at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName)
   at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp)
   at System.Web.Compilation.BuildManager.CompileGlobalAsax()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()

InnerException: System.IO.FileLoadException

Message: Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

StackTrace:    at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)

InnerException: System.IO.FileLoadException

Message: Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

StackTrace: 




这取自SSRS日志:C:\ Program Files \ Microsoft SQL Server \ MSRS11.SQL2012DEV \ Reporting Services \ LogFiles \ ReportingServerService.txt



WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)


   --- End of inner exception stack trace ---
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
   at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
   at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName)
   at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp)
   at System.Web.Compilation.BuildManager.CompileGlobalAsax()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   --- End of inner exception stack trace ---
   at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   at System.Web.Compilation.BuildManager.CallAppInitializeMethod()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
   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!ReportManager_0-29!3c3c!03/09/2017-14:41:13:: i INFO: Appdomain:31 ReportManager_SQL2012DEV_0-29-131335242724582365 unloading
library!DefaultDomain!3c3c!03/09/2017-14:41:13:: 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 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_SQL2012DEV_0.  ---> System.Web.HttpException: Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   --- End of inner exception stack trace ---;
rshost!rshost!3c3c!03/09/2017-14:41:13:: e ERROR: Failed to create HttpRuntime 80131500.
rshost!rshost!3c3c!03/09/2017-14:41:13:: e ERROR: Failed to get appdomain 80131500, pipeline=0x00000002781A5990.
rshost!rshost!3c3c!03/09/2017-14:41:13:: e ERROR: Error state. Internal abort for pipeline=0x00000002781A5990 ...
appdomainmanager!DefaultDomain!3240!03/09/2017-14:41:19:: i INFO: Appdomain:31 ReportManager_SQL2012DEV_0-29-131335242724582365 unregistered.
rshost!rshost!3240!03/09/2017-14:41:19:: i INFO: Application domain type ReportManager statistics: created: 27, unloaded: 27, failed: 0, timed out: 0.




2 个答案:

答案 0 :(得分:0)

在同一环境中安装多个版本的SSRS时,我遇到了类似的问题。在我的系统中,我安装了SQL 2012,SQL 2014& SQL 2016包括SSRS和其他共享功能。

SSRS 2012实例不包含任何SharePoint组件。但是,SSRS 2012的报告管理器似乎是从另一个实例引用它们。我在检查 C:\ Program Files \ Microsoft SQL Server \\ Reporting Services \ LogFiles 中生成的日志文件时了解到了这一点。

<强>解决方案:

我已经验证了所有已安装的SQL实例特定组件和共享组件。

我发现SQL 2012和SQL 2014实例不包含任何与SharePoint相关的组件。但是,SQL 2016实例包含很少与SharePoint相关的共享组件。它们是“用于SharePoint的Microsoft SQL Server 2016 RS加载项”“Reporting Services - SharePoint”

在纲要&amp;控制面板中的功能,我卸载了“用于SharePoint的Microsoft SQL Server 2016 RS加载项”组件。我停止并重新启动了2012和2016实例的SSRS服务。在此之后,SSRS 2012的报告经理仍然没有工作。

接下来,在程序&amp;我从控制面板中选择了“ Microsoft SQL Server 2016(64位)”,并选择了卸载/更改,然后选择了删除。浏览后,我进入了“选择功能”页面。在共享功能下,我选中了“Reporting Services - SharePoint”并继续将其删除。

完成后,我重新启动了SQL 2012和2016实例的SSRS服务。在此之后,2012和2016实例的两个SSRS站点都按预期工作。所以我的问题已经解决了。

我仍然不清楚为什么SQL 2016实例的设置或功能包含会影响SQL 2012实例。

答案 1 :(得分:-1)

它仅在从文件中删除以下标签后才有效:-

machine.config