Problem in registering WMI provider dll

G

Guest

Hello,

Right now I'm working in .Net platform wherein I'm confronting a
problem in registering a WMI provider dll using VC.Net ATL project wizard. To
make it more vivid,

I'm able to register ( regsvr32 ) the dll in .Net installed systems. But
when I try to register the dll in a .Net less system ( Even if we install
..Net Framework ) , it doesn't work out.

Give me the exact procedure to accomplish the above said task.
 
P

Phil Wilson

You've probably not installed a dependent DLL. The .NET framework is almost
certainly irrelevant if you're building a C++ COM ATL project. You need (on
VS 2003) atl71.dll and probably msvcr71.dll too.
 
G

Guest

still the problem exist,after copying atl71.dll and msvcr71.dll in system32
fldr.
the error is like "Load Library (provider.dll)failed,The specified module
could not be found".There is no dependent DLL file for this DLL.
 
P

Phil Wilson

Well that message means that there is a missing dependent Dll. You said it
yourself - it works on some systems (most likely a development system with
every known Microsoft Dll on it!) and not on others. It It's just a matter
of figuring out what that dependency is.

Note that atl71.dll etc is VS 2003. With VS .NET it's atl70.dll etc.

See if this helps:
http://www.dependencywalker.com
 
G

Guest

Dear Phil Wilson,
Thanks for ur valuable suggestion,it is really helped me
lot. For my dll ,the dependency is msvcr71d.dll.

Regards,
Senthil Prabu R

Phil Wilson said:
Well that message means that there is a missing dependent Dll. You said it
yourself - it works on some systems (most likely a development system with
every known Microsoft Dll on it!) and not on others. It It's just a matter
of figuring out what that dependency is.

Note that atl71.dll etc is VS 2003. With VS .NET it's atl70.dll etc.

See if this helps:
http://www.dependencywalker.com

--
Phil Wilson [MVP Windows Installer]
----
Senthil Prabu said:
still the problem exist,after copying atl71.dll and msvcr71.dll in
system32
fldr.
the error is like "Load Library (provider.dll)failed,The specified module
could not be found".There is no dependent DLL file for this DLL.
 
P

Phil Wilson

Be aware that you're not supposed to redistribute the debug versions of
these Dlls.
--
Phil Wilson [MVP Windows Installer]
----
Senthil Prabu said:
Dear Phil Wilson,
Thanks for ur valuable suggestion,it is really helped me
lot. For my dll ,the dependency is msvcr71d.dll.

Regards,
Senthil Prabu R

Phil Wilson said:
Well that message means that there is a missing dependent Dll. You said
it
yourself - it works on some systems (most likely a development system
with
every known Microsoft Dll on it!) and not on others. It It's just a
matter
of figuring out what that dependency is.

Note that atl71.dll etc is VS 2003. With VS .NET it's atl70.dll etc.

See if this helps:
http://www.dependencywalker.com

--
Phil Wilson [MVP Windows Installer]
----
Senthil Prabu said:
still the problem exist,after copying atl71.dll and msvcr71.dll in
system32
fldr.
the error is like "Load Library (provider.dll)failed,The specified
module
could not be found".There is no dependent DLL file for this DLL.

:

Hello,

Right now I'm working in .Net platform wherein I'm
confronting a
problem in registering a WMI provider dll using VC.Net ATL project
wizard. To
make it more vivid,

I'm able to register ( regsvr32 ) the dll in .Net installed systems.
But
when I try to register the dll in a .Net less system ( Even if we
install
.Net Framework ) , it doesn't work out.

Give me the exact procedure to accomplish the above said task.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top