|
 |
aspx_beginners thread: ASP works -- -- - - ASP.Net doesnt work..
Message #1 by "Girish" <girishpi@h...> on Mon, 24 Mar 2003 16:40:04
|
|
Hi,
I am new to ASP.Net database. Using the wrox book beginning ASP.Net
database using VB.Net. I am working out the example from the book. The
browser doesnt load the aspx page. Displays only till the first line where
it encounters a .Net component.
I tried writing a sample code in ASP. That seems to work. Any inputs??/
Will be appreciated.
Girish
Message #2 by "Jerry Lanphear" <jerrylan@q...> on Mon, 24 Mar 2003 14:06:23 -0700
|
|
Your .NET installation is probably not complete.
The first thing to try is to install .NET Framework Service Pack 2
(SP2). Sometimes that will clear up this problem. Other than that, here
are a few miscellaneous facts.
1. If you have installed .NET on a Domain Controller, ASP.NET will not
work without making security changes which are potential risks.
2. You must install IIS then the Framework, then Visual Studio, then
Service Pack 2 in that order.
3. There is a file called machine.config which controls the security of
your ASP.NET applications. It is that which is stopping you from
running. SP2 takes care of the problem.
Regards
-----Original Message-----
From: Girish [mailto:girishpi@h...]
Sent: Monday, March 24, 2003 4:40 PM
To: aspx_beginners
Subject: [aspx_beginners] ASP works -- -- - - ASP.Net doesnt work..
Hi,
I am new to ASP.Net database. Using the wrox book beginning ASP.Net
database using VB.Net. I am working out the example from the book. The
browser doesnt load the aspx page. Displays only till the first line
where
it encounters a .Net component.
I tried writing a sample code in ASP. That seems to work. Any
inputs??/
Will be appreciated.
Girish
Message #3 by "Girish" <girishpi@h...> on Mon, 24 Mar 2003 23:21:26
|
|
I do have sp2 installed. I dont remember the order of installation though.
Should I uninstall and reinstall.? The following is the code. It just
shows "Connecting to an Access database". Also what should I be looking
for in machine.config.
<%@ Import namespace="System.Data" %>
<%@ Import namespace="System.Data.OleDb" %>
<%@ Page debug="true" %>
<html>
<head>
<title>Connecting to an Access Database</title>
</head>
<body>
<H3>Connecting to an Access Database</H3>
<asp:DataGrid id="dgSuppliers" runat="server" />
</body>
</html>
<script language="VB" runat="server">
Sub Page_Load(Source As Object, E As EventArgs)
Dim strConnection As String = "Provider=Microsoft.Jet.OleDb.4.0;" & _
"data source=C:\Inetpub\wwwroot\test\demodb.mdb;"
Dim objConnection As New OleDbConnection(strConnection)
Dim strSQL As String = "SELECT name_LAST, name_FIRST " & _
"FROM beta_GRADS;"
Dim objCommand As New OleDbCommand(strSQL, objConnection)
objConnection.Open()
dgSuppliers.DataSource = objCommand.ExecuteReader()
dgSuppliers.DataBind()
objConnection.Close()
End Sub
</script>
> Your .NET installation is probably not complete.
The first thing to try is to install .NET Framework Service Pack 2
(SP2). Sometimes that will clear up this problem. Other than that, here
are a few miscellaneous facts.
1. If you have installed .NET on a Domain Controller, ASP.NET will not
work without making security changes which are potential risks.
2. You must install IIS then the Framework, then Visual Studio, then
Service Pack 2 in that order.
3. There is a file called machine.config which controls the security of
your ASP.NET applications. It is that which is stopping you from
running. SP2 takes care of the problem.
Regards
-----Original Message-----
From: Girish [mailto:girishpi@h...]
Sent: Monday, March 24, 2003 4:40 PM
To: aspx_beginners
Subject: [aspx_beginners] ASP works -- -- - - ASP.Net doesnt work..
Hi,
I am new to ASP.Net database. Using the wrox book beginning ASP.Net
database using VB.Net. I am working out the example from the book. The
browser doesnt load the aspx page. Displays only till the first line
where
it encounters a .Net component.
I tried writing a sample code in ASP. That seems to work. Any
inputs??/
Will be appreciated.
Girish
Message #4 by "Alex Smotritsky" <alex.smotritsky@v...> on Mon, 24 Mar 2003 22:09:55 -0500
|
|
http://support.microsoft.com/?id=306005
I assume you have the .net framework installed.
-----Original Message-----
From: Girish [mailto:girishpi@h...]
Sent: Monday, March 24, 2003 4:40 PM
To: aspx_beginners
Subject: [aspx_beginners] ASP works -- -- - - ASP.Net doesnt work..
Hi,
I am new to ASP.Net database. Using the wrox book beginning ASP.Net
database using VB.Net. I am working out the example from the book. The
browser doesnt load the aspx page. Displays only till the first line
where
it encounters a .Net component.
I tried writing a sample code in ASP. That seems to work. Any
inputs??/
Will be appreciated.
Girish
|
|
 |