CS2.0 中若自动登录无效的解决办法

参考 Url: http://communityserver.org/forums/thread/483092.aspx

是MachineKey的问题, 在Web.config中修改即可

在Msdn上对MachineKey的解释是加密与解密Cookie 确认用户身份这样的东西

参考:

MSDN: http://msdn.microsoft.com/library/default.asp?url=...

http://menory.blog.51cto.com/post/25986/4902

posted on 2006-09-16 14:20 xwang 阅读(485) 评论(2)  编辑 收藏 所属分类: CommunityServer

评论

#1楼  2007-02-05 08:49 白沙 [未注册用户]

对帖子进行“转移”操作,在选择好转移到的版块后,提交时有错误:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Error loading client data: System.Xml.XmlException: This is an unexpected token. The expected token is 'EndElement'. Line 1, position 4289. at System.Xml.XmlTextReader.Read() at System.Xml.XmlValidatingReader.ReadNoCollectTextToken() at System.Xml.XmlValidatingReader.Read() at System.Xml.XmlLoader.LoadCurrentNode() at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(String xml) at ComponentArt.Web.UI.TreeView.LoadClientData(String sData)
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.Exception: Error loading client data: System.Xml.XmlException: This is an unexpected token. The expected token is 'EndElement'. Line 1, position 4289. at System.Xml.XmlTextReader.Read() at System.Xml.XmlValidatingReader.ReadNoCollectTextToken() at System.Xml.XmlValidatingReader.Read() at System.Xml.XmlLoader.LoadCurrentNode() at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(String xml) at ComponentArt.Web.UI.TreeView.LoadClientData(String sData)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Exception: Error loading client data: System.Xml.XmlException: This is an unexpected token. The expected token is 'EndElement'. Line 1, position 4289.
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlValidatingReader.ReadNoCollectTextToken()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.LoadCurrentNode()
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at ComponentArt.Web.UI.TreeView.LoadClientData(String sData)]
ComponentArt.Web.UI.TreeView.LoadClientData(String sData) +353
ComponentArt.Web.UI.TreeView.LoadViewState(Object savedState) +138
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +136
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +414
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +414
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +414
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +414
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +414
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +414
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +414
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +414
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +414
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +414
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +414
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +414
System.Web.UI.Page.LoadPageViewState() +306
System.Web.UI.Page.ProcessRequestMain() +447


---------------------
请问大侠门怎么解决?
  回复  引用    

#2楼  2007-10-08 15:58 sbxwylt [未注册用户]

具体的你可以加我QQ问:57872034   回复  引用    


标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2006-09-16 14:24 编辑过


相关链接:
 


导航

公告

Free Counter
像走了好远,像离开了很久,而那曾经的.Net,还在那里默默的奋斗,有点感动。我回来了,像离开了很久的爱人,在历经痛苦后回来了,带着我满腔的激情。
Personal Site
<2006年9月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

统计

与我联系

搜索

 

常用链接

留言簿(2)

我参与的团队

我的标签

随笔分类

随笔档案

CommunityServer

Friends

收藏

最新评论

阅读排行榜

评论排行榜

60天内阅读排行