.NET Framework Developer Center > .NET Development Forums > 64-Bit .NET Framework Development. > Indexing services on window server 2008 is not working with .net
Ask a questionAsk a question
 

AnswerIndexing services on window server 2008 is not working with .net

  • Tuesday, October 06, 2009 6:18 AMsanket shah81 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,

    I am useing Microsoft indexing services in windows 2008 64 bit .I am getting error like "Exception from HRESULT: 0xC0000005" while i am createing  new catlog from .net 2.0.
    I am using  "ciodm.dll" for adding new catlog.

    i am using this code for create new catelog.

     

    Dim Admin As New CIODMLib.AdminIndexServer

     

    Admin.AddCatalog(varContractNo, txtCatelog.Text +

    "\" + varContractNo)

    Admin.Stop()

    Admin.Start()

    AddScope(txtDocFolderPath.Text, txtSite.Text, txtCatelogname.Text)

     


    Please help me anybody have fixed this issue on window server 2008 64 bit.

     

Answers

  • Thursday, October 15, 2009 2:29 AMeryangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,
    You may need to build with target plateform x64 or AnyCPU, if you still get same error after the change, you'd better contact the owner of that native dll to see whether there is any defects in the dll.

    Thanks,
    Eric
    Please remember to mark helpful replies as answers and unmark them if they provide no help.
  • Tuesday, October 27, 2009 5:14 AMsanket shah81 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello Friend ,

    I have fixed the issue by enabled 32 bti application pool =false

    Thanks
    Sanket

All Replies

  • Tuesday, October 06, 2009 7:21 PMPhilWilson Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Is your app running as 32-bit and calling a 64-bit Dll? Or the other way round?
    Phil Wilson
  • Wednesday, October 07, 2009 1:00 PMsanket shah81 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi

    My development enviroment is 32 bit and my deployment server is 64 bit. is this problem. ?

  • Wednesday, October 07, 2009 7:57 PMPhilWilson Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Your development environment is not relevant. When your .NET app runs, do you know if it's running as native 64-bit or not? Is it building MSIL/AnyCpu code or x86 code? You have an interop Dll by the look of it - is that 64-bit? MSIL?

    You should really be doing error checking. A likely cause of a crash on AddCatalog is that the object is null, meaning that you never actually created it, and that might be related to 32/64 bit COM Dlls.
    Phil Wilson
  • Thursday, October 08, 2009 1:07 PMsanket shah81 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Wilson,

    Thanks for your answer. i am build my application witch target x86 cpu.so i am thinking it should work..
    but it still display same error.

    Thanks
    Sanket Shah
  • Thursday, October 15, 2009 2:29 AMeryangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,
    You may need to build with target plateform x64 or AnyCPU, if you still get same error after the change, you'd better contact the owner of that native dll to see whether there is any defects in the dll.

    Thanks,
    Eric
    Please remember to mark helpful replies as answers and unmark them if they provide no help.
  • Tuesday, October 27, 2009 5:14 AMsanket shah81 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello Friend ,

    I have fixed the issue by enabled 32 bti application pool =false

    Thanks
    Sanket