urgent! Help please!

I finished a customization project for the client, everything works fine in my computer. Then I use the setup and deployment project from .Net to do the installation package. After installation, open pos, click the custom button, it pop up with a message say

"Attempt to execute com object mydll.myClass failed. Could not Create it.".

I searched through this group, made some change. ( I re-created new project, set the class to be "COM class", according to someone's suggestion, same problem) . In the project property, I have check the "Register for COM Interop" and for the DLL, I set "Register" property=vsdrpCOM.

What I have done is creating DLL which contains several classes to perfome my functions. I do this with VB.Net. Now I really got stuck with this. Could anyone please help me? Many many thanks.

Leanne

Reply to
Leanne
Loading thread data ...
1) make sure the client computer has .Net runtime installed 2) make sure that you have copied the proxy file over to client computer
Reply to
Chris

Chris, Thank you very much for your reply. After many times unsuccessful try, I installed the Visual Studio .Net on the target machine, and it works! But you know, I can not require that VS.net should be instored to make my project work.

I created the setup project in VS.Net, and the .Net framework had been added to the project as the pre-requisite. So I guess I might be missing some file in my setup project which can be added through VS.net installation. But what exactly are they? Any more suggestions? And what is the proxy file I should copy to the target computer?

Thanks again Leanne

Chris wrote:

Reply to
Leanne

I should have elaborated on that.

First of all , I am sorry to mislead you with ".Net runtime."

In order to run applications developed using .NET Framework on any target computer , you need "NET Framework redistributable package" installed on target computer. choose the one that is applicable

Net Version1.1

formatting link
Net Version 2.0
formatting link
56eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en If you references to any external librarys, .VS will like to generate interop proxy for it if they are unmanaged code. so copy those interops to your target computer too.

then

register your assembly dll on target computer with "regasm"

-Chris

Reply to
Chris

Chris:

Thanks. I have new findings.

In my not working project, I added the reference to Microsoft ActiveX Data Objects 2.0 Library, (so I can use ADODB). This one after installation, it could not work, and pop up a message say "Attempt to execute com object mydll.myClass failed. Could not Create it."

Then I created new project just doing simple things (pop up message box), without reference to ADO, and then do the setup project, it works totally fine! (Again I created custombutton in pos to open that)

Do you know what should I do in my setup package? How to make sure .Net installer get correct reference. The ADO reference was added to the project, will .Net automatically include that in the package?

Thanks again.

Leanne

Chris wrote:

formatting link

formatting link
56eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en>

Reply to
Leanne

I will suggest you to create a "simple" plug-in eg. a msgbox popup when the plug-in invoked .

and try to narrow down your problem

formatting link
>

formatting link
56eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en>>

Reply to
Chris

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.