|
-
January 27th, 2003, 01:04 PM
#1
Cannot remove .Net DLL from memory.
hi,
Recently, I upgraded VB6 project to VB.Net. After that I can sucessfully compile the project and generate a DLL file in the bin folder, but when I try to use regsvr32 command to register the DLL, I got error saying "DllRegister Server Entry Point is not found".
And I cannot remove it from memory, if I want to use my old DLL.
Can anyone help me ?
Last edited by cobraeye; February 3rd, 2003 at 10:51 AM.
-
January 28th, 2003, 11:44 AM
#2
.NET DLLs don't need to be registered.
-
January 28th, 2003, 12:57 PM
#3
thanks for replying, but I cannot call the classes i defined in DLL from ASP any more, like I used to use Server.CreateObject("***") to create those server objects, but now my asp doesnt recognize this any more.
-
January 28th, 2003, 02:58 PM
#4
Ok, you'll have to register your DLL for com-interop then (build a COM wrapper for your .NET DLL). Under Project... Properties... Configuration Properties... Build, make sure the "Register For COM Interop" Checkbox is chosen.
-
January 28th, 2003, 03:07 PM
#5
yes I did that. Then What should i do ? Register the DLL in Bin folder? I tried that as well. Still same error msg as I described in my original post. I checked boxes for Generating debug info, register for interop, enable build warnings and debug constant,
-
January 28th, 2003, 03:16 PM
#6
One the developement machine this should happen automatically, but on other machines you'll need to copy the DLL and .TLB file to the machine and then register (with regsvr32) the TLB file, NOT the DLL.
-
January 28th, 2003, 03:40 PM
#7
ok, it does have a TLB file and when I use regsvr32, it says "XXXXX" is not an executable file and no registration helper is registered for this file type.
Thanks
-
January 28th, 2003, 03:55 PM
#8
Oops... been a while since I did this. Take a look at RegAsm.exe in the help. I believe you run this on the DLL file.
-
January 28th, 2003, 06:29 PM
#9
I really appreciate your helps, I tried regasm as you instructed, and I can register that DLL now. But none of my class is available to be call from ASP. Meanwhile I am spending on this, I was wondering why Microsoft made things so complex for us?
-
January 29th, 2003, 09:10 AM
#10
Well, they're moving away from COM. If you ditched ASP and went with ASP.NET then you'd have no trouble calling the original .NET DLL.
-
February 3rd, 2003, 10:49 AM
#11
Thanks, and now I want to go back to VB6 with my old DLL, I can compile it, but I cannot register my old DLL now. I think the .Net Version of DLL is residing in the memory. Do you know how to remove it? It says in the popbox when i did regsvr32 ... /u to use pview to detect and remove it, But I cannot find anything from pview.
Any idea?
-
April 10th, 2003, 10:07 AM
#12
You can try unregistering it with Regasm.exe /unregister
-
April 10th, 2003, 12:30 PM
#13
thanks for the reply, I used that to remove the DLL from the memory finally. But do u know after I upgrade the DLL to .Net, how can I make my ASP to use that DLL? Because when I do server.createobject it doesnt seems to be able to location my DLL
thanks
-
April 10th, 2003, 02:24 PM
#14
No, I am trying to do the same thing. I can make it work on my Developer Machine, but not on my clients. I will post another reply when I figure it out. Please let me know if you figure it out.
My guess is that I need to use the GacUtil.exe but it is not on my client machines. I copied it over and it says that it is missing a dll.
MSvcrt70.dll I think is the one it told me it was missing.
Thanks
-
June 2nd, 2003, 10:53 AM
#15
hey, i think i am having a similar problem with my program
i tried doing the Properties->Build Checkbox for register for COM Interop, but it is disabled so I can't check it.
When I run my program I get this popbox:
-----------------------------
An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in system.windows.forms.dll
Additional information: Unable to get the window handle for the 'AxTextBox' control. Windowless ActiveX controls are not supported.
-----------------------------
The code that is highlighted green is:
<code>
Friend Class frmXXXXX
</code>
I dont even know where to start!
Thank you,
IpSteal
Man, I really want my name to be IPSteal, not ipsteal but i can't find out how to change it!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|