Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

IIS et aspx !!!

1 réponse
Avatar
cult
Salut,

J'ai un petit soucis avec IIS, il se lance sans problème je peux
excécuter des fichiers asp mais pas aspx, apperement il affiche dans
le navigateur le code source aspx, voici par exemple le view page
source IE d'une page aspx :

---
<%@ Page Language="VB" EnableSessionState="false"
EnableViewState="false" %>
<%@ Import namespace="Hexillion.HexValidEmail.Interop" %>

<script runat="server">

Sub Page_Load()

If IsPostBack Then
'// Create an instance of the Connection class
Dim hve As New Connection()

'// Identify yourself for SMTP (use your own information here)


...etc...

Else
'// No problems encountered
output.Text = "No problems were found with the address, though that
does not guarantee it is good."
End If
End If
End Sub 'Page_Load
</script>
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Simple Email Validation</title>
</head>
<body>
<form id="MainForm" runat="server">
<p>Email address<br />
<asp:textbox id="email" runat="server" /> &nbsp;
<asp:button id="submit" text="Submit" runat="server" />
</p>
<asp:label id="output" runat="server" />
</form>
</body>
</html>
---

Aussi, lorsque je suis sous Visual Basic .Net les webforms que je créé
ne s'affiche pas alors que les HTML si.

Une idée ?
Merci.

1 réponse

Avatar
Yan
Bonjour,

Quelle version d'IIS ? Quelle version du framework ? As-tu exécuté un
"aspnet_regiis -i" ?

a+

XFly wrote:
Salut,

J'ai un petit soucis avec IIS, il se lance sans problème je peux
excécuter des fichiers asp mais pas aspx, apperement il affiche dans
le navigateur le code source aspx, voici par exemple le view page
source IE d'une page aspx :

---
<%@ Page Language="VB" EnableSessionState="false"
EnableViewState="false" %>
<%@ Import namespace="Hexillion.HexValidEmail.Interop" %>

<script runat="server">

Sub Page_Load()

If IsPostBack Then
'// Create an instance of the Connection class
Dim hve As New Connection()

'// Identify yourself for SMTP (use your own information here)


...etc...

Else
'// No problems encountered
output.Text = "No problems were found with the address, though that
does not guarantee it is good."
End If
End If
End Sub 'Page_Load
</script>
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Simple Email Validation</title>
</head>
<body>
<form id="MainForm" runat="server">
<p>Email address<br />
<asp:textbox id="email" runat="server" /> &nbsp;
<asp:button id="submit" text="Submit" runat="server" />
</p>
<asp:label id="output" runat="server" />
</form>
</body>
</html>
---

Aussi, lorsque je suis sous Visual Basic .Net les webforms que je créé
ne s'affiche pas alors que les HTML si.

Une idée ?
Merci.