Using IIS6 on Windows Server 2003, I've created this simple ASPX code and copied into 'C:\Inetpub\wwwroot':
<%@ Page Language="VB" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
lblVersion.Text = "Your server is running ASP.NET and the version is " & System.Environment.Version.ToString()
End Sub
</script>
<html>
<head>
<title>ASP.NET Version</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Label ID="lblVersion" runat="server"></asp:Label>
</form>
</body>
</html>
When I try to access 'http://myserver/test.aspx', I get a "HTTP/0.9 200 OK" response,
but with a completely blank and empty page.
If I access 'http://myserver/test.html' (with HTML code), I get a right webpage.
Thank you very much for your answers. I'm still experiencing this issue.
At IIS > Extensions - ASP.NET v2.0.50727 ..... allowed - Active Server Pages .... allowed
At IIS > Web Sites > Default web sites > Properties > Particular Directory > Configuration - 'aspx' is included, and executed by C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
I do not know what I am doing wrong. Thank you very much
I believe ASP.NET is not properly installed on your machine and hence, the ASPX page is not rendered properly. Please make sure you install the correct asp.net version and let me know the error message (if any)
None
0 Points
3 Posts
IIS+ASPX Server returns an empty page
Jul 13, 2011 06:34 AM|MacWind|LINK
Member
548 Points
491 Posts
Re: IIS+ASPX Server returns an empty page
Jul 13, 2011 08:30 AM|shree_ars|LINK
check the configuration of IIS, that it enables the webpage content to view.
None
0 Points
3 Posts
Re: IIS+ASPX Server returns an empty page
Jul 14, 2011 07:04 AM|MacWind|LINK
Thank you very much.
Which part of the configuration?
Contributor
4524 Points
1764 Posts
Re: IIS+ASPX Server returns an empty page
Jul 14, 2011 07:13 AM|amitpatel.it|LINK
This is the problem because in IIS 6.0 you have not enable extenssion of aspx pages.
To get engable this follow below steps.
1. Open your IIS
2. Select Extenssion from your iis
3, Select your appropritte page with version and enable it by right click.
Let me know if still this is not working.
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
Member
548 Points
491 Posts
Re: IIS+ASPX Server returns an empty page
Jul 14, 2011 07:27 AM|shree_ars|LINK
in IIS under the properties of ur virtual directory
Properties-->Virtual Directory-->Configuration
check your .ascx pages has Application mapping in it
Contributor
3390 Points
1079 Posts
Re: IIS+ASPX Server returns an empty page
Jul 14, 2011 11:42 PM|kctt|LINK
Right click on website in IIS manager and check ASP.NET tab to verify correct asp.net version is configured for the website.
None
0 Points
3 Posts
Re: IIS+ASPX Server returns an empty page
Jul 15, 2011 04:16 AM|MacWind|LINK
Member
548 Points
491 Posts
Re: IIS+ASPX Server returns an empty page
Jul 15, 2011 05:02 AM|shree_ars|LINK
make some screen shots so that we can solve it.
Contributor
5231 Points
1602 Posts
Re: IIS+ASPX Server returns an empty page
Jul 16, 2011 12:05 AM|necro_mancer|LINK
hi macwind,
I believe ASP.NET is not properly installed on your machine and hence, the ASPX page is not rendered properly. Please make sure you install the correct asp.net version and let me know the error message (if any)
Contributor
4524 Points
1764 Posts
Re: IIS+ASPX Server returns an empty page
Jul 16, 2011 01:33 AM|amitpatel.it|LINK
from your above explation I believe asp.net is not proper configure in your IIS
so first uninstall and and then install in your IIS
aspnet_regiis -u // unistall
aspnet_regiis -i //install
Go with below links for more details with each steps
http://msdn.microsoft.com/en-us/library/k6h9cz8h(v=vs.80).aspx
also after then make sure you again you have allowed asp.net from your IIS as you have already define.
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
Contributor
5231 Points
1602 Posts
Re: IIS+ASPX Server returns an empty page
Jul 18, 2011 11:49 PM|necro_mancer|LINK
Hi shree,
have you managed to get it working now? Please keep us posted
Member
548 Points
491 Posts
Re: IIS+ASPX Server returns an empty page
Jul 19, 2011 12:43 AM|shree_ars|LINK
You try to reinstall the framework by following commands
aspnet_regiis