Register COM dll in vista

Posted: 05-03-2006, 11:35 AM
Hi,

I created a COM dll server using VS.net 2003 on XP. The Regsvr works fine on
XP. Then I copy the whole project over to vista, and build it using VS.net
2005. Everytime I build the project, there is a great chance that an error
message will pop up "The specified module could not be found" when I try to
regsvr the binary. Only once in a while, the binary that is built can be
regsvr successfully.

Anyone has any idea?

Thanks in advance.

Regards,
Angela


Register COM dll in vista


Responses to "Register COM dll in vista"

Gary Mount
Guest
Posts: n/a
 
Re: Register COM dll in vista
Posted: 05-03-2006, 11:55 AM
Don't you just add a reference in your project to the dll file? Thats
Interop when it deals with a com binary.

"Angela Yan" <yanyan9@hotmail.com> wrote in message
news:edLI1WqbGHA.628@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> I created a COM dll server using VS.net 2003 on XP. The Regsvr works fine
> on XP. Then I copy the whole project over to vista, and build it using
> VS.net 2005. Everytime I build the project, there is a great chance that
> an error message will pop up "The specified module could not be found"
> when I try to regsvr the binary. Only once in a while, the binary that is
> built can be regsvr successfully.
>
> Anyone has any idea?
>
> Thanks in advance.
>
> Regards,
> Angela
>
>

Zack Whittaker
Guest
Posts: n/a
 
Re: Register COM dll in vista
Posted: 05-03-2006, 01:09 PM
Yeh it should be as simple as that *-)

--
Zack Whittaker
ZackNET Enterprises: www.zacknet.co.uk
MSBlog on ResDev: www.msblog.org
Vista Knowledge Base: www.vistabase.co.uk
This mailing is provided "as is" with no warranties, and confers no
rights. All opinions expressed are those of myself unless stated so, and not
of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
that up!

--: Original message follows :--
"Gary Mount" <gary_mount@telus.net> wrote in message
news:ecrA6hqbGHA.1112@TK2MSFTNGP05.phx.gbl...
> Don't you just add a reference in your project to the dll file? Thats
> Interop when it deals with a com binary.
>
> "Angela Yan" <yanyan9@hotmail.com> wrote in message
> news:edLI1WqbGHA.628@TK2MSFTNGP04.phx.gbl...
>> Hi,
>>
>> I created a COM dll server using VS.net 2003 on XP. The Regsvr works fine
>> on XP. Then I copy the whole project over to vista, and build it using
>> VS.net 2005. Everytime I build the project, there is a great chance that
>> an error message will pop up "The specified module could not be found"
>> when I try to regsvr the binary. Only once in a while, the binary that is
>> built can be regsvr successfully.
>>
>> Anyone has any idea?
>>
>> Thanks in advance.
>>
>> Regards,
>> Angela
>>
>>
>
>

steve
Guest
Posts: n/a
 
Re: Register COM dll in vista
Posted: 05-03-2006, 01:51 PM
I think Angela is creating a COM DLL in .NET not referencing a COM DLL from
..NET.


"Zack Whittaker" <admin@zacknet.co.uk> wrote in message
news:uA93cLrbGHA.3888@TK2MSFTNGP02.phx.gbl...
> Yeh it should be as simple as that *-)
>
> --
> Zack Whittaker
> ZackNET Enterprises: www.zacknet.co.uk
> MSBlog on ResDev: www.msblog.org
> Vista Knowledge Base: www.vistabase.co.uk
> This mailing is provided "as is" with no warranties, and confers no
> rights. All opinions expressed are those of myself unless stated so, and
not
> of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
> that up!
>
> --: Original message follows :--
> "Gary Mount" <gary_mount@telus.net> wrote in message
> news:ecrA6hqbGHA.1112@TK2MSFTNGP05.phx.gbl...
> > Don't you just add a reference in your project to the dll file? Thats
> > Interop when it deals with a com binary.
> >
> > "Angela Yan" <yanyan9@hotmail.com> wrote in message
> > news:edLI1WqbGHA.628@TK2MSFTNGP04.phx.gbl...
> >> Hi,
> >>
> >> I created a COM dll server using VS.net 2003 on XP. The Regsvr works
fine
> >> on XP. Then I copy the whole project over to vista, and build it using
> >> VS.net 2005. Everytime I build the project, there is a great chance
that
> >> an error message will pop up "The specified module could not be found"
> >> when I try to regsvr the binary. Only once in a while, the binary that
is
> >> built can be regsvr successfully.
> >>
> >> Anyone has any idea?
> >>
> >> Thanks in advance.
> >>
> >> Regards,
> >> Angela
> >>
> >>
> >
> >
>
>

Angela Yan
Guest
Posts: n/a
 
Re: Register COM dll in vista
Posted: 05-03-2006, 03:14 PM
Yes Yes.. I mean I create an ATL COM dll in VS.NET.. not a COM DLL that is
using .NET framework.
Sorry for any confusion caused...

Angela


"steve" <steve@_NOS_Drakey.co.uk> wrote in message
news:uHukAjrbGHA.2396@TK2MSFTNGP02.phx.gbl...
>I think Angela is creating a COM DLL in .NET not referencing a COM DLL from
> .NET.
>
>
> "Zack Whittaker" <admin@zacknet.co.uk> wrote in message
> news:uA93cLrbGHA.3888@TK2MSFTNGP02.phx.gbl...
>> Yeh it should be as simple as that *-)
>>
>> --
>> Zack Whittaker
>> ?ZackNET Enterprises: www.zacknet.co.uk
>> ?MSBlog on ResDev: www.msblog.org
>> ?Vista Knowledge Base: www.vistabase.co.uk
>> ?This mailing is provided "as is" with no warranties, and confers no
>> rights. All opinions expressed are those of myself unless stated so, and
> not
>> of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
>> that up!
>>
>> --: Original message follows :--
>> "Gary Mount" <gary_mount@telus.net> wrote in message
>> news:ecrA6hqbGHA.1112@TK2MSFTNGP05.phx.gbl...
>> > Don't you just add a reference in your project to the dll file? Thats
>> > Interop when it deals with a com binary.
>> >
>> > "Angela Yan" <yanyan9@hotmail.com> wrote in message
>> > news:edLI1WqbGHA.628@TK2MSFTNGP04.phx.gbl...
>> >> Hi,
>> >>
>> >> I created a COM dll server using VS.net 2003 on XP. The Regsvr works
> fine
>> >> on XP. Then I copy the whole project over to vista, and build it using
>> >> VS.net 2005. Everytime I build the project, there is a great chance
> that
>> >> an error message will pop up "The specified module could not be found"
>> >> when I try to regsvr the binary. Only once in a while, the binary that
> is
>> >> built can be regsvr successfully.
>> >>
>> >> Anyone has any idea?
>> >>
>> >> Thanks in advance.
>> >>
>> >> Regards,
>> >> Angela
>> >>
>> >>
>> >
>> >
>>
>>
>
>

Ed Sproull [MSFT]
Guest
Posts: n/a
 
Re: Register COM dll in vista
Posted: 05-03-2006, 07:47 PM
Only guessing: Your are trying to regsvr32 the DLL and UAP is preventing
it, then you are getting the wrong error message. Oh aren't Beta's are fun.


Can you start an elevated command window and then register the server?

--

Ed Sproull
Windows Shell Team
<std disclaimer>


"Angela Yan" <yanyan9@hotmail.com> wrote in message
news:edLI1WqbGHA.628@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> I created a COM dll server using VS.net 2003 on XP. The Regsvr works fine
> on XP. Then I copy the whole project over to vista, and build it using
> VS.net 2005. Everytime I build the project, there is a great chance that
> an error message will pop up "The specified module could not be found"
> when I try to regsvr the binary. Only once in a while, the binary that is
> built can be regsvr successfully.
>
> Anyone has any idea?
>
> Thanks in advance.
>
> Regards,
> Angela
>
>

Zack Whittaker
Guest
Posts: n/a
 
Re: Register COM dll in vista
Posted: 05-03-2006, 08:00 PM
So essentially, Windows key + R and type in:
> regsvr32 <dll.name>
--
Zack Whittaker
ZackNET Enterprises: www.zacknet.co.uk
MSBlog on ResDev: www.msblog.org
Vista Knowledge Base: www.vistabase.co.uk
This mailing is provided "as is" with no warranties, and confers no
rights. All opinions expressed are those of myself unless stated so, and not
of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
that up!

--: Original message follows :--
"Ed Sproull [MSFT]" <edwards@online.microsoft.com> wrote in message
news:ehEIdpubGHA.1516@TK2MSFTNGP05.phx.gbl...
> Only guessing: Your are trying to regsvr32 the DLL and UAP is preventing
> it, then you are getting the wrong error message. Oh aren't Beta's are
> fun.
>
> Can you start an elevated command window and then register the server?
>
> --
>
> Ed Sproull
> Windows Shell Team
> <std disclaimer>
>
>
> "Angela Yan" <yanyan9@hotmail.com> wrote in message
> news:edLI1WqbGHA.628@TK2MSFTNGP04.phx.gbl...
>> Hi,
>>
>> I created a COM dll server using VS.net 2003 on XP. The Regsvr works fine
>> on XP. Then I copy the whole project over to vista, and build it using
>> VS.net 2005. Everytime I build the project, there is a great chance that
>> an error message will pop up "The specified module could not be found"
>> when I try to regsvr the binary. Only once in a while, the binary that is
>> built can be regsvr successfully.
>>
>> Anyone has any idea?
>>
>> Thanks in advance.
>>
>> Regards,
>> Angela
>>
>>
>
>

