Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Re: Running ASP.NET on a Domain Controller


Message #1 by "Jerry Lanphear" <jerrylan@q...> on Tue, 4 Mar 2003 07:52:56 -0700
Rohit,

I started a new thread so that we can respond to Alan.

A domain controllers top job is security, not running ASP.NET pages.  If you
have one, I would suggest not making permissions changes without knowing
exactly what security issues may result.  The seminar I had seen featured a
nationally known (US) expert on ASP.NET who said that you should not use a
domain controller to host ASP.NET pages.  An expert in domain controller
security may be able to configure it in a way as to make the risk
acceptable.  As I said, this is not me.

Regards
----- Original Message -----
From: "Rohit Arora" <rohit_arora@i...>
To: "aspx_beginners" <aspx_beginners@p...>
Sent: Tuesday, March 04, 2003 7:02 AM
Subject: [aspx_beginners] RE: Unable to display WebForm in the Browser


> Hi jerry,
> sorry i am not a security expert..can u tell me wht all holes it can
expose
> ? Looks like it can be a very interesting discussion.
>
> Regards
> Rohit Arora
> Intersolutions (P) Ltd
> B - 21, Sector 58,
> Noida - 201301
> Tel : 91-2585703/04/05 Extn: 229
>
>
> -----Original Message-----
> From: Jerry Lanphear [mailto:jerrylan@q...]
> Sent: Tuesday, March 04, 2003 7:28 PM
> To: aspx_beginners
> Subject: [aspx_beginners] RE: Unable to display WebForm in the Browser
>
>
> And what if any security risks may result from this change?
>
> ----- Original Message -----
> From: "Rohit Arora" <rohit_arora@i...>
> To: "aspx_beginners" <aspx_beginners@p...>
> Sent: Tuesday, March 04, 2003 12:19 AM
> Subject: [aspx_beginners] RE: Unable to display WebForm in the Browser
>
>
> > if its running on a domeain controller jes change the permissions for
> aspnet
> > acc to system from machine.
> >
> > Regards
> > Rohit Arora
> > Intersolutions (P) Ltd
> > B - 21, Sector 58,
> > Noida - 201301
> > Tel : 91-2585703/04/05 Extn: 229
> >
> >
> > -----Original Message-----
> > From: Jerry Lanphear [mailto:jerrylan@q...]
> > Sent: Tuesday, March 04, 2003 12:49 PM
> > To: aspx_beginners
> > Subject: [aspx_beginners] RE: Unable to display WebForm in the Browser
> >
> >
> > Arnold,
> >
> > This is a well known configuration issue where your ASPNET user is not
> > getting the proper permissions to operate.  The first question to ask is
> are
> > you running ASP.NET on a domain controller? If you are, only an expert
on
> > domain controllers can configure your machine to run ASP.NET and that is
> not
> > me. I have heard experts say "Do not install the framework on an domain
> > controller and expect it to run ASP.NET.
> >
> > If not, then the first thing to do is to run and install the .NET
> Framework
> > Service Pack 2 (SP2).
> >
> > If this does not help, then do a Google search on a file called
> > "machine.config" and you will get all the further information there is
out
> > there on this problem.
> >
> > Good Luck.  It took me 10 days of pulling my hair out until I got it
> going.
> >
> > Regards
> >
> > ----- Original Message -----
> > From: "Arnold G. Higuit" <arnoldgh@p...>
> > To: "aspx_beginners" <aspx_beginners@p...>
> > Sent: Tuesday, March 04, 2003 6:39 AM
> > Subject: [aspx_beginners] RE: Unable to display WebForm in the Browser
> >
> >
> > > Thanks for your replies Irfan and Alan and sorry for the typo error.
It
> > > is actually "c#" in the code.
> > > The way I see it, there seems to be no problem with the code but
> > > what puzzled me is that it really does not display the WebForm in the
> > > Browser. Only the HTML part is displayed. Has it got something to do
> with
> > > the IIS configuration or from the Visual Studio.NET environment?
> > >
> > > Irfan: As much as possible, I don't want to do some work around like
the
> > > one you suggested for the simple reason that since it is published in
> the
> > > book, I believe it should be tested, error free and running smoothly.
I
> > > just don't understand why in my machine it does not work. I appreciate

> > > your feedback.
> > >
> > > Regards,
> > > Arnold
> > >
> > > > Change this line:
> > >
> > > <script Language="c#" runat="server">
> > >
> > > Alan
> > >
> > > -----Original Message-----
> > > From: Arnold G. Higuit [mailto:arnoldgh@p...]
> > > Sent: Monday, March 03, 2003 4:26 AM
> > > To: aspx_beginners
> > > Subject: [aspx_beginners] Unable to display WebForm in the Browser
> > >
> > >
> > > Hi,
> > >     I am trying to run the code below but only the Title is displayed
in
> > >
> > > the Browser (IE 6.0) and not the DataGrid control. I have actually
> > > created a virtual directory in the IIS and link this directory to one
of
> > >
> > > my folders in d: drive. This code is actually from the book (Beginning
> > > ASP.NET using C#). I have just modified the path of the Northwind
> > > database. Please help as I cannot figure out the problem of this code.
> > > Thank you very much.
> > >
> > >
> > > Regards,
> > > Arnold
> > >
> > > Here is the code:
> > >
> > > <%@ Import namespace="System.Data" %>
> > > <%@ Import namespace="System.Data.OleDb" %>
> > >
> > > <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="c" runat="server">
> > > private void Page_Load(object sender, System.EventArgs e)
> > > {
> > > String strConnection="Provider=Microsoft.Jet.OleDb.4.0;data
> > > source=D:\\Northwind.mdb;"
> > > OleDbConnection objConnection = new OleDbConnection
> > > (strConnection);
> > >
> > > String strSQL = "SELECT SupplierID, CompanyName FROM Suppliers";
> > > OleDbCommand objCommand = new OleDbCommand(strSQL,
> > > objConnection);
> > >
> > > objConnection.Open();
> > > dgSuppliers.DataSource = objCommand.ExecuteReader();
> > > dgSuppliers.DataBind();
> > > objConnection.Close();
> > > }
> > > </script>
> > >
> > >
> > >
> >
> >
> >
> >
> >
> >
>
>
>
>
>
>


  Return to Index