Problem with ASP.NET website. Does not display anything but a blan

G

Guest

Hi

I am working on a website and suddenly this afternoon i cannot view anything
on my pages. No html is being rendered to the pages (no errors are shown
while compiling the website). I have tried clearing the temporary asp.net
folder and re-compiling the solution. But, if i try to run another project
(website) that i built for test purposes, it works fine. Can anyone let me
know what could be the problem?

Regards.
VSP Vajja.
 
S

Scott M.

How do you know that no HTML is being rendered? There is a difference
between getting a blank page and having no HTML sent to the client. For
example, simply omitting the closing <TITLE> tag on a web page will make the
entire screen appear blank, while all of the page's HTML will still be sent
to the client.

Also, HTML errors NEVER produce error messages in a browser, so I would
guess that you simply have an HTML problem.

Try to access the web page again in your browser and when you see the blank
page, view the source code of that page in the browser. This will tell you
what is being rendered to the client and, most likely, you'll be able to
look at it and determine where the problem is.
 
G

Guest

Hi Scott

Sorry if i did not make it clear in my post. I did check the source of the
page(right click on the page and select view source option).
There is nothing in the source. Just came up with a blank notepad. I tried
everything possible to get it working but failed. Any suggestions?

Regards
sVajja
 
S

Scott M.

There is a non-ASP.NET issue with not being able to view the source code of
a web page. It has to do with the browser's cache. Try clearing out your
browser's temporary internet files and look again.
 
G

Guest

I'd start out by running the app in debug mode and have a breakpoint inside
the Page_Load handler. You want to determine first of all if your Page class
is getting instantiated. Judicious wiring up of try / catch / finally
exception handling code blocks, with optional logging, can work wonders too.
Peter
 
G

Guest

Hi Scott

I think i have resolved the issue. I have noticed that when something goes
wrong in my website (compile problems or my pc's Virtual memory is too little
etc) a file by the name app_offline.htm appears in the project. Once this
file is present in the website, nothing works. I re-named this file and my
website started working again!!!

Thanks for the help

Regards
Sai Vajja.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top