2015-12-21 65 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" /> 
相關問題