Server Error in '/surveys' 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 33: 
Line 34:         Dim sharprt As New sharedparts
Line 35:         Dim singleslash As String = Regex.Replace(survPath, "\\\\", "\")
Line 36:         Dim isfixed As Boolean = sharprt.fixsurvey(Split(singleslash, "\")(UBound(Split(singleslash, "\")) - 1), Split(singleslash, "\")(UBound(Split(singleslash, "\"))))
Line 37: 

Source File: E:\surveys\Default.aspx.vb    Line: 35

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: input]
   System.Text.RegularExpressions.Regex.Replace(String input, String replacement) +5370255
   System.Text.RegularExpressions.Regex.Replace(String input, String pattern, String replacement) +46
   _Default.displayTheSurvey() in E:\surveys\Default.aspx.vb:35
   _Default.Page_Load(Object sender, EventArgs e) in E:\surveys\Default.aspx.vb:19
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975