2015-12-21 62 views
0

用户在尝试登录时看到404资源未找到错误,而我的ELMAH捕获的错误以下。当我要求他们清除cookie时,用户可以登录。任何帮助表示赞赏。 仅供参考:所有捕获的错误都具有类似www.mywebsite.com/login.aspx?ReturnUrl=%2fHome.aspx & AspxAutoDetectCookieSupport = 1的URL。不知道AspxAutoDetect与它有什么关系。某些用户的登录问题,直到他们清除cookie

< Exception Type =" System.IO.PathTooLongException"> 
<Message> The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. </ Message > 

<StackTrace> at System.IO.PathHelper.GetFullPathName() at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) at System.IO.Path.GetFullPathInternal(String path) at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) at System.Web.InternalSecurityPermissions.PathDiscovery(String path) at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) at System.Web.HttpRequest.MapPath(VirtualPath virtualPath) at System.Web.HttpRequest.MapPath(String virtualPath) at Xpedite.WebAbstraction.WebRequest.MapPath(String path) at Xpedite.Resources.ResourceUrl..ctor(IWebRequest request, Uri resourceUrl) at Xpedite.Resources.ResourceUrl..ctor(IWebRequest request, String resourceUrl) at Xpedite.WebControls.CompositeResource.<>c__DisplayClass1.<GetNamedResources>b__0(Resource resource) at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext() at Xpedite.Verify.NotNullOrEmpty[T](T value, String paramName) at Xpedite.Resources.ResourceContext.CreateResourceDefinition(ResourceType type, String referenceName, IEnumerable`1 resources) at Xpedite.WebControls.CompositeResource.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) </ StackTrace > 

回答

0

将以下内容添加到我的配置文件中解决了问题。

<httpRuntime maxUrlLength="1000" relaxedUrlToFileSystemMapping="true" /> 
相关问题