Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

unable to save robots.txt content

$
0
0

Hello.

Anyone know how I can debug robots.txt functionality in episerver 6?
After installing this in Package Manger Console:

Install-Package EPiRobots -Version 1.0.1 

I am able to view "Manage robots.txt content" in Admin > Tools. All the sites are listed in the dropdown after "Select your site and host to edit the robots.txt file".

However, if I try to "Save" the content of robots.txt I get:

Server Error in '/' Application.
Index was outside the bounds of the array.

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[IndexOutOfRangeException: Index was outside the bounds of the array.]
EPiRobots.Resources.Admin.AdminManageRobotsTxt.btnSave_Click(Object sender, EventArgs e) +925
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +11762637
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +150
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6016

WHat is a good way to debug this to figure out the root cause?


Viewing all articles
Browse latest Browse all 9076

Trending Articles