Wrox Programmer Forums
|
BOOK: Beginning ASP.NET Dynamic Websites w/ Web Matrix
This is the forum to discuss the Wrox book Beginning Dynamic Websites: with ASP.NET Web Matrix by Dave Sussman, James Greenwood, Alex Homer, Colt Kwong, John M. West; ISBN: 9780764543746
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Dynamic Websites w/ Web Matrix 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 December 9th, 2004, 12:04 AM
Authorized User
 
Join Date: Dec 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default beginner...help needed


"The scripting language 'C#' is not found on the server."

i am getting this error while executing a simple .aspx page.
how to solve this?

thanks in advance

rahman

 
Old December 9th, 2004, 09:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Can you give us some more information? Have you installed the .NET framework? etc..

 
Old December 10th, 2004, 12:24 AM
Authorized User
 
Join Date: Dec 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes..I have installed .NET Framework Redistributable...installed IIS server. Created an user with the name ASPNET. Created an virtual directory. then i placed a simple program as follows..

<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>

when i tried to execute this, (localhost/virtualDirectory...) got this error
"The scripting language 'C#' is not found on the server."
(if i write only html tags...no error)
I have set the environment variable 'path' also. I have executed many c# programs (Windows Forms)in my pc.But my first asp.net program is not working...any thing to do with IIS settings?
do u need any thing else
thanks for considering my query
waiting for ur reply
rahman
but while

 
Old December 10th, 2004, 09:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Can you replace all of your code with VB.NET code and language="VB"? Try that and see what happens.

Just in case you need it.
Sub Page_Load(Src As Object, E As EventArgs)

End Sub


 
Old December 13th, 2004, 02:40 AM
Authorized User
 
Join Date: Dec 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

again i am getting the same error,

The scripting language 'VB' is not found on the server.

shall i reinstall the IIS server?

 
Old December 13th, 2004, 08:30 AM
Authorized User
 
Join Date: Dec 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi frnds
I got this problem solved..
problem was...i installed sdk prior to IIS
so there was no mapping for .aspx to aspnet_isapi.dll
i installed sdk again..
its working well and good now
thanks for considering my question
i will come back with some useful question..
thanks stu9840
rahman






Similar Threads
Thread Thread Starter Forum Replies Last Post
A beginner who needs need help Jamesbizprocom Beginning PHP 1 June 28th, 2007 11:02 PM
Beginner Needs Help Leanne Java Basics 1 September 27th, 2006 09:16 AM
Need help - C++ beginner Satheesh C++ Programming 13 August 7th, 2004 09:18 PM
Beginner acko ADO.NET 1 October 27th, 2003 08:23 AM
Beginner NEED HELP!! nvillare VB.NET 4 September 18th, 2003 02:44 PM





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