Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 23rd, 2003, 07:23 PM
Registered User
 
Join Date: Jul 2003
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

 
Old July 24th, 2003, 01:11 AM
Authorized User
 
Join Date: Jun 2003
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
 
Old July 24th, 2003, 03:38 AM
Authorized User
 
Join Date: Jun 2003
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
 
Old July 24th, 2003, 10:22 AM
Registered User
 
Join Date: Jul 2003
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

 
Old July 29th, 2003, 03:09 AM
Authorized User
 
Join Date: Jun 2003
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.