Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. registering dll problem

registering dll problem

Scheduled Pinned Locked Moved Visual Basic
helpcsharptutorial
10 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    uktrips007
    wrote on last edited by
    #1

    hi dear I m facing a problem.I have devlpoped a dll file in vb.net.now I want to register it.while registration with regsrv32 it gave me message as follows. "dll file was loaded, but dllRegisterServer entry point was not found. file can't b registered" I don'tknow how to solve this error. please help me...... :zzz: thank you be the best...

    G 1 Reply Last reply
    0
    • U uktrips007

      hi dear I m facing a problem.I have devlpoped a dll file in vb.net.now I want to register it.while registration with regsrv32 it gave me message as follows. "dll file was loaded, but dllRegisterServer entry point was not found. file can't b registered" I don'tknow how to solve this error. please help me...... :zzz: thank you be the best...

      G Offline
      G Offline
      Gerben Jongerius
      wrote on last edited by
      #2

      For as far as I know it is impossible to register .Net dll's with RegSvr32, its not supported. This should not be a problem when you only use this DLL in other .net projects. However if you want other projects to use the DLL you can try regasm.exe which allows COM clients to create .NET Framework classes transparently. For more information on this I advice you to read this article on the tool.

      U 1 Reply Last reply
      0
      • G Gerben Jongerius

        For as far as I know it is impossible to register .Net dll's with RegSvr32, its not supported. This should not be a problem when you only use this DLL in other .net projects. However if you want other projects to use the DLL you can try regasm.exe which allows COM clients to create .NET Framework classes transparently. For more information on this I advice you to read this article on the tool.

        U Offline
        U Offline
        uktrips007
        wrote on last edited by
        #3

        Thanks for ur prompt answer.But I have to use it in ASP coding.and I think without having register it I couldn't use it in asp coding.if u know the way by which i can use this dll in asp coding without registering it tell me pls.and regasm.exe is not there in window xp as it shows error:"window can't find regasm.exe" Help me pls...........:confused: be the best...

        G 1 Reply Last reply
        0
        • U uktrips007

          Thanks for ur prompt answer.But I have to use it in ASP coding.and I think without having register it I couldn't use it in asp coding.if u know the way by which i can use this dll in asp coding without registering it tell me pls.and regasm.exe is not there in window xp as it shows error:"window can't find regasm.exe" Help me pls...........:confused: be the best...

          G Offline
          G Offline
          Gerben Jongerius
          wrote on last edited by
          #4

          I take it the .Net framework is installed. This should include the regasm.exe program in its root directory. The location is usuallay 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322', though the version number could vary pending on the version you are using.

          U 1 Reply Last reply
          0
          • G Gerben Jongerius

            I take it the .Net framework is installed. This should include the regasm.exe program in its root directory. The location is usuallay 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322', though the version number could vary pending on the version you are using.

            U Offline
            U Offline
            uktrips007
            wrote on last edited by
            #5

            how can i use this.I've got regasm.exe.if i double click it just flash once on screen and become unvisible.using command prompt i tryed but same result, tell me the way i should Use. Thanks n regards Uttam kumar:doh: be the best...

            G 1 Reply Last reply
            0
            • U uktrips007

              how can i use this.I've got regasm.exe.if i double click it just flash once on screen and become unvisible.using command prompt i tryed but same result, tell me the way i should Use. Thanks n regards Uttam kumar:doh: be the best...

              G Offline
              G Offline
              Gerben Jongerius
              wrote on last edited by
              #6

              Its easy, just open your command prompt and type: Register: %windir%\Microsoft.Net\Framework\v1.1.4322\RegAsm.exe <library> Unregister: %windir%\Microsoft.Net\Framework\v1.1.4322\RegAsm.exe /unregister <library> Replace <library> with the name of the DLL (include the full path)

              U 2 Replies Last reply
              0
              • G Gerben Jongerius

                Its easy, just open your command prompt and type: Register: %windir%\Microsoft.Net\Framework\v1.1.4322\RegAsm.exe <library> Unregister: %windir%\Microsoft.Net\Framework\v1.1.4322\RegAsm.exe /unregister <library> Replace <library> with the name of the DLL (include the full path)

                U Offline
                U Offline
                uktrips007
                wrote on last edited by
                #7

                Thank you Gerben Jongerious! I got my Answer. Thanks a lot. Uttam Kumar;) try to be the best... whereever you go,

                1 Reply Last reply
                0
                • G Gerben Jongerius

                  Its easy, just open your command prompt and type: Register: %windir%\Microsoft.Net\Framework\v1.1.4322\RegAsm.exe <library> Unregister: %windir%\Microsoft.Net\Framework\v1.1.4322\RegAsm.exe /unregister <library> Replace <library> with the name of the DLL (include the full path)

                  U Offline
                  U Offline
                  uktrips007
                  wrote on last edited by
                  #8

                  hi dear I have register my dll file on server.but after using it in my asp coding it shows incorrect program id.could u tell me y it is so? try to be the best... whereever you go,

                  G 1 Reply Last reply
                  0
                  • U uktrips007

                    hi dear I have register my dll file on server.but after using it in my asp coding it shows incorrect program id.could u tell me y it is so? try to be the best... whereever you go,

                    G Offline
                    G Offline
                    Gerben Jongerius
                    wrote on last edited by
                    #9

                    Each class in your dll should have its own progid. This will include the full namespace, you can check that by using regasm and exporting to a register file instead of directly into the register. (add /regfile:.reg So if I have a class in the VB.Net DLL called Test in a project called Test1 the full progID name should be Test1.Test and not just Test. However you can set a custom ProgID for each class with the ProgIdAttribute, see MSDN Article for more on that attribute.

                    U 1 Reply Last reply
                    0
                    • G Gerben Jongerius

                      Each class in your dll should have its own progid. This will include the full namespace, you can check that by using regasm and exporting to a register file instead of directly into the register. (add /regfile:.reg So if I have a class in the VB.Net DLL called Test in a project called Test1 the full progID name should be Test1.Test and not just Test. However you can set a custom ProgID for each class with the ProgIdAttribute, see MSDN Article for more on that attribute.

                      U Offline
                      U Offline
                      uktrips007
                      wrote on last edited by
                      #10

                      I did so now when i call the function of this class in dll it shows me that Microsoft VBScript compilation error '800a0414' Cannot use parentheses when calling a Sub /uttam/dlltest/test.asp, line 14 myObject.callweb(intvalue,i) ----------------------------^ I used myObject=Server.CreateObject("dllkeysearch.Class1") where dllkeysearch is dll project name and Class1 is the class name. :confused: try to be the best... whereever you go,

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups