|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
.aspx or .asp file
I cannot open a .aspx or .asp file from localhost
but I can open .php and .html Can someone tell me why? |
|
#2
|
|||
|
|||
|
You probably haven't enabled asp if you have IIS6.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
am using IIS 5.1
how can i enable it? |
|
#4
|
||||
|
||||
|
so you're using XP pro? in such case, it should be started automatically.
first, make sure no program use port 80 - Skype is killing IIS for example. second, post here full error message(s) you get plus more details. "cannot open" is way too vague for us. you installed IIS, right? via Control Panel-->Add/Remove Programs? |
|
#5
|
|||
|
|||
|
yes i did it
no i get this The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. A name was started with an invalid character. Error processing resource 'http://localhost/Warehouse_Services_Operations_Sys... <%@ Page Language="VB" %>-^ |
|
#6
|
||||
|
||||
|
create file called "test.asp" with this exact code:
Code:
<% Response.Write("hello world") %>
save it in C:\INETPUB\wwwroot and browse to http://localhost/test.asp if it works, then you probably gave different extension to your file, ASP need .asp extension by default. |
|
#7
|
|||
|
|||
|
i saved it as test.aspx and it didnt work
The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. A name was started with an invalid character. Error processing resource 'http://localhost/test.aspx'. Line 1, Position 2 <%@ Page Language="VB" %>-^ |
|
#8
|
||||
|
||||
|
save it as test.asp (without "x" as last letter) and try. and have only
that one line I posted. that error means the server is trying to parse the file as XML - I prefer to first check if the server can run ordinary ASP file before checking ASP.NET files. |
|
#9
|
|||
|
|||
|
.asp can be runned
![]() but .aspx gives me this The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. A name was started with an invalid character. Error processing resource 'http://localhost/test.aspx'. Line 1, Position 2 <%@ Page Language="VB" %>-^ |
|
#10
|
||||
|
||||
|
ok, finally we're going somewhere.
![]() try the following: Start --> Run --> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspne t_regiis.exe -i (without blank space, change the folder if you have different .NET version) also, what's the full code for test.aspx file? |
|
#11
|
|||
|
|||
|
got this
![]() |
|
#12
|
||||
|
||||
|
you probably have .NET 2.0 then.. try this path:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspn et_regiis.exe -i also, did you install .NET framework on your computer? |
|
#13
|
|||
|
|||
|
it didnt run got the same error
Yes I have .NET framework 1.1 and 2.0 |
|
#14
|
||||
|