 |
| ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.1 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
|
|
|
|

August 24th, 2005, 11:13 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
|
|
Basic Dot Net Code.
Hi All,
Below is a simple .net code, why this is not working?
--------
<html>
<head>
<title>Welcome Page</title>
</head>
<body>
<form name="first" id="first" Runat="Server">
<h2>Welcome to My Store</h2>
<p>Enter your name in the box below and click the button for our special offers.</p>
Name: <asp:TextBox id="NameIn" name="NameIn" Runat="Server"/>
</form>
</body>
</html>
--------------
TextBox is not shown, rest works fine.
IIS is 5.0 and O.S. W2k server, Framework 1.1
Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
|
|

August 24th, 2005, 02:16 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
|
|
If this is a standard HTML page it will not work, you need to create a page with the .aspx extention.
|
|

August 25th, 2005, 04:21 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
|
|
Ofcourse, it is saved with .aspx extension.
Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
|
|

August 25th, 2005, 05:35 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
This sounds like a configuration error where IIS is not aware of ASP.NET. You probably still see the markup for the text box in the source of the page in the browser, right?
Make sure you install the .NET Framework after you install IIS.If you already installed both, search this forum for aspnet_regiis for tips on reconfiguring IIS.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

August 25th, 2005, 10:37 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
|
|
Hi Imar,
You are correct, it is due to installation order.
anyway i do have solve that prob but now getting new prob that, when i run the file it gives another error wiz.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Line 40: <authentication mode="None" />
I think this is at webconfig file but don't know how do i solve it.
Please advice.
Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
|
|

August 25th, 2005, 10:47 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
|
quote:This error can be caused by a virtual directory not being configured as an application in IIS.
|
And did you configure your web site in IIS as an Application??
If not, open the properties for the site in IIS and on the Home Directory tab click the Create button.
A search on Google should bring up many helpful articles for this problem.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

August 26th, 2005, 12:32 PM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Remove the following element from the Web.config file in
<authentication mode="None" />
Or Replace that code with
<authentication mode="Windows" />
|
|

August 29th, 2005, 09:53 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
|
|
is there any risk involved in creating virtual directory in IIS? since i m not admintr, but still have access to IIS on remote server, if i creat Viru Dir, will it be harmfull or where else i can effect?
Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
|
|

September 2nd, 2005, 10:55 AM
|
|
Authorized User
|
|
Join Date: Aug 2005
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Are you sure it is saved with the aspx extension?
|
|

September 3rd, 2005, 04:42 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
|
|
obviously...it is saved as .aspx file.
Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
|
|
 |