With remote user development, if you are not logged on by the administrator, you will be prompted to fail when you deploy SharePoint solutions using vs2010:
An error occurred in the deployment step Recycle IIS application pool: The local SharePoint server is not available. Please check that the server is running and connected to the SharePoint server farm.
Error 1 Deployment Step "Recycle IIS application Pool" error occurred: <nativehr>0x80070005</nativehr><nativestack></nativestack> Access denied.
Workaround:
1,
Open the Sahrepoint SQL Server database, add users----security----
Configure this user mapping:
Add user permissions to db_owner for the following databases
Sharepoint_config
SHAREPOINT_ADMINCONTENT_[GUID]
SharePoint Site Content DB
2. Add the current login account to the site collection administrator
When deploying EventHandler, the following error may occur because a specific list of listURL is specified, and if the list does not exist:
An error occurred in the deployment Step "activation feature": <nativehr>0x80070002</nativehr><nativestack></nativestack>
<?xml version= "1.0" encoding= "Utf-8"?> <elements xmlns=
"http://schemas.microsoft.com/sharepoint/" >
<receivers listurl= "lists/mylist" >
<Receiver>
<Name> eventreceiver1itemdeleting</name>
<Type>ItemDeleting</Type>
<assembly>$ Sharepoint.project.assemblyfullname$</assembly>
<Class> Cbw.wwp.worflow.bar.eventreceiverproject.eventreceiver1.eventreceiver1</class>
<SequenceNumber >10000</SequenceNumber>
</Receiver>
</Receivers>
</Elements>
You can create this table.