应用托管问题 [英] Application hosting problem

查看:59
本文介绍了应用托管问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经开发了一个asp.net网站,并将其托管在具有IIS版本7.5的Windows Server 2008-R2 Enterprise上. 当用户成功登录后,我会将用户重定向到Page1.aspx.在page1中,我从用户收集一些输入,并在表单提交时将它们重定向到Page2.aspx.
但是它没有被重定向到page2.aspx,而是再次进入了登录页面".

在以下情况下它可以正常工作:
1.我将我的应用程序托管在另一台计算机上,该计算机的Windows Server 2008具有相同的IIS版本(7.5).
2.在WINDOWS7 Ultimate中也可以正常工作(与IIS版本相同).
3.它在开发中工作正常,没有任何异常

谁能帮我解决这个问题.

感谢和问候
阿伦.


I have developed an asp.net website and I hosted it on windows server 2008-R2 Enterprise which is having IIS version 7.5.
When the user logged in successfully I am redirecting the user to Page1.aspx .In page1 I am collecting some inputs from the user and on form submit I am redirecting them to Page2.aspx.
"But it is not getting redirected to page2.aspx ,instead it''s again going to login page".

It is working fine in the following scenarios:
1.I hosted my application in another machine which is having windows server 2008 with the same IIS version(7.5).
2.In WINDOWS7 ultimate also it''s working fine(same IIS version).
3.It is working fine in development with out any exception

Can anybody help me to solve this issue.

thanks and regards
Arun.

推荐答案

1.检查web.config,也许该用户无法访问page2.
2.检查page2代码.也许这个用户被其中的代码踢了.
3.无论如何,您在page1中执行的所有操作都不应清除现有的会话信息.即没有任何session.kill函数调用,也不要从代码中重新填充包含用户ID的会话变量.

我希望其中一些会有所帮助.如果没有给我看一些代码,也许我还能考虑更多.
1. check the web.config perhaps the page2 cant be accessed by this user.
2. check the page2 code. perhaps this user is being kicked by the code inside that.
3. All the operations in page1 that you are performing should not in anyway clear the existing session information. i.e. no session.kill sort of function call and do not repopulate the session variable containing the userid from your code.

I hope some of this will help. if not show me some code and perhaps i can think more.


这篇关于应用托管问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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