Server Error in '/BirdWeb' 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 36:         /// <returns></returns>
Line 37:         public static string EncodeName(string name) {
Line 38:             name = Regex.Replace( name, "/", "_" );
Line 39:             name = Regex.Replace(name, "'", "");
Line 40:             return HttpUtility.UrlEncode(Regex.Replace(name, " ", "_").ToLower());

Source File: d:\inetpub\vhosts\seattleaudubon.org\httpdocs\BirdWeb\App_Code\Util.cs    Line: 38

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Replace(String input, String replacement) +6985940
   System.Text.RegularExpressions.Regex.Replace(String input, String pattern, String replacement) +95
   BirdWeb.Util.EncodeName(String name) in d:\inetpub\vhosts\seattleaudubon.org\httpdocs\BirdWeb\App_Code\Util.cs:38
   ASP.bird_details_aspx.Page_Load(Object Source, EventArgs e) in d:\inetpub\vhosts\seattleaudubon.org\httpdocs\BirdWeb\bird_details.aspx:89
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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