VS2010 Deployment SharePoint Solution failed

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.