.NETGURU
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 Guru (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 Guru (http://www.dot-net-guru.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 Guru" <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 Guru (http://www.dot-net-guru.com/)

<Id>+TNv7gu5tUKpBfq5zbSRig==</Id>

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification