How to create Reference file in C#

Asked By 0 points N/A Posted on -
qa-featured

Hi all,

I am having trouble in using to my own defined library, I successfully reference my .dll file and used its all classes.

Now the problem starts when i run the program, actually the program failed to load that .DLL file it Popup with the following message.

The Module "mac.dll" failed to load.

Failed

The Module "mac.dll" failed to load.

Can anybody help me regarding this problem?

SHARE
Answered By 0 points N/A #116940

How to create Reference file in C#

qa-featured
Since you created your own .dll:
 
1st: Check for bugs in program.
 
2nd: Make sure you have no viruses on your machine (use avast boot scan).
 
If you are sure none of the above is not the problem then do this.
 
Follow these methods:
 
Method 1: Register the required Dao360.dll file and the Msado15.dll file.
 
You may have to register the Dao360.dll file and the Msado15.dll file by using the Regsvr32.exe program. To do this, follow these steps:
 
  • Click Start, and then click Run.
  • In the Run dialog box, type the following commands in the Open box, and then click OK:
  • Regsvr32.exe "<<Dao360.dll_Path>>"
  • Regsvr32.exe "<<Msado15.dll_Path>>"
  • The <<Dao360.dll_Path>> placeholder is the absolute path of the Dao360.dll file.
  • The<<Msado15.dll_Path>> placeholder is the absolute path of the Msado15.dll file.
 
The following examples show how you may specify an absolute path: 
 
  • Regsvr32.exe "C:Program FilesCommon FilesMicrosoft SharedDAODao360.dll"
  • Regsvr32.exe "C:Program FilesCommon FilessystemadoMsado15.dll"
  • If the Dao360.dll file is successfully registered, you receive a message that is similar to the following message:
  • DllRegisterServer in C:Program FilesCommon FilesMicrosoft SharedDAODao360.dll succeeded.
  • If the Msado15.dll file is successfully registered, you receive a message that is similar to the following message:
  • DllRegisterServer in C:Program FilesCommon FilessystemadoMsado15.dll succeeded.
 
Click OK.
 
Method 2: Install the latest version of MDAC.

Related Questions