I know it's not my code because the files will work if I move them to my company's web server (Shhh, don't tell).
I set up IIS and made a virtual directory that points to a partition where I'm putting the files.
I have the .NET Framework 1.1 and ran a windows update today.
Here is an example of a problem. This For...Next statement is supposed to write a sentence 7 times in different sizes. If I load the page in my browser it displays:
> Hello and Welcome!
Here is my code:
1. run aspnet_regiis.exe
<%@dotnet.itags.org.Page Language="VB" Debug="True" %>
<html>
<head>
<title>Hello and Welcome Page</title>
</head>
<body>
<center>
<% Dim TextSize As Integer %>
<% For TextSize = 1 To 7 %>
<font size = <%=TextSize%>>
Hello and Welcome!<br>
</font>
<% Next %>
</center>
</body>
</html
2. make sure you're requesting the page via HTTP and not just from the filesystem.
When I try to run Aspnet_regiis.exe I get an error message:
The application Failed to initialize properly. (0xc0000142)
Wonder if this is my problem?
Oh, I see I have to run that command from a Visual Studio command prompt. I will try that.
aspnet_regiis.exe -i fixed the problem!
Did you tried with -i ?
0 comments:
Post a Comment