Visual Studio 2008 .NET 3.5TinyMCE和Viewstate驗證失敗。原因:Viewstate無效
我正在使用內置的Web服務器來測試,並且一切正常。我的TinyMCE的代碼如下:
<!-- TinyMCE -->
<script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
// General options
mode: "textareas",
theme: "advanced",
plugins: "paste",
relative_urls: false,
remove_script_host: false,
// Theme options
theme_advanced_buttons1: "bold,italic,link,unlink,image",
theme_advanced_buttons2: "",
theme_advanced_buttons3: "",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
theme_advanced_resizing: false,
// Example word content CSS (should be your site CSS) this one removes paragraph margins
content_css: "includes/tinyMCEword.css",
// Drop lists for link/image/media/template dialogs
external_image_list_url: "lists/image_list.js"
});
</script>
<!-- /TinyMCE -->
現在,我遇到的問題,是對我有這樣的代碼的任何網頁,我會間歇性地得到ViewState的錯誤,即:
事件代碼: 4009 事件消息:Viewstate驗證失敗。原因:Viewstate無效。
我注意到發生這種情況時,在我的頁面上,看起來好像我輸出了ViewState數據(加密的)。僅在帶有TinyMCE的頁面上。我不知道爲什麼發生。一切工作完全正常本地,但是當部署到Win2K3服務器(IIS6),我得到這個問題。
我真的迷路了。任何想法傢伙?
感謝, 史蒂夫
FWIW,它似乎是*僅*發生在Chrome上。 – StephenPAdams 2009-09-18 20:30:55