When i was creating SharePoint 2010 windows application on windows server 2008 R2 i got the following error ...
"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."
The reason for the error is my windows application's platform target is (by default) set to "x86" in application properties window.
but SharePoint applications runs on x64. so , i changed platform target to x64 or u can set to any cpu.
Then my application runs without any error.
"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."
The reason for the error is my windows application's platform target is (by default) set to "x86" in application properties window.
but SharePoint applications runs on x64. so , i changed platform target to x64 or u can set to any cpu.
Then my application runs without any error.
Thanks. This is awesome.
ReplyDeleteThanks...save a lot of time....:)
ReplyDelete