我正在尝试将安装在应用程序服务器上的Reporting Services配置管理器连接到位于另一台服务器上的ReportServer数据库。
我正在使用域帐户将Reporting Services配置管理器连接到数据库。
域帐户对这些数据库具有以下权限:
ReportServer数据库的公共角色和RSExecRole角色。
master,msdb和ReportServerTempDB数据库的RSExecRole角色。
此外,域帐户在ReportServer和ReportServerTempDB上具有db owner权限
在Database Server部分中,我指定sql server \ instance并使用Current User- Integrated Security。我以我想用来连接数据库的域用户身份登录。用户名还显示此特定用户是正确的。测试连接成功
在Database部分中,我选择ReportServer
在“凭据”部分中,我尝试将“身份验证类型”作为“服务凭据”和“Windows凭据”,但它们都会导致以下相同的错误。
在应用连接权限期间发生错误。
System.Data.SqlClient.SqlException: User does not have permission to perform this action.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.ReportingServices.Common.DBUtils.ApplyScript(SqlConnection conn, String script, ICommandWrapperFactory commandWrapper)
at Microsoft.ReportingServices.Common.DBUtils.ApplyScript(String connectionString, String script)
at ReportServicesConfigUI.SqlClientTools.SqlTools.ApplyScript(String connectionString, String script)
来自错误日志:---
<Header>
<Product>Microsoft SQL Server Reporting Services Version 2009.0100.1600.01 ((KJ_RTM).100402-1539 )</Product>
<Locale>English (United States)</Locale>
<TimeZone>Eastern Standard Time</TimeZone>
<Path>C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\Logfiles\ReportServerService__01_16_2014_13_11_11.log</Path>
<SystemName>CMTOWDPBHSAPP02</SystemName>
<OSName>Microsoft Windows NT 6.2.9200</OSName>
<OSVersion>6.2.9200</OSVersion>
<ProcessID>1776</ProcessID>
<Virtualization>Hypervisor</Virtualization>
</Header>
rshost!rshost!7b0!01/16/2014-13:11:11:: i INFO: CLR runtime is initialized.
rshost!rshost!7b0!01/16/2014-13:11:11:: i INFO: Derived memory configuration based on physical memory as 8388084 KB
appdomainmanager!DefaultDomain!7d4!01/16/2014-13:11:11:: i INFO: Entered managed ServiceMain in DefaultDomain.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing ConnectionType to '0' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing SecureConnectionLevel to '0' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing CleanupCycleMinutes to '10' minute(s) as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing MaxActiveReqForOneUser to '20' requests(s) as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing DatabaseQueryTimeout to '120' second(s) as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing RunningRequestsScavengerCycle to '60' second(s) as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing RunningRequestsDbCycle to '60' second(s) as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing RunningRequestsAge to '30' second(s) as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing MaxScheduleWait to '5' second(s) as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing DisplayErrorLink to 'True' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing WebServiceUseFileShareStorage to 'False' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing WatsonFlags to '1064' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: 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!7c4!01/16/2014-13:11:13:: i INFO: Initializing WatsonDumpExcludeIfContainsExceptions to 'System.Threading.ThreadAbortException,System.Web.UI.ViewStateException,System.OutOfMemoryException,System.Web.HttpException,System.IO.IOException,System.IO.FileLoadException,Microsoft.SharePoint.SPException' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing AuthenticationTypes to '4' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing RSWindowsExtendedProtectionLevel to 'Off' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing RSWindowsExtendedProtectionScenario to 'Proxy' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing EnableAuthPersistence to 'True' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing IsSchedulingService to 'True' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing IsNotificationService to 'True' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing IsEventService to 'True' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing PollingInterval to '10' second(s) as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing WindowsServiceUseFileShareStorage to 'False' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing MemorySafetyMargin to '80' percent as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing MemoryThreshold to '90' percent as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing RecycleTime to '720' minute(s) as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing MaxAppDomainUnloadTime to '30' minute(s) as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing MaxQueueThreads to '0' thread(s) as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: w WARN: Initializing UrlRoot to default value of '' because it was incorrectly specified in Configuration file as ''.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing IsWebServiceEnabled to 'True' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing IsReportManagerEnabled to 'True' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing MaxConnections to '2' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing Timeout to '10' second(s) as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing AppID to '(Default)' as specified in Configuration file.
library!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Initializing CacheLevel to 'Default' as specified in Configuration file.
resourceutilities!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Reporting Services starting SKU: Enterprise
configmanager!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Using report server internal url http://localhost:80/ReportServer.
configmanager!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Using report server external url http://CMTOWDPBHSAPP02:80/ReportServer.
configmanager!DefaultDomain!7c4!01/16/2014-13:11:13:: i INFO: Using url root http://CMTOWDPBHSAPP02:80/ReportServer.
rshost!rshost!7c4!01/16/2014-13:11:13:: i INFO: Configuring maxPhysicalCpu=8, minLogicalCpu=0
rshost!rshost!7c4!01/16/2014-13:11:13:: i INFO: Logical processor per physical processor 4
rshost!rshost!7c4!01/16/2014-13:11:13:: i INFO: Maximum logical CPU is 4
library!DefaultDomain!7c4!01/16/2014-13:10:08:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
servicecontroller!DefaultDomain!7c4!01/16/2014-13:10:08:: e ERROR: Error initializing configuration from the database: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
appdomainmanager!DefaultDomain!7c4!01/16/2014-13:10:09:: i INFO: Appdomain:2 WindowsService_0 started.
library!WindowsService_0!7c4!01/16/2014-13:10:09:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
servicecontroller!WindowsService_0!7c4!01/16/2014-13:10:09:: e ERROR: Error initializing configuration from the database: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
resourceutilities!WindowsService_0!7c4!01/16/2014-13:10:09:: i INFO: Reporting Services starting SKU: Enterprise
library!WindowsService_0!4f4!01/16/2014-13:10:09:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!WindowsService_0!4f4!01/16/2014-13:10:09:: e ERROR: ServiceStartThread: Exception caught while starting service. Error: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
library!WindowsService_0!4f4!01/16/2014-13:10:09:: e ERROR: ServiceStartThread: Attempting to start service again...
rpcserver!DefaultDomain!4f4!01/16/2014-13:10:09:: i INFO: RPC Server started.
servicecontroller!DefaultDomain!4f4!01/16/2014-13:10:09:: i INFO: RPC Server started. Endpoint name ='ReportingServices$MSRS10_50.MSSQLSERVER'
appdomainmanager!DefaultDomain!7c4!01/16/2014-13:10:10:: i INFO: The UserAccountControl value for the service account is 66048
rshost!rshost!6e8!01/16/2014-13:10:10:: i INFO: Registered url=http://+:80/ReportServer/, vdir=/ReportServer, pdir=C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer.
rshost!rshost!6e8!01/16/2014-13:10:10:: i INFO: Currently registered url http://+:80/ReportServer/ on endpoint 2
appdomainmanager!DefaultDomain!7c4!01/16/2014-13:10:10:: i INFO: The UserAccountControl value for the service account is 66048
rshost!rshost!6e8!01/16/2014-13:10:10:: i INFO: Registered url=http://+:80/Reports/, vdir=/Reports, pdir=C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager.
rshost!rshost!6e8!01/16/2014-13:10:10:: i INFO: Currently registered url http://+:80/Reports/ on endpoint 3
rshost!rshost!6e8!01/16/2014-13:10:10:: i INFO: Endpoint 4 is disabled and no url is registered vdir=/ReportServer/ReportBuilder, pdir=C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\ReportBuilder.
resourceutilities!DefaultDomain!7c4!01/16/2014-13:10:10:: i INFO: Maximum memory limit is 2097152Mb
rshost!rshost!7c4!01/16/2014-13:10:10:: i INFO: Derived memory configuration based on physical memory as 8388084 KB
servicecontroller!DefaultDomain!480!01/16/2014-13:10:10:: i INFO: Total Physical memory: 8589398016
rpcserver!DefaultDomain!6e8!01/16/2014-13:10:10:: i INFO: Process monitoring started.
library!DefaultDomain!9d0!01/16/2014-13:11:31:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!DefaultDomain!9e0!01/16/2014-13:12:22:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!DefaultDomain!9e0!01/16/2014-13:12:22:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!DefaultDomain!834!01/16/2014-13:19:53:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!DefaultDomain!9d8!01/16/2014-13:19:53:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!DefaultDomain!834!01/16/2014-15:41:28:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!DefaultDomain!9e0!01/16/2014-15:42:28:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!DefaultDomain!834!01/16/2014-15:42:28:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!DefaultDomain!9d8!01/16/2014-15:46:10:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!DefaultDomain!9d0!01/16/2014-15:46:10:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!DefaultDomain!9e0!01/16/2014-15:58:42:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!DefaultDomain!7d8!01/16/2014-15:58:42:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
答案 0 :(得分:5)
此链接的最底层表示您还需要master和MSDB上的db_owner
解释链接:
突出的是“配置文件中没有DSN”,所以我创建了 系统DSN并获得相同的结果。然后我去了 rsreportserver.config文件并手动输入DSN。这表明 在日志中:
“FailedToDecryptConfigInformationException:加密值 “Dsn”配置设置无法解密“
因此,Reporting Services似乎必须加密DSN并进行保存 它在文件中。
我搜索了其他网站,发现了“没有DSN存在的人” 配置文件“消息,因为他们没有创建创建 数据库使用报表服务器配置管理器。创造 数据库应该在rsreportserver.config文件中输入DSN信息。 但是,在这种情况下并没有这样做。
答案 1 :(得分:0)
我认为这是遇到Kerberos Authentication约束的情况。您必须修改Active Directory中第一台计算机的委派记录,使其成为受信任的服务器。一旦发生这种情况,它应该允许它传递用户的身份验证。我没有域管理员权限到我们的服务器,所以我自己无法尝试,但我已经碰到了几次同样的问题。
编辑:另一个选项可能是允许SQL Server身份验证并在SQL Server中创建用户帐户。然后,您将能够绕过Kerberos约束,SQL Server可以通过登录。
答案 2 :(得分:0)
也可能是Reporting Services数据库已关闭。
您是否意外地删除了您认为是旧数据库或临时数据库的内容,但事实证明它是SQL Server环境的一部分?
检查ReportSever和ReportSeverTempDB是否都附加在SQL Server中并正在运行。