473,782 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET not processing CSharp code

Hello,
I'm having a problem with ASP.NET using IIS 5.1 on a Windows XP Pro machine.
ASP.NET will not process the following code:
*************** *************** *
<html>
<head>
</head>
<body>
<form method= "post" runat="server">
<asp:Label id=lblHelloWorl d text="HelloWorl d" runat=Server />
<br>
<asp:Button onclick=Clicked It text="Submit" runat=server />
</form>
</body>
<script Language=C# runat=Server>
void ClickedIt (Object sender, System.EventArg s e)
{
lblHelloWorld.T ext = ".NET Rules!";
}
</Script>
</html>
*************** ***************
This code is in a page called HelloWorld.aspx , and the expressed address bar
syntax of the IE 6.0 browser is localhost/HelloWorld.aspx . The file is
located at C:\InetPub\wwro ot, which is configured as the the local path in
the properties of the default web site. When I attempt to render this page
in the browser, the page comes up blank. After attempting to render the
page, View\Source shows the code exactly as it appears above.

I experienced a similar problem with IIS 5.1 on a Windows 2000 Pro box. The
difference was that when I tried to render the page in the same type and
version of browser, I got the following message:

"Server Application Unavailable

The web application you are attempting to access on this web server is
currently unavailable. Please hit the "Refresh" button in your web browser
to retry your request.

Administrator Note: An error message detailing the cause of this specific
request failure can be found in the application event log of the web server.
Please review this log entry to discover what caused this error to occur."

The application log did not show any events. On the 2000 box, I went to the
properties of the default web site, on the Home Directory tab, and saw that
there was no 'Application Name'. I clicked the 'Create' button and created
'Default Application'. After I did this, the page worked fine, and
View/Source showed the following code:
*************** *************** *****
<html>
<head>
</head>
<body>
<form name="_ctl0" method="post" action="hellowo rld.aspx" id="_ctl0">
<input type="hidden" name="__VIEWSTA TE"
value="dDwtOTUx OTE4ODcwOzs++2Z Lq58Ul7wMXQDdnn hWV0I67IQ=" />

<span id="lblHelloWor ld">HelloWorl d</span>
<br>
<input type="submit" name="_ctl1" value="Submit" />
</form>
</body>

</html>
*************** *************** *****
I tried to do the same thing with the 'Application Name' on the XP box, but
the page would still not render anything at all. On both machines, the
domain users have local admin rights.

Why would ASP.NET on the XP box not render the code?

Thanks for your help!

CSDunn
Nov 18 '05
10 1339
Kevin,
I did as instructed below, and everything works fine. Thanks for your help!

CSDunn
"Kevin Spencer" <ke***@takempis .com> wrote in message
news:um******** ********@TK2MSF TNGP11.phx.gbl. ..
No, not at all necessary. All that is necessary is to install ASP.Net on the web server. This can be done with the aspnet_regiis.e xe Command-line utility fond at (approximate - adjust for your system)
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ aspnet_regiis.e xe.
Run it with the -i (install) parameter, as in:

C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ aspnet_regiis.e xe - i

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"CSDunn" <cd***@valverde .edu> wrote in message
news:eO******** *****@TK2MSFTNG P12.phx.gbl...
I can see that the aspnet_isapi.dl l is included with the application
mappings on the Windows 2000 machine, but is not present on the XP box.

When I installed Visual Studio 2003 on the XP Box, the .NET Framework
version 1.1 was also installed, but I guess ASP.NET was not part of the
install package.

Should I uninstall the .NET Framework 1.1 on the XP box and install the the
.NET Framework 1.1 Redistributable , or should I just install the
Redistributable over what is on the XP box now? Is there some way to

install
ASP.NET for XP other than instaling the .NET Framework 1.1

Redistributable ?

Thanks again for your help!

CSDunn

"Kevin Spencer" <ke***@takempis .com> wrote in message
news:uw******** ******@TK2MSFTN GP09.phx.gbl...
In IIS Admin snap-in, go to the Properties dialog box for a web site, Home Directory tab, and click "Configurat ion" - The ISAPI mappings are one of
the
tabs in that section.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"CSDunn" <cd***@valverde .edu> wrote in message
news:ew******** *****@TK2MSFTNG P12.phx.gbl...
> I checked into that, and found a place where I could change ISAPI

