Groups > Asp .Net > ASP.NET Installation and setup > Re: Blank page rendered with asp.net 2 - .net not processed?




Re: Blank page rendered with asp.net 2 - .net not processed?

Re: Blank page rendered with asp.net 2 - .net not processed?
Tue, 25 Mar 2008 14:20:58 +000
Test with a Hello World page.

Jeff
Post Reply
Re: Blank page rendered with asp.net 2 - .net not processed?
Tue, 25 Mar 2008 14:32:56 +000
Thanks Jeff.  Tested with Hello World page (aspx page containing label with text
set to hello world) and page can't be displayed.
Server Error in '/' Application. 

Runtime Error


Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application error
from being viewed remotely (for security reasons). It could, however, be viewed
by browsers running on the local server machine. 
 

I also created a previous page that just contained the text "hello
world" to confrim that the .aspx extension could be resolved - and this
displayed OK, leading me to think that the issue is with processing the aspx
code itself.
Post Reply
Re: Blank page rendered with asp.net 2 - .net not processed?
Tue, 25 Mar 2008 15:48:23 +000
Obvious question:  Did you follow the error's instructions and if so, what
happened?

Obvious answer from a search of the forums:  Configure your folder as an
application in IIS.

Jeff
Post Reply
Blank page rendered with asp.net 2 - .net not processed?
Tue, 25 Mar 2008 16:04:34 +000
Hiya,

I've recently deployed a site from my local host (where it worked fine) to the
internet and found that I can only gte a blank page displayed, nothing else. 
I've checked the source of the page and it is simply an empty html page and
checked the event viewer on the server and there's nothing recorded there.

It seems to me that the web server can't process the .net code, but the .net
framework is installed on the server.  BTW, I've checked my connection string
and db to confriom it's nothing to do with them.

Has anyone got any top tips of things that I cna check/do in order to get this
working please?

N.B. Running on IIS6 on Windows2003 web server.
Post Reply
Re: Blank page rendered with asp.net 2 - .net not processed?
Tue, 25 Mar 2008 16:33:20 +000
Well...I did follow the error's instructions and set the error detail to show
and the error is in line 1 inheriting the code behind:
Server Error in '/' Application. 

Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error details
and modify your source file appropriately. 

Parser Error Message: Could not load type 'ob.net.test'.

Source Error:





Line 1:  <%@ Page Language="vb" AutoEventWireup="false"
CodeBehind="test.aspx.vb" Inherits="ob.net.test" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Source File: /test.aspx    Line: 1 
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET
Version:2.0.50727.1433 

Again, this works locally and 'ob.net.test' exists within the application.  It's
bonkers.  Am going to give the server a kick tonight to see if that makes a
difference.  Interestingly, although everything references v2.0 of .NET,
Administrative Tools only shows links to v1.1, but don't think that is the issue
(as it would at least know to process aspx files).

From what I've gleaned from other forums/discussions/etc the blank page comes
when it isn't possible to render the .net elements of the page.  With my
original (not test) page, this is the whole page, hence the lack of error I
guess.
Post Reply
<< Previous 1 2 Next >>
( Page 1 of 2 )
about | contact