473,473 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASP.net does not execute

I am using VISTA . I have IIS enabled .

I installed VS 2005 successfully.

Under old ASPX you knwo you go to inetpub wwwroot and run a test
default.aspx file to see if it executes properly.

I pulled a starter program from Microsoft site and pasted it into VS
2005 at the default.aspx page of a new wesite called website1. I made
sure website1 was added into IIS and was running.

The bulid in VS 2005 went thru with no errors, but when a I run it ,
it does not execute the ASP.net code, just returns the HTML printout
of the ASP.net code in the default.aspx page indicating that asp.net
is not being executed by the IIS for one reason or other.
What I did was something like http://localhost/website1/
The page default.aspx is returned as a text page of the asp.net code
This was abig page but to explain it in simple terms, let us say you
said response.write"Hello",
the internet explorer returns "response.write"Hello"" not just
Hello (You get the idea)

I tried this on 2 PCs with Vista. Same problem.

I tried the old trick of sticking the ASP.net page into wwwroot folder
with same results.
The default htm page with the IIS 7 symbol surrounded by languages
comes up . I f I disable that page (by changing its name and goto
default.aspx page , it just shows in HTML whatever is in ASPX page
indicating that aspx engine is not processing anything or is off
whatever.

I am sure this was discussed but my search for cannot execute asp.net
returns nothing. I tried few other search phrases no luck.

Thanks for your understanding

Jul 19 '07 #1
4 2545
Have you convert virtual directory "http:/localhost/website1" to an
application? You need to go to IIS Manager to configure your web application
correctly, so that IIS knows to use ASP.NET to server that page.

<jo*****************@excite.comwrote in message
news:11**********************@r34g2000hsd.googlegr oups.com...
>I am using VISTA . I have IIS enabled .

I installed VS 2005 successfully.

Under old ASPX you knwo you go to inetpub wwwroot and run a test
default.aspx file to see if it executes properly.

I pulled a starter program from Microsoft site and pasted it into VS
2005 at the default.aspx page of a new wesite called website1. I made
sure website1 was added into IIS and was running.

The bulid in VS 2005 went thru with no errors, but when a I run it ,
it does not execute the ASP.net code, just returns the HTML printout
of the ASP.net code in the default.aspx page indicating that asp.net
is not being executed by the IIS for one reason or other.
What I did was something like http://localhost/website1/
The page default.aspx is returned as a text page of the asp.net code
This was abig page but to explain it in simple terms, let us say you
said response.write"Hello",
the internet explorer returns "response.write"Hello"" not just
Hello (You get the idea)

I tried this on 2 PCs with Vista. Same problem.

I tried the old trick of sticking the ASP.net page into wwwroot folder
with same results.
The default htm page with the IIS 7 symbol surrounded by languages
comes up . I f I disable that page (by changing its name and goto
default.aspx page , it just shows in HTML whatever is in ASPX page
indicating that aspx engine is not processing anything or is off
whatever.

I am sure this was discussed but my search for cannot execute asp.net
returns nothing. I tried few other search phrases no luck.

Thanks for your understanding

Jul 20 '07 #2
Default IIS7 installation only serves static files. It cannot run ASP,
CGI, ISAPI, ASP.Net, PHP, Perl, etc.

You will have to enable ASP.Net support in the same Windows Feature
dialog underneath IIS Application Development. Only then will .aspx
page run.

You can also figure this out by noticing that there are no .aspx
handlers defined in your current IIS installation, meaning .aspx pages
will not be processed/executed and hence only the file content will
return.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

On Jul 19, 4:07 pm, john_smith_nebra...@excite.com wrote:
I am using VISTA . I have IIS enabled .

I installed VS 2005 successfully.

Under old ASPX you knwo you go to inetpub wwwroot and run a test
default.aspx file to see if it executes properly.

I pulled a starter program from Microsoft site and pasted it into VS
2005 at the default.aspx page of a new wesite called website1. I made
sure website1 was added into IIS and was running.

The bulid in VS 2005 went thru with no errors, but when a I run it ,
it does not execute the ASP.net code, just returns the HTML printout
of the ASP.net code in the default.aspx page indicating that asp.net
is not being executed by the IIS for one reason or other.
What I did was something like http://localhost/website1/
The page default.aspx is returned as a text page of the asp.net code
This was abig page but to explain it in simple terms, let us say you
said response.write"Hello",
the internet explorer returns "response.write"Hello"" not just
Hello (You get the idea)

I tried this on 2 PCs with Vista. Same problem.

I tried the old trick of sticking the ASP.net page into wwwroot folder
with same results.
The default htm page with the IIS 7 symbol surrounded by languages
comes up . I f I disable that page (by changing its name and goto
default.aspx page , it just shows in HTML whatever is in ASPX page
indicating that aspx engine is not processing anything or is off
whatever.

I am sure this was discussed but my search for cannot execute asp.net
returns nothing. I tried few other search phrases no luck.

Thanks for your understanding

Jul 20 '07 #3
On Jul 20, 12:42 am, David Wang <w3.4...@gmail.comwrote:
Default IIS7 installation only serves static files. It cannot run ASP,
CGI, ISAPI, ASP.Net, PHP, Perl, etc.

You will have to enable ASP.Net support in the same Windows Feature
dialog underneath IIS Application Development. Only then will .aspx
page run.

You can also figure this out by noticing that there are no .aspx
handlers defined in your current IIS installation, meaning .aspx pages
will not be processed/executed and hence only the file content will
return.

//Davidhttp://w3-4u.blogspot.comhttp://blogs.msdn.com/David.Wang
//

On Jul 19, 4:07 pm, john_smith_nebra...@excite.com wrote:
I am using VISTA . I have IIS enabled .
I installed VS 2005 successfully.
Under old ASPX you knwo you go to inetpub wwwroot and run a test
default.aspx file to see if it executes properly.
I pulled a starter program from Microsoft site and pasted it into VS
2005 at the default.aspx page of a new wesite called website1. I made
sure website1 was added into IIS and was running.
The bulid in VS 2005 went thru with no errors, but when a I run it ,
it does not execute the ASP.net code, just returns the HTML printout
of the ASP.net code in the default.aspx page indicating that asp.net
is not being executed by the IIS for one reason or other.
What I did was something like http://localhost/website1/
The page default.aspx is returned as a text page of the asp.net code
This was abig page but to explain it in simple terms, let us say you
said response.write"Hello",
the internet explorer returns "response.write"Hello"" not just
Hello (You get the idea)
I tried this on 2 PCs with Vista. Same problem.
I tried the old trick of sticking the ASP.net page into wwwroot folder
with same results.
The default htm page with the IIS 7 symbol surrounded by languages
comes up . I f I disable that page (by changing its name and goto
default.aspx page , it just shows in HTML whatever is in ASPX page
indicating that aspx engine is not processing anything or is off
whatever.
I am sure this was discussed but my search for cannot execute asp.net
returns nothing. I tried few other search phrases no luck.
Thanks for your understanding- Hide quoted text -

- Show quoted text -
Anyway I have the Asp.net working but I am still not sure about few
things.
I added a default.aspx page under

Default Website aspnet_clientSystem_web 2_0_50727

( I have no idea where "aspnet_clientSystem_web 2_0_50727" came
from. It was there by default
And it is under inetpub>wwwroot in windows explorer

Then I clicked the Browse under properties of 2_0_50727

The default.aspx page executed ok (As it was the only aspx page in
there. I added a second aspx page and it also ran fine when I called
for it in explorer address bar)

But then when I added other virtual directories or applications under
this default web site or an entirely new website, it just keeps
giving server 500 errors.

But then I went to VS2005 and created an empty website added a
default.aspx and clicked run button. And it executed fine launching
the internet explorer and displaying default.aspx. This is crazy
because I did not add this
Website into iis4 and it is not there either (IF added automatically I
thought by VS2005) .
In fact I stopped the default website from running (to see I fmy
website got added inside this by VS2005)
It did not stop the VS website from running
So it is as if Visual Studio has its own built-in independent
webserver like the older WebMAtrix did (Which I thought was way cool
as I did not have to fight with the ever crazy Microsoft-IIS) .

Am I totally smoking crack here or is IIS still required to run aspx
files from VS2005 like old days or are they independent now ?

Jul 20 '07 #4
On Jul 20, 12:44 pm, john_smith_nebra...@excite.com wrote:
On Jul 20, 12:42 am, David Wang <w3.4...@gmail.comwrote:


Default IIS7 installation only serves static files. It cannot run ASP,
CGI, ISAPI, ASP.Net, PHP, Perl, etc.
You will have to enable ASP.Net support in the same Windows Feature
dialog underneath IIS Application Development. Only then will .aspx
page run.
You can also figure this out by noticing that there are no .aspx
handlers defined in your current IIS installation, meaning .aspx pages
will not be processed/executed and hence only the file content will
return.
//Davidhttp://w3-4u.blogspot.comhttp://blogs.msdn.com/David.Wang
//
On Jul 19, 4:07 pm, john_smith_nebra...@excite.com wrote:
I am using VISTA . I have IIS enabled .
I installed VS 2005 successfully.
Under old ASPX you knwo you go to inetpub wwwroot and run a test
default.aspx file to see if it executes properly.
I pulled a starter program from Microsoft site and pasted it into VS
2005 at the default.aspx page of a new wesite called website1. I made
sure website1 was added into IIS and was running.
The bulid in VS 2005 went thru with no errors, but when a I run it ,
it does not execute the ASP.net code, just returns the HTML printout
of the ASP.net code in the default.aspx page indicating that asp.net
is not being executed by the IIS for one reason or other.
What I did was something like http://localhost/website1/
The page default.aspx is returned as a text page of the asp.net code
This was abig page but to explain it in simple terms, let us say you
said response.write"Hello",
the internet explorer returns "response.write"Hello"" not just
Hello (You get the idea)
I tried this on 2 PCs with Vista. Same problem.
I tried the old trick of sticking the ASP.net page into wwwroot folder
with same results.
The default htm page with the IIS 7 symbol surrounded by languages
comes up . I f I disable that page (by changing its name and goto
default.aspx page , it just shows in HTML whatever is in ASPX page
indicating that aspx engine is not processing anything or is off
whatever.
I am sure this was discussed but my search for cannot execute asp.net
returns nothing. I tried few other search phrases no luck.
Thanks for your understanding- Hide quoted text -
- Show quoted text -

Anyway I have the Asp.net working but I am still not sure about few
things.
I added a default.aspx page under

Default Website aspnet_clientSystem_web 2_0_50727

( I have no idea where "aspnet_clientSystem_web 2_0_50727" came
from. It was there by default
And it is under inetpub>wwwroot in windows explorer

Then I clicked the Browse under properties of 2_0_50727

The default.aspx page executed ok (As it was the only aspx page in
there. I added a second aspx page and it also ran fine when I called
for it in explorer address bar)

But then when I added other virtual directories or applications under
this default web site or an entirely new website, it just keeps
giving server 500 errors.

But then I went to VS2005 and created an empty website added a
default.aspx and clicked run button. And it executed fine launching
the internet explorer and displaying default.aspx. This is crazy
because I did not add this
Website into iis4 and it is not there either (IF added automatically I
thought by VS2005) .
In fact I stopped the default website from running (to see I fmy
website got added inside this by VS2005)
It did not stop the VS website from running
So it is as if Visual Studio has its own built-in independent
webserver like the older WebMAtrix did (Which I thought was way cool
as I did not have to fight with the ever crazy Microsoft-IIS) .

Am I totally smoking crack here or is IIS still required to run aspx
files from VS2005 like old days or are they independent now ?- Hide quoted text -

- Show quoted text -

VS2005 comes with its own toy web server to allow ASP.Net application
development. It is very nice for self-contained development.

The deployment of ASP.Net applications will eventually happen on an
IIS server, so it's your choice as to when to figure it out.

Enabling ASP.Net support on IIS7 is just a couple of checkboxes under
Windows Features. Then, I copy my .aspx / .asmx pages and appropriate
DLLs into bin, etc, and they run fine.

If you have questions about how to properly configure deploy your
application, that is way beyond the scope of this newsgroup. You want
to figure out those details *before* attempting to do anything on IIS.
Otherwise, it will feel frustrating.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Jul 21 '07 #5

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

Similar topics

0
by: Rob Gudgeon | last post by:
Hi everyone Can anybody give me a decent explanation of what ora_bind is supposed to do? I assumed it did the same sort of thing as Perl's DBI bind_columns function ie. as each column is...
5
by: David C | last post by:
We moved an ASP application from Win 2000 server to Win 2003 server and now the Server.Execute method does not work. It gives me ASP 0228 error. What gives? Thanks. David Chase
4
by: Anon Email | last post by:
Hi people, Another question. In the code below, why is there a screen output? This part of the code: bool status = TheCalculator.Execute(input); is merely assigning the result of the...
1
by: John Moore | last post by:
Hi, I normally work with Java but I'm interested in using Python as well, particularly for little tasks like doing some massaging of data in a MySQL database. Below is my first attempt. I'm sure...
6
by: John Baker | last post by:
Hi: Does "On Open" code execute before or after related data is loaded? I want to test before the form appears on the screen to see if there is any data in the queryresult, and if there is not...
3
by: L Mehl | last post by:
Hello -- After I run a macro which refreshes test data, running the app results in warnings like "You are about to delete .. records ..." The macro contains pairs of DELETE FROM table WHERE...
13
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
4
by: Lenn | last post by:
I have the following method: public void Execute(TCPCommand command, out string outputResponse, out string error) { //snipped code outputResponse = "some message"; error = ""; }
2
by: Ryan Taylor | last post by:
Hello. I have an ASP.NET web application in which one page needs to execute another page and retrieve it's results. The page to be called needs a couple parameters passed in the URL. However,...
0
by: Markus Poehler | last post by:
Hi there! I have created NT Service that runs on a Server. It should NET SEND to a specifiv Client in a special case of environment. It does NOT net send. The Messenger Service is running....
0
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,...
0
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...
1
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...
0
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.