Skip to content

This operation can be performed only on a computer that is joined to a server farm by users ……..

July 1, 2017

Error Message: This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database. To connect this server to the server farm, use the SharePoint Products Configuration Wizard, located on the Start menu in Microsoft SharePoint 2010 Products.

Issue Description:
In one of my SharePoint environment I start getting this error when browse site collection, it was working fine until yesterday. As per the error message I check all the permission for all the accounts on all databases including config database but no luck.

After several reboots, IIS resets and Googling, back to Event viewer I came across this warning mentioned below from source: ASP.NET. This warning at least has account name. I made sure that account specified in this warning has all the permissions needed but no luck.

Warning in Event Viewer: Event ID: 1309, Source: ASP.NET, Level: Warning
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/26/2017 3:11:03 PM
Event time (UTC): 6/26/2017 7:11:03 PM
Event ID: 1f56666ca7d249979903cbb7c1aa15de
Event sequence: 2
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1927342608/ROOT-3-131429778631987995
Trust level: Full
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\wss\VirtualDirectories\Contoso Home-80\
Machine name: ContosoMachine
Process information:
Process ID: 13012
Process name: w3wp.exe
Account name: DOMAIN\\AccountName
Exception information:
Exception type: InvalidOperationException
Exception message: This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database. To connect this server to the server farm, use the SharePoint Products Configuration Wizard, located on the Start menu in Microsoft SharePoint 2016  Products.
at Microsoft.SharePoint.Utilities.SPUtility.AlternateServerUrlFromHttpRequestUrl(Uri url)
at Microsoft.SharePoint.Administration.SPAlternateUrl.GetContextUri(HttpContext ctx)
at Microsoft.SharePoint.SPAppRequestContext.InitCurrent(HttpContext context)
at Microsoft.SharePoint.SPAppRequestContext.get_Current()

Solution:
If all steps mentioned above did not work for you try one more, Go to Central Administration > Security > Configure Managed Accounts> Edit the account mentioned in the warning> in my case it was app pool account  > check Change Password now > select the option Use Existing Password> enter the password and click OK. That’s it. 

If  your issue resolved feel free to leave a comment or let me know if any other solution. 

 

 

 

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: