Saturday, April 24, 2010

installation of cab was unsuccessful on HP 214

Well I was trying to install a simple cab in my pocket pc hp 214 and I was getting the annoying message installation of cab was unsuccessful. I searched in google for hours, I found some intresting articles about security and deployment in pocket pc devices like http://www.codeproject.com/KB/mobile/signcode.aspx, but my problem was not solved. So I started building the cab from the ground up, and I noticed that even empty it couldn' t be deployed. After a lot I found the source of the problem. The property value of Manufacturer was http://www.netserve.gr (as I originally wanted) but this name was not valid for deployment (I still dont know why).

I changed property to www.netserve.gr and the cab deployed successfully to the device.

Thursday, April 15, 2010

Crm Integration Using SSIS

A common situation in Microsoft Dynamics CRM is to integrate data from a foreign system. In order to do that we must read data from the external source and import then using custom rules inside CRM using the webservice. An easy approach is to use SQL integration services. The tricky part of this approach is how to consume the CRM web service inside Ingration Services. The article below shows an easy way to do that.

http://blogs.msdn.com/crm/archive/2008/05/07/integrating-crm-using-sql-integration-services-ssis.aspx

Tuesday, April 6, 2010

How to retrieve GUID of current Active Directory user

If you want to find the guid of current active directory user write the code below to a windows host file and execute it

' NameTranslate constants
Const ADS_NAME_INITTYPE_GC = 3
Const ADS_NAME_TYPE_NT4    = 3
Const ADS_NAME_TYPE_GUID   = 7




' Determine the NetBIOS name of the domain and the NT name of the current user.
Set objNet = WScript.CreateObject("WScript.Network")
strNT4Name = objNet.UserDomain & "\" & objNet.UserName


' Use the NameTranslate object to convert the NT user name to the GUID
Set objNameTranslate = WScript.CreateObject("NameTranslate")


' Initialize NameTranslate by locating the Global Catalog.
objNameTranslate.Init ADS_NAME_INITTYPE_GC, ""


' Use the Set method to specify the NT format of the object name.
objNameTranslate.Set ADS_NAME_TYPE_NT4, strNT4Name


' Use the Get method to retrieve the GUID string.
WScript.Echo objNameTranslate.Get(ADS_NAME_TYPE_GUID)

Problem after deleting Active Directory User Account

I found my self in a strange situation after disabling a user from Microsoft Dynamics CRM 4.0 and the deleting the user from Active Directory. I couldn’t enable again the user because there was no Active Directory User associated with it. I tried many solutions to bypass this problem but they did not worked for me. The only solution that worked was to remove the company from the deployment (I made a backup first, just in case) and then I import the same company. When importing a company Microsoft Dynamics CRM 4.0 make new associations of crm users with active directory users, so I matched the disabled user with a new account of active directory.