Server Error in '/' Application.

Value cannot be null.
Parameter name: input

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: input

Source Error:


Line 28:     {
Line 29:         string reShortcode = @"\[(.*?)\]";
Line 30:         string[] casti = Regex.Split(vstupniText, reShortcode);
Line 31:         string vystupniText = string.Empty;
Line 32: 

Source File: c:\webhosting\Klimatron\App_Code\XWeb.cs    Line: 30

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Split(String input) +3378904
   System.Text.RegularExpressions.Regex.Split(String input, String pattern) +93
   XWeb.ParseShortcode(String vstupniText, String zkratkaFotogalerie) in c:\webhosting\Klimatron\App_Code\XWeb.cs:30
   Aktualita.Page_Load(Object sender, EventArgs e) in c:\webhosting\Klimatron\Aktualita.aspx.cs:77
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4076.0