Problems to access static methods within a .dll

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mopont
    New Member
    • May 2009
    • 2

    Problems to access static methods within a .dll

    Hello

    I have a dll file built in C#, in this dll I have some static methods.
    Everything goes fine when I access those methods using C#, but when I try to access them from a classic asp file
    i'm getting the following error:

    Microsoft VBScript runtime error '800a01b6'
    Object doesn't support this property or method: 'myMethod'

    can someone help me with this task?
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    My standard response to this is "try it as a web service". how are you calling the dll now? as a server object?

    Jared

    Comment

    • mopont
      New Member
      • May 2009
      • 2

      #3
      help

      Yes, jhardman I'm trying to open it as a server Object.... Is there any problem with that??
      You got right in to the point! Actualy this .dll is a closed third party WebService component... i can't do any modification.
      I already registerd the .dll with RegAsm and gacutil with success. There is a non-static method within the .dll that I use without problems, but the others static methods no... I had the error:

      Microsoft VBScript runtime error '800a01b6'
      Object doesn't support this property or method: 'myMethod'

      If using it as a Web Service can solve this problem i would gladly do it.... but...
      how can i use it as a Web Service?


      Thankx for the help

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        Originally posted by mopont
        If using it as a Web Service can solve this problem i would gladly do it.... but...
        how can i use it as a Web Service?
        It might be worth trying if you have access to Visual Web Developer. Do you have .NET experience? If so, it should be pretty straight-forward incorporating it as a reference.

        Consuming a web service is fairly straight-forward, here is one reference that come up on google. Let me know if this helps.

        Jared

        Comment

        Working...