.net页面不会回发。 [英] .net pages would not post back.

查看:76
本文介绍了.net页面不会回发。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序是在4#nbsp; Windows 2008服务器的Web场上运行的c#.net 4.0。 该应用程序在两台服务器上运行良好,但不能在其他两台服务器上运行。 在这两个问题服务器上,页面将不允许回发。 
只有客户端链接和事件正在运行。 当我点击按钮或回发到aspx文件的链接时,页面会重新加载。 任何想法可能发生的事情或我如何找到正在发生的事情。 这只发生在生产服务器的
上,因此,我无法调试应用程序。  我没有看到应用程序的任何错误或服务器事件日志中的任何错误。

解决方案

很久以前我遇到了类似的问题,问题是我在wwwroot文件夹中没有
aspnet_client
目录。 / p>

您可以验证生产服务器上是否有该文件夹,否则您可以从其他两个工作服务器复制它。


另一个原因可能是IIS上IIS经典/集成模式配置的差异。


http://stackoverflow.com/questions/4673291/event-handlers-might-not-be-not-raised-in-a-default -document-in-iis-7-or-iis-7-5


你不介意在
http://forums.asp.net/
 以及特定于
http://forums.iis.net/



I have my application in c# .net 4.0 running on a Web Farm of 4 Windows 2008 servers.  The application runs fine on two servers but it doesn't run on the other two servers.  On the two problem servers the pages won't allow a post back.  Only the client side links and events are working.  When I hit a button or a link that post backs to the aspx file the page just reloads back.  Any ideas what might be happening or how I can find what's happening.  This happens only on the production servers so, I can't debug the app.  I don't see any errors from the application or any errors in the event logs of the server.

解决方案

Long back I was having a similar issue and the problem was I was not having aspnet_client directory on wwwroot folder.

You can verify if you have that folder on your production server otherwise you can just copy it from other two working server.

Another reason could be of difference in IIS Classic/Integrated mode configuration on IIS.

http://stackoverflow.com/questions/4673291/event-handlers-might-not-be-not-raised-in-a-default-document-in-iis-7-or-iis-7-5

Would you not mind to post your question specific to asp.net on http://forums.asp.net/ and IIS specific to http://forums.iis.net/


这篇关于.net页面不会回发。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