ImageButton不与部署的网站的Internet Explorer 11一起使用

问题描述:

这是我在这里发表的第一篇文章,原谅我可能不清楚......

this is my first post here so forgive me for possibly not being clear ...

我的问题如下:

我在Visual Studio Express 2013 Web下开发了一个网站,可以在开发时运行Internet Explorer 11。

I developed a website under Visual Studio Express 2013 Web which runs fine with Internet Explorer 11 on development.

在Internet Explorer 11下浏览我的网站的已发布版本并单击ImageButton时,该网站会显示以下错误消息(见下文)。

When browsing the published version of my website under Internet Explorer 11 and clicking on an ImageButton, the site displays the following error message (see below).

我花了很多时间在谷歌寻找解决方案,并找到了一些解决方法。它们似乎都不适合我。我也与托管我网站的公司取得联系,但他们说一切似乎都在他们身边。他们说
在他们的机器上安装了ASP.Net 4.0和4.5. 

I spent many hours on Google looking for a solution and found a number of workarounds. None of them seem to work for me. I also got in touch with the company hosting my website but they say that everything seems to be in order on their side. They say they have both ASP.Net 4.0 and 4.5 installed on their machines. 

谷歌搜索告诉我这个问题是一个已知的问题。有人说它应该在ASP.Net 4.5中解决,但在我的情况下,这似乎不起作用。

Googling showed me that this issue is a known issue. Some people say that it is supposed to be solved in ASP.Net 4.5 but in my case, that does not seem to work.

你们中间有人遇到过这个问题或者是一个可行的解决方案吗?请注意,我不能在网络服务器上更改任何内容,因为它不是我的...

Did anyone among you come across this issue or a workable solution for it ? Please note that I can not change anything on the webserver since it is not mine ...

非常感谢您提前

Jurgen

"

[No relevant source lines]








源文件: App_Web_4kwvlqja.12.cs   行:
0
$


堆栈跟踪:






Source File: App_Web_4kwvlqja.12.cs    Line: 0

Stack Trace:


[ViewStateException: Invalid viewstate. 
	Client IP: 120.145.131.224
	Port: 64358
	Referer: http://xxxxxxx.xxxxx.xxxx/
	Path: /default.aspx
	User-Agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
	ViewState: BetP/nzV+2nT0oznp2rngnJbyp7E2tF49oCwt39Q0Ay6WpLJjvZWkR5qMWsG7p/sUcuyPLx1bZXxMSu30UsXmmw75Vzl4jVbhw0bOLWqFwa/VqNGUM7QKtN/s5Rsr2tS5+ozIBm1BpvJzCf7DjnAf0aBySVnwwyRApbUtUgKUnjFs+YNeHIx9uOj4mqvv+/Qa2WhMUejA1pONzhbXePDpkyqHjDKQtnyIpyBB9cLJgu1iZyWvlj0oGhzoo/f4ag0jYxE9vUVlkJOxzdopqBKhjz4mzNg/QNLjjHyTRkNy+wDA/HnxRrxFcGwxrpRBFO4TA1NzvEfZlJxzyiVqxhJ6CooyqGY1PcnaxVXHLtbGZ/KFwBplXbGt4RNT/V8xTOqYmfo9RojZaDlM0srDu2I7OLyNxzFHzu9hNhhXfAks52lEOTlesrfYNwMsnoZKxXDeJaGJAYLdX+jQ6HmDcG9BwHWHlIX7n0VIbveGMHC16OfM0JUEOHCQixfDCOE9AjPYrQ/1MIb5zCTzVxmYGfEhG6iX6yNzRkZZLtkBGMF/mBilst8Ss8egDjusCTo7F0Rl9DPTJgitMtRJ8O37BDRiqpfPb1gOCThs3odQ1L7Ec2wafH9y9Av7369v+gLzmDV0anzYstY0IroSPXZ2hPTug0EL9PD8fHxmHG7v/JtcCYfDauMqAw0SQ9RQ2Ct56hKPqqmmj6ivAVXuxwAtPJWx254x895Tbiqty9A1pt5nCWOQ5wi/0S+cHQ5+EEQUWtJ9oJm7C/y/wLKfv2xq+4OhG2tS0AzeMNTtU5MnJGmAo5Pw4fFlQercVK2C...]

[HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.]
   System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +198
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString, Purpose purpose) +432
   System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter2.Deserialize(String serializedState, Purpose purpose) +8
   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter2 formatter, String serializedState, Purpose purpose) +40
   System.Web.UI.HiddenFieldPageStatePersister.Load() +248
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +88
   System.Web.UI.Page.LoadAllState() +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6704
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +245
   System.Web.UI.Page.ProcessRequest() +72
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +58
   ASP.default_aspx.ProcessRequest(HttpContext context) in App_Web_4kwvlqja.12.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69










"

该论坛支持.Net Framwork设置。我认为您的问题与论坛无关。

The forum supports .Net Framwork setup. And I think your issue isn't related to the forum.

我建议您将问题发布到ASP.NET论坛以获得更好的支持。

I suggest that you post your issue to ASP.NET forum for better support.

http://forums.asp.net/

我将把线程移到离题论坛。感谢您的理解。

I will move the thread to off-topic forum. Thanks for your understanding.

Reagrds。