我尝试创建基于MinRole的小型SharePoint场,它包括:
- ApplicationAndSearch(第一台服务器,从该服务器创建配置数据库并运行CA);
- WebFrontEndAndDistributedCache(第二个,已连接到服务器场)。
当我使用WFE DNS-A地址作为主机头(和URL)创建新的Web应用程序时,我从IIS看到这样的错误消息:
[InvalidOperationException: The farm is unavailable.]
Microsoft.SharePoint.Administration.Claims.SPSecurityTokenServiceManager.get_Local() +300
Microsoft.SharePoint.IdentityModel.SPChunkedCookieHandlerV2..ctor() +146
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +142
System.Activator.CreateInstance(Type type, Boolean nonPublic) +107
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1476
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +186
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
System.IdentityModel.Configuration.TypeResolveHelper.Resolve(ConfigurationElementInterceptor customTypeElement, Type customType) +555
[ConfigurationErrorsException: ID0012: Failed to create an instance of 'Microsoft.SharePoint.IdentityModel.SPChunkedCookieHandlerV2, Microsoft.SharePoint.IdentityModel, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' from configuration.]
System.IdentityModel.Configuration.TypeResolveHelper.Resolve(ConfigurationElementInterceptor customTypeElement, Type customType) +1723
System.IdentityModel.Services.CookieHandlerElement.ApplyCustom(CookieHandler& handler) +159
System.IdentityModel.Services.CookieHandlerElement.GetConfiguredCookieHandler() +379
System.IdentityModel.Services.Configuration.FederationConfiguration.LoadConfiguration(FederationConfigurationElement element) +405
System.IdentityModel.Services.FederatedAuthentication.CreateFederationConfiguration() +119
System.IdentityModel.Services.FederatedAuthentication.get_FederationConfiguration() +123
System.IdentityModel.Services.HttpModuleBase.Init(HttpApplication context) +99
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +575
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +259
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +311
[HttpException (0x80004005): ID0012: Failed to create an instance of 'Microsoft.SharePoint.IdentityModel.SPChunkedCookieHandlerV2, Microsoft.SharePoint.IdentityModel, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' from configuration.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +518
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +729
当我更改DNS A记录到App 'n的服务器,Web应用程序工作正常。
两台服务器上的场和池帐户的权限似乎非常相似。我试图断开WFE服务器与场的连接并再次连接,更改MinRole,在WFE上重新安装sharepoint。所以很快-在服务器上一切正常,在第二台服务器上创建了配置数据库-没有。
此外-每个请求都有一个记录在Windows日志中:
Event code: 3008
Event message: A configuration error has occurred.
Event time: 17.11.2021 17:45:05
Event time (UTC): 17.11.2021 17:45:05
Event ID: 5df1168011984e99ba57729bf5f6b971
Event sequence: 2
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/544621723/ROOT-3-132816338984239912
Trust level: Full
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\wss\VirtualDirectories\ HostHeader \
Machine name: **Internal server's name**
Process information:
Process ID: 1084
Process name: w3wp.exe
Account name: DOMAIN\PoolAccount
Exception information:
Exception type: ConfigurationErrorsException
Exception message: ID0012: Failed to create an instance of 'Microsoft.SharePoint.IdentityModel.SPChunkedCookieHandlerV2, Microsoft.SharePoint.IdentityModel, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' from configuration.
at System.IdentityModel.Configuration.TypeResolveHelper.Resolve[T](ConfigurationElementInterceptor customTypeElement, Type customType)
at System.IdentityModel.Services.CookieHandlerElement.ApplyCustom(CookieHandler& handler)
at System.IdentityModel.Services.CookieHandlerElement.GetConfiguredCookieHandler()
at System.IdentityModel.Services.Configuration.FederationConfiguration.LoadConfiguration(FederationConfigurationElement element)
at System.IdentityModel.Services.FederatedAuthentication.CreateFederationConfiguration()
at System.IdentityModel.Services.FederatedAuthentication.get_FederationConfiguration()
at System.IdentityModel.Services.HttpModuleBase.Init(HttpApplication context)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
Exception has been thrown by the target of an invocation.
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
at System.IdentityModel.Configuration.TypeResolveHelper.Resolve[T](ConfigurationElementInterceptor customTypeElement, Type customType)
The farm is unavailable.
at Microsoft.SharePoint.Administration.Claims.SPSecurityTokenServiceManager.get_Local()
at Microsoft.SharePoint.IdentityModel.SPChunkedCookieHandlerV2..ctor()
Request information:
Request URL: URL of web app
Request path: /
User host address: Requestor's IP
User:
Is authenticated: False
Authentication Type:
Thread account name: DOMAIN\PoolAccount
Thread information:
Thread ID: 92
Thread account name: DOMAIN\PoolAccount
Is impersonating: False
Stack trace: at System.IdentityModel.Configuration.TypeResolveHelper.Resolve[T](ConfigurationElementInterceptor customTypeElement, Type customType)
at System.IdentityModel.Services.CookieHandlerElement.ApplyCustom(CookieHandler& handler)
at System.IdentityModel.Services.CookieHandlerElement.GetConfiguredCookieHandler()
at System.IdentityModel.Services.Configuration.FederationConfiguration.LoadConfiguration(FederationConfigurationElement element)
at System.IdentityModel.Services.FederatedAuthentication.CreateFederationConfiguration()
at System.IdentityModel.Services.FederatedAuthentication.get_FederationConfiguration()
at System.IdentityModel.Services.HttpModuleBase.Init(HttpApplication context)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
Custom event details:
有没有人能给予一条好建议--还能去哪里找呢?
1条答案
按热度按时间tv6aics11#
您可能需要在SharePoint配置数据库中配置应用程序池帐户的权限。应用程序池帐户应具有SPDataAccess角色和WSS_CONTENT_APPLICATION_POOLS角色。使用场帐户以外的其他帐户安装SharePoint时,通常会发生这种情况。