Re: HELP Connection error on Release mode

From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 06/17/04


Date: Thu, 17 Jun 2004 10:33:34 -0400

Brian,

    The connection string only has the credientials. However, ASP.NET runs
locally using ASPNET, which can't access the network. If the page runs
under an account that can't access the network, then it can't even get to
the point where it passes credentials.

-- 
               - Nicholas Paldino [.NET/C# MVP]
               - mvp@spam.guard.caspershouse.com
"Brian Conway" <Brian.Conway@qwest.com> wrote in message
news:uqC03cHVEHA.3420@TK2MSFTNGP12.phx.gbl...
> The database is on another machine (same as with my other application that
> works fine)  I am not sure what you mean by changing the account to an
> account that has access to the network.  I thought that this was already
> established within the webconfig file in the connection string.  My
> development computer is setup fairly identical to the test server, and it
> runs perfectly fine on my computer.
>
> "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote
in
> message news:uv1g2XHVEHA.2872@TK2MSFTNGP10.phx.gbl...
> > Brian,
> >
> >     Is the database on the machine that IIS is on or is it on another
> > machine?  If it is on the local machine, is the database configured to
> allow
> > the user account that is accessing it?  Most likely, this is the ASPNET
> > account, which is local to the machine that IIS is running on.  If the
> > database is on another machine, then you need to change the account (for
> the
> > duration of the database access) to an account that has access to the
> > network and the database.
> >
> >
> > -- 
> >                - Nicholas Paldino [.NET/C# MVP]
> >                - mvp@spam.guard.caspershouse.com
> >
> > "Brian Conway" <Brian.Conway@qwest.com> wrote in message
> > news:O5stiTHVEHA.3512@TK2MSFTNGP12.phx.gbl...
> > > This is an ASP.NET application. I am using the installer program to
> deploy
> > > though. I built one other ASP.NET application the same way and it
works
> > > fine, different database server though than this one.
> > >
> > >
> > >
> > > "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com>
wrote
> > in
> > > message news:OaGDaLHVEHA.3988@tk2msftngp13.phx.gbl...
> > > > Brian,
> > > >
> > > >     Is this an ASP.NET application, or is this an EXE that is
> downloaded
> > > > from the web?  If it is an EXE that is downloaded from the web, then
> the
> > > exe
> > > > runs with a reduced permission set, which definitely restricts
network
> > > > access (considering that it is from the internet zone).
> > > >
> > > >     You will have to download the EXE to your machine, or you will
hav
> e
> > to
> > > > set the permissions for the EXE in the .NET configuration manager in
> > order
> > > > to grant rights to that EXE.
> > > >
> > > >     Hope this helps.
> > > >
> > > >
> > > > -- 
> > > >                - Nicholas Paldino [.NET/C# MVP]
> > > >                - mvp@spam.guard.caspershouse.com
> > > >
> > > > "Brian Conway" <Brian.Conway@qwest.com> wrote in message
> > > > news:Oxc1kFHVEHA.3280@TK2MSFTNGP10.phx.gbl...
> > > > > I have no idea what is going on.  I have a Login screen where
> someone
> > > > types
> > > > > in their login information and this populates a datagrid based off
> of
> > > the
> > > > > login.  Works great in debug and test through VS, however, when I
> > change
> > > > to
> > > > > release and put it out on the web it fails giving me the following
> > error
> > > > > message
> > > > >
> > > > > The underlying connection was closed.  Could not establish a trust
> > > > > relationship with the remote server.
> > > > >
> > > > >
> > > > > How on earth do I fix this?  I read a little on it and it says
that
> > you
> > > > > usually get this when using SSL but I am not using SSL.
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Relevant Pages


Quantcast