Saturday, September 7, 2013

Cannot initialize data bindings - SOLUTION

You are getting error
Cannot initialize data bindings



Here is the solution.

make sure msstdfmt.dll is available in system32 folder. if not get it from the files of the application you are using and copy it there.

and go to command prompt and register the dll by type: 
regsvr32.exe msstdfmt.dll

Note: You may select Run as administrator while running command prompt.

Component 'FM20.DLL' or one of its dependecies not correctly registered - SOLUTION

You are getting error
Component 'FM20.DLL' or one of its dependencies not correctly registered: a file is missing or invalid



Here is the solution.

Just Install the .net framework.

If you have installed it, update it to the new version

or re-run the installation and select "repair" option if it is there.

and the problem will be solved.


Wednesday, September 4, 2013

Using phpMyAdmin for multiple hostnames or databases


I was looking into it and tried to copy paste the below lines in config.inc.php in the phpmyadmin root folder again and again till the number of hosts i wanted to access through PHPMyAdmin. And HURRRAH, it worked.
I Just changed the value of $cfg['Servers'][$i]['host'] to the different host-names in each copy (you can also change the comments for your reference).
/*
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';  // change this to your host name of DB
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;

Running command remotely / registering dlls remotely

To remotely register a dll or to execute any command, you can use the psexec utility which is freely available on the microsoft website at below link.
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

Extract the downloaded file and run the below command from command line.



psexec \\counter-9-pc,counter-8-pc -u administrator regsvr32.exe /s c:\windows\system32\MSDBRPTR.DLL

you can use only one computer or multiple the above is using two computers
the below example is for one computer.

psexec \\counter-9-pc -u administrator regsvr32.exe /s c:\windows\system32\MSDBRPTR.DLL


I already copied the dll file to the target machine. you must do it too.

Also you can run the command on mulitple computers by listing the names of the computer in a file and referring the file as:
psexec @computer.txt -u administrator regsvr32.exe /s c:\windows\system32\MSDBRPTR.DLL

Solution for "run-time error '713' - Application-defined or object-defined error"

Getting error as "

"run-time error '713' - Application-defined or object-defined error"


Solution:

find the file "MSDBRPTR.DLL" with your application, copy it to windows\system32 folder and register it.

go to start type cmd,  right click it and select run as administrator,

type
  regsvr32.exe c:\windows\system32\MSDBRPTR.DLL


restart the application.