Cum să Debug adunări Feature receptorul în Visual Studio – MOSS 2007

Dacă încercați să activați funcția folosind comanda stsadm nu veți fi capabil pentru a depana ansamblurile receptor caracteristica.

Deschideți colecția site-ului caracteristicile în

Site Oferte - & gt;

Setări site - & gt;

Modificare Toate setările site-ului - & gt;

Administrare colecție de site - & gt; Caracteristici de colectare site-ului

Atașați procesul w3wp.exe în Visual Studio. Locul puncte de întrerupere. […]

Cum se forţează MOSS 2007 Locuri de munca timer pentru a executa

Use the Following stadm command to force the timer jobs jobs to execute. no need to wait for the interval to execute the timerjobs. stsadm.exe -o execadmsvcjobs

Programmatically Add User to SharePoint Group

To assign the user to group in MOSS 2007

The following code will add the user to site and to specified group.

private void AddUser(string strSite,string webGroup) { SPSecurity.RunWithElevatedPrivileges(delegate() { utilizând (SPSite site = new SPSite(strSite)) { utilizând (SPWeb web = site.OpenWeb()) { Boolean allowUnsafeUpdate = web.AllowUnsafeUpdates; încercaţi { web.AllowUnsafeUpdates = true;

web.SiteUsers.Add(loginName, MailId, […]

Cele mai bune practici: Utilizarea de unica folosinta Windows SharePoint Services Obiecte

When am started program using sharepoint objects. I found little bit difficult to understand about the sharepoint objects lifetime and best approach to dispose it. I found the following MSDN article which helps me a lot to learn and understand about sharepoint objects disposal.

Refer it here