Wednesday, March 26, 2014

Unable to find the requested .Net Framework Data Provider. It may not be installed. (Strategy type ConfiguredObjectStrategy, index 2)

We have a .Net web application using Oracle ODAC. When I deploy it, on certain servers I get

The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Data.Database,xxxxx]) failed:
Unable to find the requested .Net Framework Data Provider. It may not be installed. (Strategy type ConfiguredObjectStrategy, index 2)

xxxxx -> Stands for your db connection string.

I copied the following section from machine.config to my applications web.config, and that fixed it.

 C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config

 

Web.Config

Thursday, March 13, 2014

How to replace hard drive and keep operating system

Recently I decided to upgrade my primary hard disk from 128GB SSD to 240GB SSD. I did not want to re-install OS and all other applications.

I did some googling, and found a really cool freeware that lets you to clone your primary hard disk/SSD

In my case, I have a desktop, and the whole process took less than 30 minutes.

Install AOMEI Backupper its free (they could have chosen a better name).

Launch Disk Manager, and Identify your primary disk (that has OS). Note down the Disk Number and disk size. It will be helpful later to identify your source disk while cloning.



Now, lets gets your hands dirty. I opened my desktop, and connected my new 240GB SSD to a free sata and power plug. Your new hard disk will also show up in Disk Manager. Disk Manager will also prompt you to format, and I picked MBT option.

Now,Launch AOMEI Backupper, and pick Clone option. Almost 99% of the time, your new disk/SSD is NOT going to be an  exact match of an existing disk, So Pick Disk Clone instead of Partition Clone








In the next step, you need to pick the source disk to clone. You pick your primary disk that contains the OS.

In the third Step, pick the target/New disk/SSD and hit copy

Once it finishes, replace the old disk with new disk, and you are good to go.