Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 23rd, 2003, 07:23 PM
Registered User
 
Join Date: Jul 2003
Location: Houston, TX, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default scripting language error

I downloaded following code and ran it in the ie browser:

<script language="c#" runat="server">
void Page_Load()
{
  time.Text=DateTime.Now.Hour.ToString() + ":" +
             DateTime.Now.Minute.ToString() + ":" +
             DateTime.Now.Second.ToString();
}
</script>

<html>
<head><title>The Punctual Web Server</title></head>
<body>
  <h1>Welcome</h1>
  In WebServerLand the time is currently:
<asp:label id="time" runat="server" />
</body>
</html>

The error message appeared as: The scripting language 'c#' is not found on the server.
I have installed VS.NET and IIS on my computer that runs on Windows XP.
Any idea where what went wrong?

Thanks.

Jin

  #2 (permalink)  
Old July 24th, 2003, 01:11 AM
Authorized User
 
Join Date: Jun 2003
Location: Quezon City, MM, Philippines.
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to planeswalk
Default

Hi,

You need to make sure that .aspx files are configured to use the aspnet_isapi.dll runtime component. In your IIS, right-click your application and click on Properties. Then go to the Home Directory tab and click on the Configuration button. This window will come up with three tabs: click on the App Mappings tab and you should see a list of file extensions available in your server. Look for the .aspx extension and Edit it so it's pointing to C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_ isapi.dll or \v1.1.4322\aspnet_isapi.dll, depending on what version of .NET you have installed.


Cheers!
Marlon
  #3 (permalink)  
Old July 24th, 2003, 03:38 AM
Authorized User
 
Join Date: Jun 2003
Location: karachi, sindh, Pakistan.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to kashif Send a message via MSN to kashif Send a message via Yahoo to kashif
Default

The above reply may be right but if u have all the things installed then do not mess with then simpley unistalled the frame work from Add remove s/w and reinstall it. Now try to run the aspx page in the locall host if they wont work restart the machine they defineately will.


PEACE
  #4 (permalink)  
Old July 24th, 2003, 10:22 AM
Registered User
 
Join Date: Jul 2003
Location: Houston, TX, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Marlon and Peace:

Thanks for your help.
After I made the change you suggested, however, another error message:
The page cannot be displayed.
HTTP 500 - Internal server error

I installed VS.NET before IIS was installed. Can this cause a problem?

Thanks.

Jin


Quote:
quote:Originally posted by planeswalk
 Hi,

You need to make sure that .aspx files are configured to use the aspnet_isapi.dll runtime component. In your IIS, right-click your application and click on Properties. Then go to the Home Directory tab and click on the Configuration button. This window will come up with three tabs: click on the App Mappings tab and you should see a list of file extensions available in your server. Look for the .aspx extension and Edit it so it's pointing to C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_ isapi.dll or \v1.1.4322\aspnet_isapi.dll, depending on what version of .NET you have installed.


Cheers!
Marlon

  #5 (permalink)  
Old July 29th, 2003, 03:09 AM
Authorized User
 
Join Date: Jun 2003
Location: Quezon City, MM, Philippines.
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to planeswalk
Default

Hi,

Yes, it could cause problems as you need to have IIS installed BEFORE you install VS.NET. Also, it would be safer if you install the .NET framework first before you install VS.NET.

Cheers!
Marlon
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Python as scripting language for ASP manikandeswar Classic ASP Professional 1 June 2nd, 2008 01:06 PM
svchost .exe common language runtime error supasue VS.NET 2002/2003 0 October 25th, 2006 05:11 AM
Choice of scripting language for an ecommerce site abe MySQL 1 March 25th, 2004 12:02 PM
Using more than one scripting language aadz5 ASP.NET 1.0 and 1.1 Basics 1 November 8th, 2003 02:41 PM
VJ# - Get error 'VJ#' is not a Support Language kasie VS.NET 2002/2003 0 July 20th, 2003 05:28 AM



All times are GMT -4. The time now is 11:05 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.