Matar Posted August 25, 2006 Share Posted August 25, 2006 hi i have an error when i running the asp.net pageswhen i wrote localhost/index.aspxi see a blank page why ?i install the .netframework and the IIS what else is needed to run asp.net pages ?regards Link to comment Share on other sites More sharing options...
aspnetguy Posted August 25, 2006 Share Posted August 25, 2006 what version of windows are you using? Can you post your code? Link to comment Share on other sites More sharing options...
Matar Posted August 25, 2006 Author Share Posted August 25, 2006 i have a xp windows sp2 this is the code <script runat="server">Sub Page_Load lbl1.Text="The date and time is " & now()End Sub</script><html><body><form runat="server"><h3><asp:label id="lbl1" runat="server" /></h3></form></body></html>thanks Link to comment Share on other sites More sharing options...
aspnetguy Posted August 25, 2006 Share Posted August 25, 2006 add this as the first line of the page<%@ Page Language="VB" Debug="True" %>Any change? Link to comment Share on other sites More sharing options...
Matar Posted August 25, 2006 Author Share Posted August 25, 2006 no changes ?? thanks Link to comment Share on other sites More sharing options...
aspnetguy Posted August 25, 2006 Share Posted August 25, 2006 what version of the .Net framework did you install?Did you have IIS installed before you installed the .Net framework or di you install it after you installed .Net?Test a regular .html page (localhost/index.html) to see if IIS is functioning correctly. Link to comment Share on other sites More sharing options...
Matar Posted August 25, 2006 Author Share Posted August 25, 2006 ya when i try a simple html page its work and classic asp pages its works ...i installed the IIS before The .netframework !!thank you Link to comment Share on other sites More sharing options...
aspnetguy Posted August 25, 2006 Share Posted August 25, 2006 Open Control Panel -> Administrative Tools - > Internet Information servicesexpand the tree once. You should see options like Websites, Application Pools, etc.Is there one (near the bottom) that says Web Service Extension?If there is click on it. You should see tot he right a list of extension allowed to run on IIS. Is ASp.Net there? Is is Allowed? Link to comment Share on other sites More sharing options...
Matar Posted August 25, 2006 Author Share Posted August 25, 2006 hi no nothing there like you say there are just all the pages thats stroed in wwwroot and the asp.net pages show with the .aspx extwhat is that ?i setup some options and when i run the pages i see this Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. Link to comment Share on other sites More sharing options...
pulpfiction Posted August 25, 2006 Share Posted August 25, 2006 ASPNETGUY, even i dont see such options in IIS manager. 2 options that i see are "website" and "default SMTP virtual server" but .NET works fine in my system... Link to comment Share on other sites More sharing options...
aspnetguy Posted August 25, 2006 Share Posted August 25, 2006 I wasn't sure if it would be there or not...it must only be in IIS6...I don't know what to tell you. I can't think of any other reason why it would not work Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. go into IIS and navigate to Application pools, expand this node and right click and choose Recycle or Start for each app pool you see listed there. Link to comment Share on other sites More sharing options...
ian Posted August 31, 2006 Share Posted August 31, 2006 I have the same problem. aspx page with controls displays empty. Page with static text is ok. ASP page is ok too.In my IIS I don't have Application pools note. Where it must be?I installed the IIS after The .netframework. Is it a problem?Help please ! Link to comment Share on other sites More sharing options...
aspnetguy Posted August 31, 2006 Share Posted August 31, 2006 I have the same problem. aspx page with controls displays empty. Page with static text is ok. ASP page is ok too.In my IIS I don't have Application pools note. Where it must be?I installed the IIS after The .netframework. Is it a problem?Help please !Ah yes that is a big problem :)uninstall both the .Net framework and IIS. Then install IIS then the .Net framework.IIS must be installed first for the framework to configure itself properly. Link to comment Share on other sites More sharing options...
ian Posted August 31, 2006 Share Posted August 31, 2006 Thank you very much!I uninstall .Net Framework and then install it.Now it's ok. Link to comment Share on other sites More sharing options...
aspnetguy Posted August 31, 2006 Share Posted August 31, 2006 good to hear...have fun learning .Net! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now