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))
{
Directory.CreateDirectory(catalogPath);
}
Admin.Stop();
Admin.AddCatalog("ASICatalog", @"\\vishal2k32\d\ASICatalog");
Admin.Start();
is any one known what is exactly problem ?
thanks in advanced
--
Regards,
Atul