如何在自定义 SharePoint Web 服务中使用拓扑管理器过时的命名空间?
我无法在 Microsoft.SharePoint.Portal.Topology 命名空间内使用 Topologymanager 类。我搜索了很多。其紧急。谢谢
我收到以下错误。当我在自定义 Web 服务中包含命名空间“Microsoft.SharePoint.Portal.Topology”时。
检测到运行时异常。 详细信息如下。消息:无法打开 请求数据库“WSS_Content_Dev3” 通过登录。登录失败。登录 用户失败
技术细节: System.Data.SqlClient.SqlException: 无法打开数据库 请求的“WSS_Content_Dev3” 登录。登录失败。登录失败 对于用户 . 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException 异常,布尔值breakConnection)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject 状态对象)在 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior、SqlCommand cmdHandler、 SqlDataReader数据流, 批量复制简单结果集 批量复制处理程序、TdsParserStateObject 状态对象)在 System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(布尔值 入伍确定)在 System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo 服务器信息,字符串新密码, 布尔值ignoreSniOpenTimeout,Int64 计时器过期、SqlConnection 拥有对象)在 System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(字符串 主机、字符串、新密码、布尔值 重定向用户实例、SqlConnection 拥有对象、SqlConnectionString 连接选项,Int64 计时器启动)
在 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection 拥有对象、SqlConnectionString 连接选项,字符串新密码, 布尔重定向用户实例)位于 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity 身份、SqlConnectionString 连接选项,对象 提供商信息,字符串新密码, SqlConnection 拥有对象,布尔值 重定向用户实例)位于 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions 选项,对象池GroupProviderInfo, DbConnectionPool 池、DbConnection 拥有连接)位于 System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection 拥有连接, DbConnectionPoolGroup (池组) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection 拥有连接)位于 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection 外部连接、DbConnectionFactory 连接工厂)位于 System.Data.SqlClient.SqlConnection.Open() 在 Microsoft.Office.Server.Data.SqlSession.OpenConnection() 在 Microsoft.Office.Server.Data.SqlSession.ExecuteNonQuery(SqlCommand 命令)在 Microsoft.Office.Server.Data.SqlDatabaseManager.HasAccess(字符串 用户)在 Microsoft.Office.Server.Administration.SharedResourceProvider.SynchronizeAccessControl(SharedComponentSecurity 共享应用程序安全性)位于 Microsoft.Office.Server.Administration.SharedResourceProvider.Microsoft.Office.Server.Administration.ISharedComponent.Synchronize()
I am unable to Use the Topologymanager class inside the namespace Microsoft.SharePoint.Portal.Topology. I searched a lot. Its urgent. Thanks
I am getting the following error. When I include the namespace "Microsoft.SharePoint.Portal.Topology" in my Custom Web service.
A runtime exception was detected.
Details follow. Message: Cannot open
database "WSS_Content_Dev3" requested
by the login. The login failed. Login
failed for userTechinal Details:
System.Data.SqlClient.SqlException:
Cannot open database
"WSS_Content_Dev3" requested by the
login. The login failed. Login failed
for user .
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.SqlInternalConnectionTds.CompleteLogin(Boolean
enlistOK) at
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo
serverInfo, String newPassword,
Boolean ignoreSniOpenTimeout, Int64
timerExpire, SqlConnection
owningObject) at
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String
host, String newPassword, Boolean
redirectedUserInstance, SqlConnection
owningObject, SqlConnectionString
connectionOptions, Int64 timerStart)
at
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection
owningObject, SqlConnectionString
connectionOptions, String newPassword,
Boolean redirectedUserInstance) at
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity
identity, SqlConnectionString
connectionOptions, Object
providerInfo, String newPassword,
SqlConnection owningObject, Boolean
redirectedUserInstance) at
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions
options, Object poolGroupProviderInfo,
DbConnectionPool pool, DbConnection
owningConnection) at
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection
owningConnection,
DbConnectionPoolGroup poolGroup) at
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection
owningConnection) at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
outerConnection, DbConnectionFactory
connectionFactory) at
System.Data.SqlClient.SqlConnection.Open()
at
Microsoft.Office.Server.Data.SqlSession.OpenConnection()
at
Microsoft.Office.Server.Data.SqlSession.ExecuteNonQuery(SqlCommand
command) at
Microsoft.Office.Server.Data.SqlDatabaseManager.HasAccess(String
user) at
Microsoft.Office.Server.Administration.SharedResourceProvider.SynchronizeAccessControl(SharedComponentSecurity
sharedApplicationSecurity) at
Microsoft.Office.Server.Administration.SharedResourceProvider.Microsoft.Office.Server.Administration.ISharedComponent.Synchronize()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
终于找到了解决方案:
当您直接在 Web 服务中使用 templogymanager 或什至在自定义 Web 服务顶部包含命名空间“Microsoft.SharePoint.Portal.Topology”时。它给你错误。我做了以下事情。
Finally got the solution:
When you Use the templogymanager inside the web service directly or even include the namespace "Microsoft.SharePoint.Portal.Topology" at the top of the custom web service. It gives you error. I did the following thing.