Problems running asp.net on IIS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi I know I may be repeating some past questions but i wasnt sure if i added on to these if they would appear in the 'new list'! I have IIS 5 installed, IE 6 and visual studio .net 2003. When i create an aspx page under iis, when i try to run it via localhost i get the 'Open/Save' screen, i.e. it is not running the code but just ends up opening it in visual studio. I went to the downloads (thinking i may not have installed the SDK for .net) but it says go to control panel, add/remove and if you have .net framework 1.1 you dont need to do anything, and I have, but aspx's wont run. It does say that visual studio installs the SDK automatically so it appears I do have it. Another odd thing is that if I simply create test.html under IIS that doesnt run either, just takes hours to open in IE and appears to be hanging (but if i double click on it and bypass the localhost it opens fine and pops up the hello world alert that i scripted). What have I missed? Is it something obvious?
 
Try running the command-line utility:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i

This installs ASP.net on your web server.

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

louise raisbeck said:
Hi I know I may be repeating some past questions but i wasnt sure if i
added on to these if they would appear in the 'new list'! I have IIS 5
installed, IE 6 and visual studio .net 2003. When i create an aspx page
under iis, when i try to run it via localhost i get the 'Open/Save' screen,
i.e. it is not running the code but just ends up opening it in visual
studio. I went to the downloads (thinking i may not have installed the SDK
for .net) but it says go to control panel, add/remove and if you have .net
framework 1.1 you dont need to do anything, and I have, but aspx's wont run.
It does say that visual studio installs the SDK automatically so it appears
I do have it. Another odd thing is that if I simply create test.html under
IIS that doesnt run either, just takes hours to open in IE and appears to be
hanging (but if i double click on it and bypass the localhost it opens fine
and pops up the hello world alert that i scripted). What have I missed? Is
it something obvious?
 
Was VS installed before or after IIS?
It may not have made the necessary configurations for the ASPX file types.
You can try to add it manually but it's ugly. Try reinstalling VS if you
can.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


louise raisbeck said:
Hi I know I may be repeating some past questions but i wasnt sure if i
added on to these if they would appear in the 'new list'! I have IIS 5
installed, IE 6 and visual studio .net 2003. When i create an aspx page
under iis, when i try to run it via localhost i get the 'Open/Save' screen,
i.e. it is not running the code but just ends up opening it in visual
studio. I went to the downloads (thinking i may not have installed the SDK
for .net) but it says go to control panel, add/remove and if you have .net
framework 1.1 you dont need to do anything, and I have, but aspx's wont run.
It does say that visual studio installs the SDK automatically so it appears
I do have it. Another odd thing is that if I simply create test.html under
IIS that doesnt run either, just takes hours to open in IE and appears to be
hanging (but if i double click on it and bypass the localhost it opens fine
and pops up the hello world alert that i scripted). What have I missed? Is
it something obvious?
 
the aspnet_regiis command sets up the sites/vd's to use ASP.NET but if the
core level functionality isn't there then you may have bigger issues.
Personally it sounds like you got lots messed up. Firewalls, AV
Scriptblocking, etc. Dont envy you in this one. Do some cleanup though an
you may get lucky. Uninstall VS and IIS. Then install IIS and VS again. If
you are lucky it should all work again.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


Louise Raisbeck said:
I have just run the command line prompt that kevin suggested, thanks
kevin, and it appears not to ask me to open or save aspx files again which
is a start..although.. i still appear to have a problem with IIS. I still
can't run a simple html file through IIS (http://localhost/test.html), it
just hangs, similarly i have just tried to create a web application in VS
and it has been hanging at the point where it tries to contact the web
server, no response whatsoever. I installed Visual Studio a while ago, then
removed and re-installed IIS a couple of days ago.
 
This might have already been mentioned, but have you tried running:
%windir%\microsoft.net\framework\v1.1.4322\aspnet_regiis -i

This will register the aspnet_isapi.dll with IIS (which might not have been done, depending on whether you installed IIS before VS) so that it can process
aspx pages.

HTH,
Chris

--------------------
Thread-Topic: Problems running asp.net on IIS
thread-index: AcRwwLPjtZFPBl5XQbGgI6a1hT5nMA==
X-WBNR-Posting-Host: 217.42.146.95
From: =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?= <louise (e-mail address removed)>
Subject: Problems running asp.net on IIS
Date: Fri, 23 Jul 2004 07:24:02 -0700
Lines: 1
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.157
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:249409
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hi I know I may be repeating some past questions but i wasnt sure if i added on to these if they would appear in the 'new list'! I have IIS 5 installed, IE 6 and
visual studio .net 2003. When i create an aspx page under iis, when i try to run it via localhost i get the 'Open/Save' screen, i.e. it is not running the code but
just ends up opening it in visual studio. I went to the downloads (thinking i may not have installed the SDK for .net) but it says go to control panel,
add/remove and if you have .net framework 1.1 you dont need to do anything, and I have, but aspx's wont run. It does say that visual studio installs the SDK
automatically so it appears I do have it. Another odd thing is that if I simply create test.html under IIS that doesnt run either, just takes hours to open in IE and
appears to be hanging (but if i double click on it and bypass the localhost it opens fine and pops up the hello world alert that i scripted). What have I
missed? Is it something obvious?
 
Back
Top