get user permission in sharepoint 2010 - sharepoint-2010

I want to get the user permissions in sharepoint 2010, the equivalent of this 2013 version:
/_api/web/lists/getbytitle('')/getusereffectivepermissions
or this:
http://aissp2013/sites/Team/_api/web/lists/getbytitle('L2')/EffectiveBasePermissions
or something similar to it

Related

Visual Studio 2010 Cannot save changes "Access To the Path is denied"

I actually read some answers to a similar question, but the suggestions did not help very much.
I have this VM with a 2010 VB application I need to configure some methods and make changes into the config files. It does not work as I get Access to the path is denied. My project is saved in D drive, and I had followed this link and changed the local security settings, but did not help.
I'm just running out of new idea. I'm local admin on this Windows server 2008 R2.
Visual Studio 2010 is stupid, it seems when one start it it does not understand that the user has admin rights unless you start it form the "Start Menu" => right click and start it as admin.
In my case I was starting the solution from the directory where it was stored, and when right click I don't get the option to start it as admin.

ms access , the expression you entered has a function name that microsoft access can't find

i have a 2007 ms access application , and it is working fine between multiple computers, but now we have a new pc that joined the network and it is running with windows 10 , and has ms access 2013 installed, and when i try to use the application in that new pc, i am geting the above error (2950), and i have tried the following solutions :
setting a trusted path for my db.
using compact and repair the database. but it did not work
so, if any idea i will be very thankful..
I recently did some testing with macros on a Windows 10 machine and had to change the following in the code:
OLD Provider=Microsoft.Jet.OLEDB.4.0;
NEW Provider=Microsoft.ACE.OLEDB.12.0;
to get our macros to work............

SP 2010 migration to SP 2013 does not show webpart

I migrated SP 2010 site collection to my new SP 2013 using db backup process from here. Site is working fine but the custom web parts I created in SP 2010 is not visible in SP 2013. Below error is shown in place of my web part.
[Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type DemoSharePointUserControl.LyncWebPart.LyncWebPart, DemoSharePointUserControl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3656b399b713ff03 could not be found or it is not registered as safe. Correlation ID: 2d9c179c-2f58-5051-5762-87aea7d1d9ef]
How can I solve it??
Rohit
Looks like the "safecontrols" directive is now missing from web.config file. Either re-deploy the solution which contains the feature of this web part or add it manually (not suggested on live servers)
There are number of Commercial content migration tools that migrate from sharepoint 2010 to 2013. Some them are metalogix,Tzunami and other. I am using tzunami tool which migrate webpart and other content.

Error when start new SharePoint project in visual studio 2010

I am a new administrator to a SharePoint farm and I want to start developing web-parts for our sites.
In our company we have installed SharePoint 2010 on Windows Server 2008 R2.
And we have installed Microsoft visual studio 2010 on that server.
We also have Microsoft SQL server management studio installed in the same server.
In my computer (Windows 7 professional), I have used remote desktop connection to access that server.
From SharePoint central administration, I have created new application, new site collection and new site.
I started VS with admin rights.
From File => New => Project =>Visual basic => SharePoint =>2010 => Empty SharePoint project => ok
Then I got a dialog box asking me to enter the local site that I want to use for debugging.
I entered: "http://sharepoint:21029/team1/"
I chose deploy as a farm solution checkbox.
Click Validate.
The problem is:
When I click Validate, I get the following error:
Cannot connect to the SharePoint site: "http://sharepoint:21029/team1/" Make sure that the Site URL is valid, that the SharePoint site is running on the local computer, and that the current user as the necessary permissions to access the site.
I made a lot of searches on the internet and finally I found this link:
http://www.sharemuch.com/2010/03/19/resolving-vs-2010-solution-deployment-issues-for-sharepoint-2010-projects/
When I tried to solve my problem as described in the previous link, I could not find the following databases:
SharePoint_Config
SharePoint_AdminContent_[guid]
SharePoint Site Content DB
Why I could not find the databases in the SQL Management Studio?
And why I get the error?
I want to start developing web-parts in visual studio... Any help please!!
Thank you
I got the solution finally :)
I found this critical in Event Viewer:
SQL database log in for 'SharePoint_Config' on instance 'sharepoint' failed.
I did the following steps and it solves my issue and I can now connect visual studio to my SharePoint site successfully ^_^
Grant correct permissions to the database access account
To resolve this issue, assign the database access account and then verify that the account has correct permission in SQL Server.
To assign the database access account:
On the Central Administration Web page, on the Quick Launch, click Security, and in the General Security section click Configure service accounts.
In the Credential Management section, in the upper drop-down list click the correct Web application pool for your Web application.
In the Select an account for this component drop-down list, click the domain account with which you want to associate this Web application pool, or click Register new managed account to associate a new domain account with this application pool.
Click OK to save changes.
Thank you all
What is team1? a sub site?
Try using the root site collection:
http://sharepoint:21029/
If you install sp in standalone mode read here about the connection string because sp uses an embedded edition of SQL server

Migrating MOSS 2007 to sharepoint 2010 giving the error "Site collection could not be restored"

I am trying to migrate MOSS 2007 to sharepoint 2010 and I got the error while restoring the backup. The steps I followed are
I have the back up file and all solution pakcages from MOSS 2007.
I have a brand new server setup with sharepoint 2010 and Sql server 2008(64 bit) and windows server 2008 (64 bit).
3.I have created a new web application and new site collection.
4.Successfully Deployed the solution packages using powershell command.
5.trying to restore the backup and got the error
Restore-SPSite: THe site collection could not be restored, If this problem persists please make sure the content databases are available and have sufficient free space.
CAn anyone help me how to resolve this. I tried following some suggestions I got through google, but nothing worked for me.
Thanks
You can't directly restore the moss2007 backup to sharepoint 2010. You need to restore it back to SharePoint 2007 and then migrate it. If you have a database backup of the content database, then you could follow the steps given:
Take the backup of the content database from the SharePoint 2007
database server.
restore it to the database server of the 2010 environment.
Run the cmdlet Test-SPContentDatabase –Name -WebApplication using powershell to make sure that all the required dependencies are available on the 2010 server.
create a new web application on the 2010 server and add the content
database to it. upgrade the visual look of the web application by
doing to the site settings.
I hope this will help you out.