AllExperts > Experts 
Search      

Active Server Pages Programming (ASP)

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Active Server Pages Programming (ASP) Answers
Question Library

Ask a question about Active Server Pages Programming (ASP)
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Chris
Expertise
I can answer pretty much any question relating to VB.NET and its use in a Windows environment. I can also handle most questions using C#. I specialize in ASP.NET web development and MSSQL database access, but have some stale knowledge of the old ASP - I'd prefer to avoid questions about it.

Experience
I have over 5 years of industry experience using VB.NET and other .NET technologies for web and database development.

Education/Credentials
I have some college education, but does it really matter in this field of work?

 
   

You are here:  Experts > Computing/Technology > Business Software > Active Server Pages Programming (ASP) > ASP.Net - Does Not Display Anything

Topic: Active Server Pages Programming (ASP)



Expert: Chris
Date: 9/25/2007
Subject: ASP.Net - Does Not Display Anything

Question
Dear Sir,
 I am using  .Net Frame Work 1.1  and IIS 5.1 with Macromedia DreamWeaver Mx 2004,  while  running the following code
<html>
<head>
<title>Example 1: Hello World</title>
</head>
<body bgcolor=white>
<h1>
<% response.write("Hello World") %>
</h1>
</body>
</html>
it works correctly while saving with .asp extension. While Saving with .aspx extension it just displays an empty page. it also comes while running the  following code

<%@ Page Language="VB" %>
<%@ Import Namespace="System.Data" %>
<html><body>
<asp:TextBox value="Welcome to ASP.NET!" runat="server"/>
<\n>
<asp:DataGrid value="sdfsf" runat="server"/>
</body></html>

For This Problem I install  The .Net Frame Work 2.0 It Displays an Error Message like the following

Back grouond error :  You  are trying to execute IMAPI, CGI
The Page Cannot Be Displayed.

Please Help Me.

Thanking You,

Yours,
N.Gopalakrishnan

Answer
While I'm not sure I understand the error messages you've provided, it sounds to me like your installation of IIS is unaware of the ASP.Net extensions.  You could try using the aspnet_regiis tool located at %systemroot%\Microsoft.net\Framework\<version #>\aspnet_regiis.exe.  

You can run it with the -lv option to view the installation status of ASP.Net:
aspnet_regiis -lv

To remove all versions of ASP.Net from IIS, run it with the -ua option:
aspnet_regiis -ua

Then run it again with the -i option to re-install ASP.Net:
aspnet_regiis -i

Finally, you'll want to go into Control Panel -> Administrative Tools -> Internet Information Services Manager.  Find the web site you're developing on, and go to its properties.  On the ASP.Net tab, make sure the correct version of the framework is selected.  You should also click on the "Web Service Extensions" folder in the IIS Manager, and make sure that the version of ASP.Net that you want to use is Allowed to run.

Hope this helps..

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.