DotLucene with ASP?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ron.abramson@gmail.com

    #1

    DotLucene with ASP?

    I have been successfully using Java Lucene with various Java, Python
    and PHP projects, and would like to try more of a native Microsoft
    approach. My immediate total newbie question is how to call functions
    in Lucene.Net.dll from ASP or VBA code. I tried loading this dll with
    Regsvr32 and it said the dll was not loadable. I don't really want to
    start compiling C#. Is there another way to load this or create a
    reference? This is so easy to do with Python, so I imagine there must
    be a comparable way to do it with ASP.

  • Martin Arvidsson

    #2
    Re: DotLucene with ASP?

    If the uses clause dont work (at the top of the class)

    i would suggest to register it in the GAC (Global Assembly Cache)
    Then it would be accesible from the c#

    OR

    I think you can import the DLL from the project using Add Reference (Right
    click on the project)

    Regards
    Martin

    <ron.abramson@g mail.comskrev i meddelandet
    news:1161889330 .175416.46720@f 16g2000cwb.goog legroups.com...
    >I have been successfully using Java Lucene with various Java, Python
    and PHP projects, and would like to try more of a native Microsoft
    approach. My immediate total newbie question is how to call functions
    in Lucene.Net.dll from ASP or VBA code. I tried loading this dll with
    Regsvr32 and it said the dll was not loadable. I don't really want to
    start compiling C#. Is there another way to load this or create a
    reference? This is so easy to do with Python, so I imagine there must
    be a comparable way to do it with ASP.
    >

    Comment

    • Jon Skeet [C# MVP]

      #3
      Re: DotLucene with ASP?

      <ron.abramson@g mail.comwrote:
      I have been successfully using Java Lucene with various Java, Python
      and PHP projects, and would like to try more of a native Microsoft
      approach. My immediate total newbie question is how to call functions
      in Lucene.Net.dll from ASP or VBA code. I tried loading this dll with
      Regsvr32 and it said the dll was not loadable. I don't really want to
      start compiling C#. Is there another way to load this or create a
      reference? This is so easy to do with Python, so I imagine there must
      be a comparable way to do it with ASP.
      DotLucence is a .NET version of Lucene. If you're using vanilla ASP or
      VBA, you can't use .NET libraries (easily, anyway).

      --
      Jon Skeet - <skeet@pobox.co m>
      http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
      If replying to the group, please do not mail me too

      Comment

      • ron.abramson@gmail.com

        #4
        Re: DotLucene with ASP?

        Yes I figured it out. Just add a reference in the Project Explorer to
        Lucene.Net.dll. I was just unfamiliar with the IDE (I'm using the
        Visual Studio .NET 2005 Express Web Developer and C# that I downloaded
        from Microsoft - it is very nice).

        After that, all the Lucene content indexing and retrieval functions
        worked for web sites programmed in either C# or VB. Works pretty much
        the same as the other Lucene ports I've tried. Got an intranet search
        engine going in no time.

        Comment

        Working...