Quantcast
Channel: Off-Topic Posts (Do Not Post Here) forum
Viewing all articles
Browse latest Browse all 14169

value does not fall within range when calling method AdminIndexServerClass.AddCatalog for creating catalog on remote machine

$
0
0

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 

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 one know what is exactly problem ?

thanks in advanced


Viewing all articles
Browse latest Browse all 14169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>