السبت، 16 نوفمبر 2013

Sharepoint:The password supplied with the username Domain\username was not correct. Verify that it was entered correctly and try again

This error occurs if there has been change of password of the account and same has not been updated in SharePoint.

To solve:
1- Log in as Administrator
2- Open Command prompt
3- Write the following
cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN
stsadm -o updatefarmcredentials -userlogin Domain\UserName -password newpassword

4- if get the following message "Operation completed successfully" Now reset IIS, then the problem solved and you will be able to create web application.

http://cloudytech.blogspot.com/2013/05/the-password-supplied-with-username.html

الجمعة، 25 أكتوبر 2013

Interview Question and Answers

1- what is the the difference between const and readonly in C#?
   •const fields has to be initialized while declaration only, while readonly fields can be initialized at declaration     or in the constructor.
   •const variables can declared in methods ,while readonly fields cannot be declared in methods.
   •const fields cannot be used with static modifier, while readonly fields can be used with static modifier.
2- What is Boxing in C#?
   converting a value type to the reference type.
3- what is an Assembly?what is its type?

الخميس، 26 سبتمبر 2013

The permissions granted to user 'domain\username' are insufficient for performing this operation. (rsAccessDenied)

To Solve this problem do the following:
1- Run IE as Administrator.
2- Open Reporting Service configuration Manager.
3- Click Report Manager URL and open this URLs.
4- Click Folder Setting.
5- Add New Role Assignment with Selecting all roles.
 Now this message will not appeare again.

الأربعاء، 25 سبتمبر 2013

How to call a Dialog in CRM 2011 using Javascript

1- Find the ID of Dialog by Opening the Dialog and press F11 to get the URL. In the URL we could find out the ID of the Dialog.

http://server:5555/Org/sfa/workflow/edit.aspx?id=%7b91871DE4-8D25-4E3C-8772-2FE8605A5637%7d

2- write the following script to open Dialog:
function OpenDialog()
{
var dialogId = "%7b91871DE4-8D25-4E3C-8772-2FE8605A5637%7d";
 var returnValue = showModalDialog("/" + Xrm.Page.context.getOrgUniqueName() + "/cs/dialog/rundialog.aspx?DialogId=" + dialogId + "&EntityName=lead&ObjectId=" + Xrm.Page.data.entity.getId());

//Optional:To save and close entity form as soon as the dialog is closed.
Xrm.Page.data.entity.save("saveandclose");
}