SharePoint 2013 Developement Giriş – Hatalar

Merhaba Arkadaşlar,
SharePoint Development’a ufaktan bir giriş yaptım. İnşaAllah muvaffak olurum.
Bu işlere başlarken aldığım bazı hataları ve çözümleri sizlerle paylaşmak isterim. Her zaman ki gibi benim yaşadığım sıkıntıları sizlerin yaşamamanız.

Hata 1

The specified command ID ‘Microsoft.VisualStudio.SharePoint.Commands.GetServerVersion’ does not match any available SharePoint remote commands. Parameter name: commandId
Çözümü:
  1. VS admin olarak açılmalı
  2. VS açılırken kullanılan oturum hesabı SharePoint_Config üzerinde db_owner sahibi olmalı (sp_admin)

Hata 2

Error occurred in deployment step ‘Install SharePoint Add-in’: Sideloading of apps is not enabled on this site
Çözümü: Developer Features aktif edilmeli
  1. Enable-SPFeature e374875e-06b6-11e0-b0fa-57f5dfd72085 –url http://sp.contoso.com

Hata 3

Error occurred in deployment step ‘Install SharePoint Add-in’: Access denied. You do not have permission to perform this action or access this resource
Çözümü:
  1. Site Owners’a VS’yi çalıştırdığın kullanıcıyı ekle

Hata 4

Error occurred in deployment step ‘Install SharePoint Add-in’: Failed to install SharePoint Add-in. Please see the output window for details.
@”Error 1
CorrelationId: aab9567c-9985-4468-b2ce-c87e5749370d
ErrorDetail: The content database on the server is temporarily unavailable.
ErrorType: Transient
ErrorTypeName: Intermittent
ExceptionMessage: Deployment failed in host web http://portal.contoso.local for app SharePointAddIn1/1f085922-4d4e-4d26-83a9-fb1eeee7db51. Microsoft.SharePoint.SPException: ClientWebPart1 ClientWebPart. ‘1’ is an unsupported value for the WebBrowsable attribute on the Property element.
Benim gibi, deliler gibi saatlerce “The content database on the server is temporarily unavailable” hatası ve çözümü için debelenmeyin. Benim gibi detayları incelemeye üşenen insanlar için adamlar detay vermişler. ExceptionMessage kısmında kodumda yer alan hatayı gösteriyor. Elements.xml içerisindeki WebBrowsable değeri “1” değil true olmalı.
Görüşmek üzere…
 

Leave a Reply

Your email address will not be published. Required fields are marked *