求助服务器部署网站报错 Value cannot be null. Parameter name: input
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 66: {
Line 67: //删除脚本
Line 68: Htmlstring = Regex.Replace(Htmlstring, @"<script[^>]*?>.*?</script>", "", RegexOptions.IgnoreCase);
Line 69: //删除HTML
Line 70: Htmlstring = Regex.Replace(Htmlstring, @"<(.[^>]*)>", "", RegexOptions.IgnoreCase);
Source File: c:\Documents and Settings\Administrator\桌面\web\cms\Default.aspx.cs Line: 68
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: input]
System.Text.RegularExpressions.Regex.Replace(String input, String replacement) +2196419
System.Text.RegularExpressions.Regex.Replace(String input, String pattern, String replacement, RegexOptions options) +46
cms_Default.NoHTML(String Htmlstring) in c:\Documents and Settings\Administrator\桌面\web\cms\Default.aspx.cs:68
cms_Default..ctor() in c:\Documents and Settings\Administrator\桌面\web\cms\Default.aspx.cs:34
ASP.cms_default_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\bae5b741\305f0736\App_Web_h1_4tleb.0.cs:0
__ASP.FastObjectFactory_app_web_h1_4tleb.Create_ASP_cms_default_aspx() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\bae5b741\305f0736\App_Web_h1_4tleb.86.cs:0
System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42