Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/269.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 错误类型:System.IO.PathToolOngIP地址的异常:157.55.39.175又名Microsoft Bingbot_C#_.net_Pathtoolongexception_Bingbot - Fatal编程技术网

C# 错误类型:System.IO.PathToolOngIP地址的异常:157.55.39.175又名Microsoft Bingbot

C# 错误类型:System.IO.PathToolOngIP地址的异常:157.55.39.175又名Microsoft Bingbot,c#,.net,pathtoolongexception,bingbot,C#,.net,Pathtoolongexception,Bingbot,错误通知的详细信息如下所示。我的问题是如何减少Bingbots产生的异常数量?如果这样做会有什么损失 System.IO.PathTooLongException IP地址:157.55.39.175 用户:来宾 错误类型:System.IO.PathTooLongException 消息:路径太长 指定的路径、文件名或两者都太长。完全限定文件名必须少于260个字符,目录名必须少于248个字符。 堆栈跟踪:位于System.IO.Path.SafeStackPointerValueChar*缓冲

错误通知的详细信息如下所示。我的问题是如何减少Bingbots产生的异常数量?如果这样做会有什么损失

System.IO.PathTooLongException

IP地址:157.55.39.175 用户:来宾

错误类型:System.IO.PathTooLongException 消息:路径太长 指定的路径、文件名或两者都太长。完全限定文件名必须少于260个字符,目录名必须少于248个字符。 堆栈跟踪:位于System.IO.Path.SafeStackPointerValueChar*缓冲区,Int32索引,位于System.IO.Path.NormalizePathFastString路径的字符值,位于System.Security.Util.StringExpressionSet.CanonicalizePathString路径的布尔fullCheck,位于System.Security.Util.StringExpressionSet.CreateListFromExpressionString[]str的布尔需要FullPath,System.Security.Permissions.FileIOPermission.AddPathListFileIOPermissionAccess、AccessControlActions控件、字符串[]pathListOrig、布尔检查副本、布尔needFullPath、System.Security.Permissions.FileIOPermission..TorFileIOPermissionAccess处的布尔复制路径列表,System.Web.HttpRequest.get_PhysicalPath at Jenzabar.Portal.Framework.Web.Modules.AuthenticationModule.context_AuthenticateRequest对象发送方的字符串路径,EventArgs e at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IEExecutionStep.Execute at System.Web.HttpApplication.ExecutePetcutionStep步骤,布尔&同步完成 查询字符串/表单值 T2 所有\u HTTP\u缓存\u控件:无缓存HTTP\u连接:保持活动状态HTTP\u PRAGMA:无缓存HTTP\u ACCEPT:/HTTP\u ACCEPT\u编码:gzip,从:bingbotatmicrosoft.com

远程地址157.55.39.175 请求\u方法获取

URL/ics/students/jfx/extensions/webeditors/ui/common/scripts/jfx/extensions/webeditors/ui/common/scripts/jfx/extensions/feedback/jfx/ui/common/scripts/jfx/extensions/directorysearch/directorysearch.js

来自微软bingbotatmicrosoft.com的HTTP\u

用户代理:bingbot
不允许://

您可能认为bingbot开发人员会尝试不生成msdn.microsoft.com中记录的异常。嗯,/ics/students的人应该解决这个问题。如果不是Bing,那么Google的机器人将触发完全相同的异常。Google的机器人没有。向域中添加robots.txt文件将停止bingbot!i、 e.www.domain.com/robots.txt这是你在robots.txt文件中所需要的全部,以抵御邪恶的bingbot如果你想让用户使用Bing找到你的网站,这可能不是最好的解决方案,也许只是不允许bingbot遇到麻烦的某些路径?假设这些路径只是.js和.css等资源,但理想情况下,bingbot也应该能够下载这些资源