Re: HELP Connection error on Release mode
From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 06/17/04
- Next message: Shakir Hussain: "Re: WebBrowser stops navigating - Why?"
- Previous message: Mike: "Re: A serialization problem"
- In reply to: Brian Conway: "Re: HELP Connection error on Release mode"
- Next in thread: Brian Conway: "Re: HELP Connection error on Release mode"
- Reply: Brian Conway: "Re: HELP Connection error on Release mode"
- Reply: Brian Conway: "Re: HELP Connection error on Release mode"
- Reply: Brian Conway: "Re: HELP Connection error on Release mode"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Jun 2004 10:47:09 -0400
Brian,
Is your other application configured differently? I would imagine that
this is the case. Can you post the web.config file for your current app?
You can test this by changing the account that the app runs under by
setting the <identity> element and setting the impersonate attribute to a
value of "true". This will allow you to specify an account which can access
the network (through the username and password attributes).
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
"Brian Conway" <Brian.Conway@qwest.com> wrote in message
news:Od1LKkHVEHA.3944@tk2msftngp13.phx.gbl...
> I would assume that the account can, since my other application accesses a
> database not on that server and is located elsewhere on the network. How
do
> I try to check and see if this is the problem and how do I resolve it?
>
>
>
> "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote
in
> message news:u$8XOhHVEHA.1292@TK2MSFTNGP10.phx.gbl...
> > 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.
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: Shakir Hussain: "Re: WebBrowser stops navigating - Why?"
- Previous message: Mike: "Re: A serialization problem"
- In reply to: Brian Conway: "Re: HELP Connection error on Release mode"
- Next in thread: Brian Conway: "Re: HELP Connection error on Release mode"
- Reply: Brian Conway: "Re: HELP Connection error on Release mode"
- Reply: Brian Conway: "Re: HELP Connection error on Release mode"
- Reply: Brian Conway: "Re: HELP Connection error on Release mode"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|