Saturday, June 25, 2011

Web Resource Utility

Hi,
 To update Javascript files in CRM 2011 two option available.
1. CRM solution, add remove, update web resource
2. Web resource Utility

Web Resource Utility is the faster way to update JS in CRM 2011.

After connect to crm need
1. Create a new Package. each package contain root folder
2. Define root Path : JS files location
3. The first grid view the list with Js files. select 1-2 files and press "Add Files to web resource"
4. Upload All button upload all the files from the second grid.
5. Upload Selected upload only the selected files

After this step user doesn't need to publish the files because it's done.

Enjoy,
Rami

Tuesday, June 21, 2011

Failed to delete or copy DLL from GAC- Global Assembly Cache

Many times I try to delete file from GAC

Make the next instructions to solve this action:

1.     Open Regedit,

2.       Browse to HKLM\Software\Microsoft\Fusion.

3.       Add a REG_DWORD value named 'DisableCacheViewer'; set it to 1.

4.       Open an Explorer window and type in C:\WINDOWS\assembly\GAC_MSIL\

Open GAC (c:\windows\assembly\msil and copy the relevant file and remove
after finish change 'DisableCacheViewer' to 0


Good luck
Rami Heleg.

Friday, June 17, 2011

Server throw exception: SecLib::CrmCheckPrivilege failed. Returned hr = -2147220960 on

Hi,
Sometimes i get error messages on server side:

<error>
   <code>0x80040220</code<
   <description>
    SecLib::CrmCheckPrivilege failed. Returned hr = -2147220960 on UserId: 59d6a36f-641d-e011-a5f3-00215aec973e and PrivilegeId: 4533fc7e-76d3-44cf-8f6e-74e1efe84c51
   </description<
   <type>Platform</type>
  </error>


The reason of this message is missing Privilege to make the action.
The solution is:

1. Run sql query:
Select domainname from systemuser where systemuserid ='{UserId}'
 this sql return for which user missing role for CRUD entity

2.
 SELECT     * FROM         PrivilegeBase WHERE    PrincipalId = '{GuidFromErrorMessage}'
return the action that the user failed to do.
now the next step is to change role permission/privilege.

open CRM 4/2011 select user - > role -> search the entity and define the missing permission

Thanks,
Rami Heleg.
aa