Category Archives: C#

Error Message: Retrieving the COM class factory for component with CLSID {C5CBD7B2-490C-45F5-8C40-B8C3D108E6D7} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) ota

If you are getting this error, you are probably using a x64 bit machine. To fix this error, Right-click the project node in Solution Explorer and click Properties. Click on Configuration Properties.Click on Configuration Manager. click on New under Platform … Continue reading

Posted in C# | Tagged , , | Leave a comment

Note: I am assuming you have a form created in C#. 1) Create a Rich Text Box on the form. Right click on the box and open Properties. Under Design , change the name to: path (or whatever you want … Continue reading

Posted in C#, QC, Useful Stuff | Leave a comment

Infopath multiple selection check boxes

I had an issue at work where we had to create a checkbox section with some values in Infopath. Whatever a user checks will get sent to the database separated by a semicolon. We decided to use multiple-selection list boxes … Continue reading

Posted in C#, infopath | Tagged , , , | Leave a comment

Extract Data from XML using C#

This code will take data from InfoPath document (xml) and print it out. You will need to modify it for your needs. //Import in the xml bool flag = true; //to stop the while loop //load xml file StreamReader xmlStream … Continue reading

Posted in C#, QC | Tagged | Leave a comment

Automatically add requirements to Quality Center using C#

This is my new project at work. I have to take requirements from an InfoPath document and export them to QC11 (ALM). There are a lot of documentation for VB but not much for C# (which is why I am … Continue reading

Posted in C#, QC, Uncategorized | 2 Comments