Các lỗi trên máy chủ SharePoint 2010 khi triển khai lớp dậy M10175A SharePoint Application Development


 

  1. Lỗi khi deploy gói solution Lab02

“Deploy Solution to Site configured with Claims-based Authentication”

This is a simple and quick post to provide a solution for developers working against sites configured with claims-based authentication and receiving an access denied error while trying to deploy solutions via Visual Studio. The exact error is:

Error occurred in deployment step 'Recycle IIS Application Pool': <nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied.

The problem here is that Visual Studio is trying to access the site, specified in the project’s Site URL property, using the currently logged on windows account. As the site has been configured for claims-based authentication only, this process causes the access denied error to be thrown.

A quick fix for the development environment is to explicitly add your user account to the Web Application. Doing this will allow the Visual Studio process to recycle the application pool and deploy the solution package.

To do this, bring up the Central Administration site and navigate to the Manage Web Applications page (/_admin/WebApplicationList.aspx). Click on the web application that hosts the site you are trying to deploy to and then click the User Policy ribbon item. Finally, simply add your windows account to the list of users with the Full Control permission.

 

2. Lỗi khi deploy Lab02 đưa Features và Package lên SharePoint 2010 Solution:

Error occurred in deployment step ‘Activate Features’: A timeout has occurred while invoking commands in SharePoint host process.

I getting the following error when deploying a Sharepoint 2010 solution via Visual Studio 2010:

Error occurred in deployment step ‘Activate Features’: A timeout has occurred while invoking commands in SharePoint host process.

Solution

Increase the timeout that Visual Studio waits for SharePoint to deploy a feature

1. Open regedit.

2. Go to path [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\SharePointTools]

3. Create a new DWORD key called ChannelOperationTimeout.

4. Set the value you want. The value is a timeout in seconds. Eg: 240 for 4 minutes

Remind: Do not forget to restart your Visual Studio to take effect

About thangletoan

Hallo Aloha

Posted on 20/01/2013, in Application Development, Công nghệ và Giáo dục, Chính sách CNTT, Microsoft, Microsoft SharePoint, Micrsoft SharePoint, ROBUSTA Training & Best Trainer, SharePoint 2010 and tagged . Bookmark the permalink. Để lại bình luận.

Gửi phản hồi

Mời bạn điền thông tin vào ô dưới đây hoặc kích vào một biểu tượng để đăng nhập:

WordPress.com Logo

Bạn đang bình luận bằng tài khoản WordPress.com Log Out / Thay đổi )

Twitter picture

Bạn đang bình luận bằng tài khoản Twitter Log Out / Thay đổi )

Facebook photo

Bạn đang bình luận bằng tài khoản Facebook Log Out / Thay đổi )

Google+ photo

Bạn đang bình luận bằng tài khoản Google+ Log Out / Thay đổi )

Connecting to %s

%d bloggers like this: