Hi
While entering form url, & Enter credentials button I got this error in popup.
An unexpected error was encountered while trying to connect to http://****/. The error is "The remote server returned an error: (401) Unauthorized.". The site might be unavailable or it could not be reached within the specified timeout or the proxy settings are not configured. To increase the timeout value or to configure the proxy settings, use the Proxy and timeouts page.
& with powershell it throws the error
Exception calling "SetCredentials" with "3" argument(s): "The value of argument 'type' (4) is invalid for Enum type
'CrawlRuleAuthenticationType'.
for this script
New-SPEnterpriseSearchCrawlRule-AuthenticationTypeFormRuleAccess -Path"http***/" -SearchApplication"**Search Service Application"-TypeInclusionRule-CrawlAsHttp1
$Rule
=Get-SPEnterpriseSearchCrawlRule-SearchApplication"**Search Service Application"-Identity"http://**"-EASilentlyContinue
#$Rule.SetCredentials([Microsoft.Office.Server.Search.Administration.CrawlRuleAuthenticationType]::FormRuleAccess, "riomar", (ConvertTo-SecureString "ramoir" -AsPlainText -force))
$AuthenticationType
=[enum]::GetValues([Microsoft.Office.Server.Search.Administration.CrawlRuleAuthenticationType])[4]
#[Microsoft.Office.Server.Search.Administration.CrawlRuleAuthenticationType]::FormRuleAccess
$pwd
=(ConvertTo-SecureString"**"-AsPlainText-force)
$accnt
="ll"
$Rule
.SetCredentials($AuthenticationType,$accnt,$pwd)
#$Rule.FollowComplexUrls = $true
$Rule
.Update()
Thanks & Regards,
Swati