Wednesday, January 21, 2015

Want to know more about "CLRObject object not initialised"?

I recently had an experience and would like to share. When I was trying to upload product image to a product in Dynamics AX 2012. It returned with following error



Message "CLRObject object not initialised." was really misleading. I was debugging and as soon as it went to read WINAPI -> System.IO.CopyFile(*,*,*) it was always returning error as mentioned above.
In order to see what the actual thrown message is, I had to write custom code in copyFile method of WinAPI class (highlighted code is the code to display actual message)


So from above modification, I was able to see the more descriptive error which was


Now the actual message was related to un authorized access to the folder where it saves temp image files (selected on parameters form of document management). I went to that folder and assigned write permissions to domain users. There can be many reasons for this CLRObject error. However, making this change in code for debugging will let you quickly understand the actual pain.
Hope, this is helpful for you guys.

7 comments:

Anonymous said...

north face, true religion jeans, tn pas cher, oakley pas cher, michael kors, coach outlet, ralph lauren uk, michael kors, vanessa bruno, hollister, nike air max, true religion outlet, hermes, michael kors, coach purses, kate spade handbags, michael kors, michael kors outlet, nike air max, nike blazer, true religion jeans, converse pas cher, replica handbags, michael kors outlet, hogan, ugg boots, coach outlet, air force, mulberry, michael kors outlet, true religion jeans, burberry outlet online, new balance pas cher, ugg boots, north face, ray ban pas cher, hollister pas cher, burberry, michael kors outlet, nike roshe, ray ban uk, nike free run uk, sac guess, michael kors outlet, lacoste pas cher, vans pas cher, timberland, nike air max, abercrombie and fitch, lululemon

Anonymous said...

babyliss, insanity workout, mac cosmetics, hollister, converse outlet, hollister, valentino shoes, giuseppe zanotti, louboutin, reebok shoes, nike roshe, beats by dre, gucci, new balance, bottega veneta, nike air max, longchamp, soccer jerseys, north face outlet, ghd, nike trainers, chi flat iron, celine handbags, asics running shoes, jimmy choo shoes, nike huarache, lululemon, nike air max, ferragamo shoes, vans, wedding dresses, birkin bag, mcm handbags, mont blanc, abercrombie and fitch, baseball bats, instyler, ray ban, converse, oakley, p90x workout, timberland boots, iphone cases, north face outlet, hollister, herve leger, soccer shoes, nfl jerseys, vans shoes, ralph lauren

Anonymous said...

ugg,ugg australia,ugg italia, supra shoes, barbour, pandora charms, montre pas cher, moncler, canada goose, canada goose outlet, lancel, louis vuitton, sac louis vuitton pas cher, moncler, pandora charms, swarovski crystal, wedding dresses, ugg boots uk, pandora jewelry, replica watches, moncler, canada goose uk, juicy couture outlet, coach outlet, links of london, canada goose, canada goose outlet, doudoune canada goose, canada goose, barbour jackets, bottes ugg, swarovski, moncler outlet, marc jacobs, moncler, louis vuitton, canada goose, hollister, toms shoes, moncler, ugg pas cher, moncler, karen millen, louis vuitton, pandora jewelry, ugg,uggs,uggs canada, moncler, louis vuitton, juicy couture outlet, thomas sabo

3nod maka said...
This comment has been removed by the author.
3nod maka said...

تعلن شركات العنود انها كبري الشركات التي تعمل علي توفير افضل الخدمات المميزية في تنظيف خزانات مكة المركمة اي انها تعمل علي تنظيفها وعزالها من البكتيرا وكل تلك الخدمات مميزة وتوجد في اكبر شركة جلي سيراميك بمكة المكرمة فهي تعمل علي توفير الكثير من الخدمات المميزة ويمكنكم التمتع بها فيشركة تنظيف منازل بمكة والتي تعلم علي شركة تنظيف سجاد بمكة المكرمة التي تعمل جديا بافضل الطرق الحديثة في التنظيف ومميزة مكافحة العته بمكة المميزة في خدمات المكافحة

Anonymous said...

supreme clothing
jordan sneakers
golden goose sneaker
supreme outlet
fear of god essentials
palm angels
yeezy
giannis antetokounmpo shoes
kobe
off white clothingoutlet

Anonymous said...

goyard
kevin durant shoes
bape
yeezy
off white
nike off white
golden goose outlet
kd 12 shoes
kd shoes
supreme official