Angela Yan
Guest
Posts: n/a
 
Re: Register COM dll in vista
Posted: 05-04-2006, 05:41 AM
Hmm... I am not sure whether it is UAP which prevents the registration
process. I have already disabled UAP for my system. And the regsvr error I
am getting is not E_ACCESSDENIED.

Here is the full error message:

The module "C:\Users\xxx\Desktop\MyObject.dll" failed to load.
Make sure the binary is stored at the specified path or debug it to check
for problems with the binary or dependent .DLL files.
The specified module could not be found.

And I can regsvr other COM dll successfully in the same machine.

Any help is greatly appreciated..

Regards,
Angela


"Zack Whittaker" <admin@zacknet.co.uk> wrote in message
news:OuYizwubGHA.4040@TK2MSFTNGP02.phx.gbl...
> So essentially, Windows key + R and type in:
>
>> regsvr32 <dll.name>
>
> --
> Zack Whittaker
> ?ZackNET Enterprises: www.zacknet.co.uk
> ?MSBlog on ResDev: www.msblog.org
> ?Vista Knowledge Base: www.vistabase.co.uk
> ?This mailing is provided "as is" with no warranties, and confers no
> rights. All opinions expressed are those of myself unless stated so, and
> not
> of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
> that up!
>
> --: Original message follows :--
> "Ed Sproull [MSFT]" <edwards@online.microsoft.com> wrote in message
> news:ehEIdpubGHA.1516@TK2MSFTNGP05.phx.gbl...
>> Only guessing: Your are trying to regsvr32 the DLL and UAP is preventing
>> it, then you are getting the wrong error message. Oh aren't Beta's are
>> fun.
>>
>> Can you start an elevated command window and then register the server?
>>
>> --
>>
>> Ed Sproull
>> Windows Shell Team
>> <std disclaimer>
>>
>>
>> "Angela Yan" <yanyan9@hotmail.com> wrote in message
>> news:edLI1WqbGHA.628@TK2MSFTNGP04.phx.gbl...
>>> Hi,
>>>
>>> I created a COM dll server using VS.net 2003 on XP. The Regsvr works
>>> fine on XP. Then I copy the whole project over to vista, and build it
>>> using VS.net 2005. Everytime I build the project, there is a great
>>> chance that an error message will pop up "The specified module could not
>>> be found" when I try to regsvr the binary. Only once in a while, the
>>> binary that is built can be regsvr successfully.
>>>
>>> Anyone has any idea?
>>>
>>> Thanks in advance.
>>>
>>> Regards,
>>> Angela
>>>
>>>
>>
>>
>
>

Ed Sproull [MSFT]
Guest
Posts: n/a
 
Re: Register COM dll in vista
Posted: 05-04-2006, 04:48 PM
That is it. On vista with UAP enabled you will need an eleveated window
since it is going to write to the registry.

--

Ed Sproull
Windows Shell Team
<std disclaimer>


"Zack Whittaker" <admin@zacknet.co.uk> wrote in message
news:OuYizwubGHA.4040@TK2MSFTNGP02.phx.gbl...
> So essentially, Windows key + R and type in:
>
>> regsvr32 <dll.name>
>
> --
> Zack Whittaker
> ZackNET Enterprises: www.zacknet.co.uk
> MSBlog on ResDev: www.msblog.org
> Vista Knowledge Base: www.vistabase.co.uk
> This mailing is provided "as is" with no warranties, and confers no
> rights. All opinions expressed are those of myself unless stated so, and
> not
> of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
> that up!
>
> --: Original message follows :--
> "Ed Sproull [MSFT]" <edwards@online.microsoft.com> wrote in message
> news:ehEIdpubGHA.1516@TK2MSFTNGP05.phx.gbl...
>> Only guessing: Your are trying to regsvr32 the DLL and UAP is preventing
>> it, then you are getting the wrong error message. Oh aren't Beta's are
>> fun.
>>
>> Can you start an elevated command window and then register the server?
>>
>> --
>>
>> Ed Sproull
>> Windows Shell Team
>> <std disclaimer>
>>
>>
>> "Angela Yan" <yanyan9@hotmail.com> wrote in message
>> news:edLI1WqbGHA.628@TK2MSFTNGP04.phx.gbl...
>>> Hi,
>>>
>>> I created a COM dll server using VS.net 2003 on XP. The Regsvr works
>>> fine on XP. Then I copy the whole project over to vista, and build it
>>> using VS.net 2005. Everytime I build the project, there is a great
>>> chance that an error message will pop up "The specified module could not
>>> be found" when I try to regsvr the binary. Only once in a while, the
>>> binary that is built can be regsvr successfully.
>>>
>>> Anyone has any idea?
>>>
>>> Thanks in advance.
>>>
>>> Regards,
>>> Angela
>>>
>>>
>>
>>
>
>

