vs2010部署sharepoint解決方案失敗

來源:互聯網
上載者:User

使用遠端使用者開發,如果不是administrator登入,使用vs2010部署sharepoint的解決方案的時候會提示失敗:

 

部署步驟“回收 IIS 應用程式集區”中出現錯誤: 本地 SharePoint 伺服器不可用。請檢查該伺服器是否正在運行並串連到 SharePoint 伺服器陣列。

錯誤 1 部署步驟“回收 IIS 應用程式集區”中出現錯誤: <nativehr>0x80070005</nativehr><nativestack></nativestack>拒絕訪問。

 

解決方案:

 

1、

開啟 SahrePoint的SqlServer資料庫,伺服器----安全性----添加使用者
配置該使用者映射:
為以下資料庫添加使用者權限為db_owner
SharePoint_Config
SharePoint_AdminContent_[guid]
SharePoint Site Content DB

 

2、在網站集合管理員添加當前登入者帳號

 

在部署eventhandler的時候,由於指定了特定的列表ListURL,如果列表不存在,可能會發生如下錯誤:

部署步驟“啟用功能”中出現錯誤: <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>

建立此表就可以了

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.