Am getting error when I tried to access the
SPSite object in ISE Window:
My environment version : SP 15.0.4569.1506 Installed
add-pssnapin "MICROSOFT.SHAREPOINT.POWERSHELL" $msite= get-spsite "http://sharepointapp100:1234/sites/Demo" $msite get-spsite : Cannot access the local farm. Verify that the local farm is properly configured, currently available, and that you have the appropriate permissions to access the database before trying again. At line:6 char:10 + $msite= get-spsite "http://sharepointapp100:1234/sites/Demo" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (Microsoft.Share...SPCmdletGetSite:SPCmdletGetSite) [Get-SPSite], SPCmdletException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetSite
While installing SP,I did not configure SQL server separately, its assumed that, SP has SQL Express by default.
Please correct me, whether I have done anything wrong like, I have to install SQL 2012 ENT.Edition before installing SP 2013.
When I installed VS 2013 on this machine and tried to connect to a site, it shows error.And I am unable to create a
SPSITE object in the
.ascx.cs file. though the visual web part has all the SP references.