filters,
> but not 'mappings'. What am I looking for?
>
> Thanks again!
>
> CSDunn
>
> "Kevin Spencer" <ke***@takempis .com> wrote in message
> news:OV******** ******@TK2MSFTN GP12.phx.gbl...
> > Only checking the ISAPI mapping s will tell you whether ASP.Net is
> installed
> > on your web server.
> >
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> >
> > "CSDunn" <cd***@valverde .edu> wrote in message
> > news:Ot******** ******@TK2MSFTN GP12.phx.gbl...
> > > The XP box has the .NET Framework 1.1 and the Visual J#
redistributable
> > > package 1.1 (which came with Visual Studio 2003) installed. I

noticed
> when
> > I
> > > went to the ASP.NET site that the download for this was
contained within
> > the
> > > .NET Framework 1.1 Redistributable Package.
> > >
> > > Is there a difference between .NET Framework 1.1 and .NET Framework 1.1
> > > Redistributable Package? Would it have anything to do with this
problem?
> > >
> > > I will also check the ISAPI mappings.
> > >
> > > CSDunn
> > >
> > >
> > > "Kevin Spencer" <ke***@takempis .com> wrote in message
> > > news:OD******** ******@TK2MSFTN GP10.phx.gbl...
> > > > Is ASP.Net installed on the web server for the XP box? Check the ISAPI
> > > > mappings.
> > > >
> > > > --
> > > > HTH,
> > > > Kevin Spencer
> > > > .Net Developer
> > > > Microsoft MVP
> > > > Big things are made up
> > > > of lots of little things.
> > > >
> > > > "CSDunn" <cd***@valverde .edu> wrote in message
> > > > news:#T******** ******@TK2MSFTN GP11.phx.gbl...
> > > > > Hello,
> > > > > I'm having a problem with ASP.NET using IIS 5.1 on a Windows XP Pro
> > > > machine.
> > > > > ASP.NET will not process the following code:
> > > > > *************** *************** *
> > > > > <html>
> > > > > <head>
> > > > > </head>
> > > > > <body>
> > > > > <form method= "post" runat="server">
> > > > > <asp:Label id=lblHelloWorl d text="HelloWorl d" runat=Server /> > > > > > <br>
> > > > > <asp:Button onclick=Clicked It text="Submit" runat=server />
> > > > > </form>
> > > > > </body>
> > > > > <script Language=C# runat=Server>
> > > > > void ClickedIt (Object sender, System.EventArg s e)
> > > > > {
> > > > > lblHelloWorld.T ext = ".NET Rules!";
> > > > > }
> > > > > </Script>
> > > > > </html>
> > > > > *************** ***************
> > > > > This code is in a page called HelloWorld.aspx , and the expressed > > address
> > > > bar
> > > > > syntax of the IE 6.0 browser is localhost/HelloWorld.aspx . The file
> is
> > > > > located at C:\InetPub\wwro ot, which is configured as the the loc
al
> > path
> > > in
> > > > > the properties of the default web site. When I attempt to

render > this
> > > page
> > > > > in the browser, the page comes up blank. After attempting to
render
> > the
> > > > > page, View\Source shows the code exactly as it appears above. > > > > >
> > > > > I experienced a similar problem with IIS 5.1 on a Windows
2000 Pro
> > box.
> > > > The
> > > > > difference was that when I tried to render the page in the same type
> > and
> > > > > version of browser, I got the following message:
> > > > >
> > > > > "Server Application Unavailable
> > > > >
> > > > > The web application you are attempting to access on this web
server
> is
> > > > > currently unavailable. Please hit the "Refresh" button in your web
> > > > browser
> > > > > to retry your request.
> > > > >
> > > > > Administrator Note: An error message detailing the cause of this > > > specific
> > > > > request failure can be found in the application event log of the web
> > > > server.
> > > > > Please review this log entry to discover what caused this error
to
> > > occur."
> > > > >
> > > > > The application log did not show any events. On the 2000

box, I went
> > to
> > > > the
> > > > > properties of the default web site, on the Home Directory