Ed Sproull [MSFT]
Guest
Posts: n/a
 
Re: Register COM dll in vista
Posted: 05-04-2006, 04:49 PM
I can confirm that is the error message displayed when the DLL isn't found.
If you go to the directory where the DLL is located and call regsvr32 on the
DLL do you sill get the same message? If you don't and the DLL registers,
you probably want to check the path that VS is using. If you still get the
message, I would start regsvr32 <yourdll> under the debugger and see if your
module is actually loading.

Did you mention that you copied this project from another computer? If so
this might have brought a bad path with it.

Hope this helps.
--

Ed Sproull
Windows Shell Team
<std disclaimer>


"Angela Yan" <yanyan9@hotmail.com> wrote in message
news:OXKXa1zbGHA.2188@TK2MSFTNGP05.phx.gbl...
> Hmm... I am not sure whether it is UAP which prevents the registration
> process. I have already disabled UAP for my system. And the regsvr error I
> am getting is not E_ACCESSDENIED.
>
> Here is the full error message:
>
> The module "C:\Users\xxx\Desktop\MyObject.dll" failed to load.
> Make sure the binary is stored at the specified path or debug it to check
> for problems with the binary or dependent .DLL files.
> The specified module could not be found.
>
> And I can regsvr other COM dll successfully in the same machine.
>
> Any help is greatly appreciated..
>
> Regards,
> Angela
>
>
> "Zack Whittaker" <admin@zacknet.co.uk> wrote in message
> news:OuYizwubGHA.4040@TK2MSFTNGP02.phx.gbl...
>> So essentially, Windows key + R and type in:
>>
>>> regsvr32 <dll.name>
>>
>> --
>> Zack Whittaker
>> ?ZackNET Enterprises: www.zacknet.co.uk
>> ?MSBlog on ResDev: www.msblog.org
>> ?Vista Knowledge Base: www.vistabase.co.uk
>> ?This mailing is provided "as is" with no warranties, and confers no
>> rights. All opinions expressed are those of myself unless stated so, and
>> not
>> of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
>> that up!
>>
>> --: Original message follows :--
>> "Ed Sproull [MSFT]" <edwards@online.microsoft.com> wrote in message
>> news:ehEIdpubGHA.1516@TK2MSFTNGP05.phx.gbl...
>>> Only guessing: Your are trying to regsvr32 the DLL and UAP is
>>> preventing it, then you are getting the wrong error message. Oh aren't
>>> Beta's are fun.
>>>
>>> Can you start an elevated command window and then register the server?
>>>
>>> --
>>>
>>> Ed Sproull
>>> Windows Shell Team
>>> <std disclaimer>
>>>
>>>
>>> "Angela Yan" <yanyan9@hotmail.com> wrote in message
>>> news:edLI1WqbGHA.628@TK2MSFTNGP04.phx.gbl...
>>>> Hi,
>>>>
>>>> I created a COM dll server using VS.net 2003 on XP. The Regsvr works
>>>> fine on XP. Then I copy the whole project over to vista, and build it
>>>> using VS.net 2005. Everytime I build the project, there is a great
>>>> chance that an error message will pop up "The specified module could
>>>> not be found" when I try to regsvr the binary. Only once in a while,
>>>> the binary that is built can be regsvr successfully.
>>>>
>>>> Anyone has any idea?
>>>>
>>>> Thanks in advance.
>>>>
>>>> Regards,
>>>> Angela
>>>>
>>>>
>>>
>>>
>>
>>
>
>

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
no thumbnails for .mpg files, no shmedia to register, someone tell me how to fix this in Vista Guest Windows NT/2000/XP 0 03-07-2008 01:50 AM
no thumbnails for .mpg files, no shmedia to register, someone tell me how to fix this in Vista Guest Windows NT/2000/XP 0 03-06-2008 11:24 PM
Register in Menu Addam Webber Windows XP Help & Support 0 10-23-2003 07:33 PM
register Colleen Windows XP Accessibility 1 08-11-2003 08:51 PM
MM2 won't register dll's !!! John De Angelis Windows XP Movie Maker 0 07-08-2003 10:15 PM