运行网站时的空白页 [英] Blank page when running web site

查看:70
本文介绍了运行网站时的空白页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从一个两年前离开公司的同事那里继承了一个项目.我只需要部署它,然后得到的是一个包含项目文件的zip文件.

该项目是用ASP.Net 2003编写的,但我无法在计算机上安装该项目,因为Frontpage扩展未安装在我的计算机上,也无法在Vista中使用.

我将该项目升级到了2008年,看起来还可以,然后尝试运行它.

我所得到的只是一个原始的空白屏幕.我看不到源代码,只是空白.我已经设置了异常处理来显示抛出的以及未处理的错误,并且在启动页面的page_load上设置了一个断点.

有谁知道是什么原因导致这种情况,或者至少我该如何使代码在断点处停止?

干杯

Russ

I''ve inherited a project from a colleague who left the business 2 years ago. I only need to deploy it and what I was given was a zip file containing the project files.

The project was written in ASP.Net 2003 but I can''t install that on my machine because Frontpage extensions aren''t installed on my machine and aren''t available for Vista.

I upgraded the project to 2008 which seemed to go OK and tried to run it.

All I get is a pristine blank white screen. I can''t view source, it''s just blank. I''ve set exception handling to show up thrown as well as unhandled errors and I''ve put a breakpoint on the page_load in the startup page.

Does anyone know what might cause this or at least how I can get the code to stop at my breakpoints?

Cheers

Russ

推荐答案

您可以在Page_Load事件中编写一些代码,例如Response.Write("I am here.");如果看到显示,您就知道问题所在在page_load之后存在.否则,将发生Page_init事件.请尝试一下.
You may write some code in Page_Load event like Response.Write("I am here.''); If you see the display, you know the problem exists after page_load. Otherwise, Page_init event. Just some suggestion to try.


我已将此问题归结为没有在我的计算机上启用状态会话服务器.

在xp VM中安装VS2003,代码立即中断,并显示一条正确的错误消息.在2003年进行了修复,并确保它能正常工作,然后在2008年进行了相同的修复,问题已经消失了.进步吧.

感谢所有尝试提供帮助的人,非常感谢您的帮助.

Russ
I''ve tracked this problem down to not having the State session server enabled on my machine.

Installed VS2003 in an xp VM and the code broke straight away with a proper error message. Made the fix on 2003 and made sure it worked then made the same fix in 2008 and the problem has gone away. That''s progress eh.

Thanks to everyone who tried to help, your assistance is greatly appreciated.

Russ


我的事情是,控件在设计时不可见,但运行时可见,但代码可在codepage(.aspx.cs/vb)中找到.
如果您的代码中有任何断点,则需要一段时间.在设计时看不到控件.因此删除断点(按Ctrl + Shift + Delete).然后按F6,然后保存并关闭项目,然后打开.u可以看到所有控件都在页面中
i thing, controls are invisible in design time but run time visible but codes are available in codepage(.aspx.cs/vb).
some time if any break point in your code. control are not visible in design time . so remove the break point(press Ctrl+shift+delete).then press F6 ,then save and close the project then open.u can see all controls are in the page


这篇关于运行网站时的空白页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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