create Index service catalog on remote machine RRS feed

  • Question

  • User935404395 posted

    Hi All

    I would like to create Index service catalog on remote machine though c#

    for that i have used AdminIndexServerClass but when i called the method

    AdminIndexServerClass.AddCatalog method to create catalog on remote machine it getting error

    like value does not fall within range as well as network path was not found

    following is my code

    AdminIndexServerClass Admin = new AdminIndexServerClass();

    Admin.MachineName = "vishal2k32";

    const string catalogPath = @"\\vishal2k32\d\ASICatalog";

    // If directory does not exist, create it.
    if (!Directory.Exists(catalogPath))

    Admin.AddCatalog("ASICatalog", @"\\vishal2k32\d\ASICatalog");


    is any one known what is exactly problem ?

    thanks in advanced




    Friday, May 17, 2013 3:28 AM


  • User-166373564 posted

    Hi atulgaikwad

    like value does not fall within range as well as network path was not found

    First you should check whether your network path and value are available,

    Indexing Server can be used to index files on your local or network file system as well as files of your local web site. You can then query the Indexing catalog using a standard SQL syntax. This blog describes in detail how you can create and configure your own Indexing catalog and then search it from within your application. This article concentrates on how you can programmatically administrate Indexing Server,      I think it can give some tips for you to troubleshoot,

    # Administrate Indexing Server from within your application


    At the same you can also check whether you use Directory.CreateDirectory Method properly,

    # Directory.CreateDirectory Method 

    hope it helpful for you to troubleshoot,

    With regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 23, 2013 4:30 AM