regsvr32 does work... also if I seperate the original build file into two - one to unregister and one to register and run them seperetely, it would work. Any idea how I can go around this?
Thanks again. -----Original Message----- From: Ian MacLean [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 9:57 PM To: Sergey Shafran Cc: [EMAIL PROTECTED] Subject: Re: [NAntC-Dev] <comregister> task Sergey, The company spam/virus checker quarintined your dll so I just built a simple vb6 dll with a single class. I then ran your build against it and got: Buildfile: file:///H:/contribsource/nant/ComRegister/Testing.build Target(s) specified: register unregister: [comregister] Registering 1 files [comregister] Registering TestLibrary.dll register: [comregister] Registering 1 files [comregister] Registering TestLibrary.dll BUILD SUCCEEDED Total time: 0.2 seconds. does regsvr32 work against that dll from the command line ? Ian Sergey Shafran wrote: >Ian, > >This happens to any VB6 DLL. I am attaching a sample DLL. I am also attaching the >build file that I use to deploy this DLL. > >Thanks for the help, >Sergey > >-----Original Message----- >From: Ian MacLean [mailto:[EMAIL PROTECTED] >Sent: Thursday, July 08, 2004 11:19 AM >To: Sergey Shafran >Cc: [EMAIL PROTECTED] >Subject: Re: [NAntC-Dev] <comregister> task > > >Sergey , >If you could post the dll and build file you are using I'll take a look >and see why its failing. > >Ian > >Sergey Shafran wrote: > > > >>Hi, >> >>In my project I have to build and deploy VB6 dlls. In my 'deploy' target I am >>trying to first unregister a dll, then overwrite it and register it using the >><comregister> task. The task fails on registration: "Error during registration >>Exception has been thrown by the target of the invocation". Does anyone have an >>idea why this is happening and how to fix it? >> >>Thanks! >> >> >>------------------------------------------------------- >>This SF.Net email sponsored by Black Hat Briefings & Training. >>Attend Black Hat Briefings & Training, Las Vegas July 24-29 - >>digital self defense, top technical experts, no vendor pitches, >>unmatched networking opportunities. Visit www.blackhat.com >>_______________________________________________ >>NAntContrib-Developer mailing list >>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer >> >> >> >> > > > > -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ NAntContrib-Developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