tab, and
> saw
> > > > that
> > > > > there was no 'Application Name'. I clicked the 'Create'
button and
> > > created
> > > > > 'Default Application'. After I did this, the page worked
fine, and
> > > > > View/Source showed the following code:
> > > > > *************** *************** *****
> > > > > <html>
> > > > > <head>
> > > > > </head>
> > > > > <body>
> > > > > <form name="_ctl0" method="post" action="hellowo rld.aspx"
> id="_ctl0">
> > > > > <input type="hidden" name="__VIEWSTA TE"
> > > > > value="dDwtOTUx OTE4ODcwOzs++2Z Lq58Ul7wMXQDdnn hWV0I67IQ=" />
> > > > >
> > > > > <span id="lblHelloWor ld">HelloWorl d</span>
> > > > > <br>
> > > > > <input type="submit" name="_ctl1" value="Submit" />
> > > > > </form>
> > > > > </body>
> > > > >
> > > > > </html>
> > > > > *************** *************** *****
> > > > > I tried to do the same thing with the 'Application Name' on

the
XP
> > box,
> > > > but
> > > > > the page would still not render anything at all. On both

machines,
> the
> > > > > domain users have local admin rights.
> > > > >
> > > > > Why would ASP.NET on the XP box not render the code?
> > > > >
> > > > > Thanks for your help!
> > > > >
> > > > > CSDunn
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 18 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8795
by: Kate Luu | last post by:
My application was written by C# and I couldn't load the photoshop image. Are there any Pro out there know how to load the photoshop image with the file extension is: .PSD. Thanks you all in advance, I'm greatly appreciate for your help. Have a good one... Kate Luu
1
1464
by: Ramesh | last post by:
hi I am trying to insert 50,000 random records in the SQL server. I have created COM for inserting records. When i started inserting, after 44152 records it displayed following error message. " Distributed transaction completed. Either enlist this session in a new transactions or the Null transaction. "
2
1286
by: TomTom | last post by:
In my C# WinForm program, I create a new thread to do a long process of inserting data from Access files to SQL DB. The problem is that some parts of the MainForm pertially disappear while the new thread is doing its task. I found many articles on this on the Internet and followed the example from http://www.codeproject.com/csharp/workerthread.asp. Still some parts of the MainForm (buttons) disappear and it appears that the code is not...
2
4554
by: news.microsoft.com | last post by:
Hi: I work in Csharp's parser files by LEX/YACC.Now I have only CSharp-lex.l and CSharp.y file,but they not have CSharp'comment Parse. this is a part of CSharp-lex.l. ..................... /***** Comments *****/ "/*" { yy_push_state(IN_COMMENT); } <IN_COMMENT>. { ; /* ignore */ } <IN_COMMENT>\n { ; /* ignore */ }
11
1644
by: Alex | last post by:
Hello, I am sort of new to this aspect of .NET so please forgive me if that's a FAQ. I have a Windows Form that has to perform a lengthy operation when the user clicks a button. While the operation is in process, the user will not be able to do anything else from the UI but I still want the UI to pump messages (so it can be moved, etc.) What is the best way to implement it in C#? Thank you.
6
4997
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing for long running reports. When the processing is complete it uses crystal reports to load a template file, populate it, and then export it to a PDF. It works fine so far....
5
1087
by: greg.merideth | last post by:
There's an automated email an application generates, that we've found a wierd processing bug(?) with in .net 2.0 The app has the following lines. There are 20 lines above that use "\n\r" that wrap just fine: message.Body += "EONE\n\r"; message.Body += "Name Reg# Owner \n\r"; message.Body += "Association ADOwner \n\r";
15
18762
by: Michael A. Covington | last post by:
Any thoughts about how to implement image processing algorithms to run fast in C#? Using GetPixel to access every pixel from a Bitmap seems to be rather time-consuming.
1
1028
by: =?Utf-8?B?U3RldmUgVGF5bG9y?= | last post by:
I have never understood why intellisense doesn't show the available page processing events (ie Page_Load) for easy inclusion in the code-behind. Ideas? The real question: I have master pages and content pages. The Master page processes the events like "Page_Load()" but the content page only sees the actual class.functions. Example: ------------------------------------------------------------------------ Partial Public Class...
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9479
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9942
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7492
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.