Wrox Programmer Forums
|
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
 
Old August 24th, 2005, 11:13 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default 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.
 
Old August 24th, 2005, 02:16 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

If this is a standard HTML page it will not work, you need to create a page with the .aspx extention.

 
Old August 25th, 2005, 04:21 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

Ofcourse, it is saved with .aspx extension.

Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
 
Old August 25th, 2005, 05:35 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old August 25th, 2005, 10:37 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

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.
 
Old August 25th, 2005, 10:47 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old August 26th, 2005, 12:32 PM
Registered User
 
Join Date: Aug 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Remove the following element from the Web.config file in
<authentication mode="None" />

Or Replace that code with
<authentication mode="Windows" />

 
Old August 29th, 2005, 09:53 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

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.
 
Old September 2nd, 2005, 10:55 AM
Authorized User
 
Join Date: Aug 2005
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you sure it is saved with the aspx extension?

 
Old September 3rd, 2005, 04:42 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

obviously...it is saved as .aspx file.

Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I run VB .net 2005 with DOT NET 2003 APPLICATI kadesskade BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 2 August 8th, 2006 05:14 AM
Use dot net code to open outlook for attachments imsuneeta General .NET 1 August 9th, 2005 07:12 AM
using dot net 2.0 zamankazi BOOK: ASP.NET Website Programming Problem-Design-Solution 6 October 26th, 2004 04:41 PM
<Visual Basic.NET and AQL Server 2000:B&EDL>?Code? cqliucheng Wrox Book Feedback 1 September 2nd, 2004 08:13 AM





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