Recently I faced this problem. It took me a while to understand where did I falter.
One of my client was running a Membership Management/Subscription software developed by me. Data was saved in an Access File, as it was a standalone application. Soon, his requirement changed. He needed the data to be available globally. Time was scarce, so I decided against developing a web-application and just convert the Access database to MySql and host it on a server. I did all the modifications inside the code to suite my purpose. The goal was to let him have the rich client experience with the data available online. Application setup would also be available online for him to download, install and run it where-ever(windows machine) he would want to.
After completing the code transformation, I got stuck at this point. This error was staring at me blankly - the type initializer for <Module> threw an excpetion, with HRESULT:0x8004294F as a warning.
I tried searching for it online but couldn't pinpoint the exact problem. After a lengthy session of hair-pulling, I decided to encase the problematic code in the try catch bracket. And voila, the problem was related to Mysql.
I deduced that it must be related to MySql connection. I had saved the connection string in the Application settings string. It was for oledb connection type and not for MySql. So, I replaced the original connection string with the appropriate connection string for my MySql Database.
Thus, I solved the problem.
Hope, you would get some idea out of my experience and save your hair which maybe already scarce if you are seriously into programming.
Shameless Advertising - I am an IT consultant Developing Applications (Desktop/Web), Designing Websites, Customizing Tally.ERP 9, Providing Corporate IT Training, and Expensive but well worth it Computer AMC to Corporate Houses.
Niraj Kumar
Adore Foundation
+91-9874983989
One of my client was running a Membership Management/Subscription software developed by me. Data was saved in an Access File, as it was a standalone application. Soon, his requirement changed. He needed the data to be available globally. Time was scarce, so I decided against developing a web-application and just convert the Access database to MySql and host it on a server. I did all the modifications inside the code to suite my purpose. The goal was to let him have the rich client experience with the data available online. Application setup would also be available online for him to download, install and run it where-ever(windows machine) he would want to.
After completing the code transformation, I got stuck at this point. This error was staring at me blankly - the type initializer for <Module> threw an excpetion, with HRESULT:0x8004294F as a warning.
I tried searching for it online but couldn't pinpoint the exact problem. After a lengthy session of hair-pulling, I decided to encase the problematic code in the try catch bracket. And voila, the problem was related to Mysql.
I deduced that it must be related to MySql connection. I had saved the connection string in the Application settings string. It was for oledb connection type and not for MySql. So, I replaced the original connection string with the appropriate connection string for my MySql Database.
Thus, I solved the problem.
Hope, you would get some idea out of my experience and save your hair which maybe already scarce if you are seriously into programming.
Shameless Advertising - I am an IT consultant Developing Applications (Desktop/Web), Designing Websites, Customizing Tally.ERP 9, Providing Corporate IT Training, and Expensive but well worth it Computer AMC to Corporate Houses.
Niraj Kumar
Adore Foundation
+91-9874983989
Comments