Saturday, May 5, 2012

Could not load file or assembly ‘BasicFrame.WebControls.BasicDatePicker′ or one of its dependencies. An attempt was made to load a program with an incorrect format.


Whilst setting up an application to run on my local machine (running Vista 64bit) I encountered this error:

Could not load file or assembly ‘ BasicFrame.WebControls.BasicDatePicker ′ or one of its dependencies. An attempt was made to load a program with an incorrect format.


Obviously, the application uses  BasicFrame.WebControls.BasicDatePicker , but it would seem that the version we are using, is only the 32bit version.
To resolve this error, I set my app pool in IIS to allow 32bit applications.
Open up IIS Manager, right click on the app pool, and select Advanced Settings (See below)

Set IIS AppPool Advanced Settings
Then set “Enable 32-bit Applications” to True.
Enable 32-Bit Applications

2 comments:

Yony said...

Gracias.

Unknown said...

Thanks so much!

I also found that downloading the latest version from basicdotpicker.com fixed the problem for me as well.