5/15/13

Windows 8 'You do not have permission to access this folder'

I just copied my pictures from my mobile device to my hard drive, and wanted to see my pictures.
Its seems the simplest task to do, but when I clicked on the picture and got the following error:  'You do not have permission to access this folder', very weird because Its my own PC and of course I am an administrator!
My first try to solve this was, I clicked on folder Properties-> Security and added 'Everyone' with full access permissions for this folder, for my surprise I got another error 'Failed to enumerate objects in the container. Access is denied.'
So I tried to google about these two errors and found many posts and blogs but no one help me.
Finally when I right clicked on the folder I noticed 'Take Ownership' option, One click on it(some windows command run automatically for a few seconds) and just like a charm I got access to all my pictures.
I don't know what is the purpose of this new option in Windows 8 but when things works you can't argue with that. Good Luck.


8/5/11

Screenshot shortcut

This week I found a new way to make a simple screenshot, all of you know the PrtScr key in the keyboard, and how to use it (just paste it to a paint program). The problem with the PrtScr that it prints the entire screen, but what we can do if we have many windows open and we need the screenshot of one specify window?

The native way to do it is simply edit it in the paint programs, but for this purpose we have a 

Alt + PrtScr shortkey.

I use it about a week and its definitly one of the most useable shorstcuts. 

3/31/11

Using CrmMoney in CRM 4.0 is Evil

When you need to use CrmMoney Class in CRM 4.0 I recommend that to use simple int instead.
Everything works fine until from some reason you need to change this field, When I deleted this field and created a new one with the same name but with other type, I get an error message "Microsoft.Crm.ObjectModel.MultiCurrencyPlugin Error".

I tried a lot of solutions that I found over the web but none of them helps me, So I deleted the entity and the connections, Create a new one and all works right.

So the conclusion is if you not must  use CrmMoney NOT use it!!!

3/7/11

CRM 2011 First Steps - AutoNumber

Last week someone asked me if the CRM 2011 already contains a support for AutoNumber.

Background:
AutoNumber is the basic method to give unique number to a record in DB, when a record saved in DB we can add to a record a unique number usually the new number will be bigger from the previous, in SQL this operation called auto increment and automatically done by the DB.

After a quick scanning the new SDK I found that in CRM 2011 there is no out of the box support for the autonumber just like in CRM 4.0, however CRM 2011 supports autonumber just for a few entities as the picture display.

So the solution is the same just like in CRM 4.0, create a plugin register it on 'pre' operation for all entities, create a new custom entity, you can call it 'autonumber' and save there the max last number, every time when a plugin executes add one number and save it.