VB 6 COM Convert to VB.net
Messages   Related Types
This message was discovered on microsoft.public.dotnet.languages.vb.upgrade.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Desmond Tse via .NET 247 (VIP)
Hi,

I have create a COM object in VB6, it work fine, but when I try to use this COM in window 2003 server (This server already install VB.net), I use Component Services to register this COM object, but when I use ASP to test, it have a error " WindowMail error '8007202b'. Automation error A referral was returned from the server. "

So I try to upgrade this COM from VB6 to VB.net, It can bulid a DLL file, but when I use Component Services to register it, it said I missing some file, I cannot see the function normally

I have try to use regsvr32 to register this DLL file, it got "MYDLL.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered"

Any one can help me to fix this program, Many thanks!
--------------------------------
From: Desmond Tse

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>+TNv7gu5tUKpBfq5zbSRig==</Id>
Reply to this message...
 
    
John Wadie
In the properties of the VB.NET DLL project, open Configuration Properties /
Build, and set "Register for COM Interop" to True, then add the following
line at the beginning of your code
Imports System.Runtime.InteropServices

next, add this line before your class declaration
[Guid("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")]
Replace the x's in the above statement with a new GUID.

After building the DLL you'll be able to register it in componet services,
no need for regsvr32.

Regards,
John Wadie

"Desmond Tse via .NET 247" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
Hi,

I have create a COM object in VB6, it work fine, but when I try to use this
COM in window 2003 server (This server already install VB.net), I use
Component Services to register this COM object, but when I use ASP to test,
it have a error " WindowMail error '8007202b'. Automation error A referral
was returned from the server. "

So I try to upgrade this COM from VB6 to VB.net, It can bulid a DLL file,
but when I use Component Services to register it, it said I missing some
file, I cannot see the function normally

I have try to use regsvr32 to register this DLL file, it got "MYDLL.dll was
loaded, but the DllRegisterServer entry point was not found. This file can
not be registered"

Any one can help me to fix this program, Many thanks!
--------------------------------
From: Desmond Tse

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>+TNv7gu5tUKpBfq5zbSRig==</Id>

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com