473,385 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

HELP Connection error on Release mode

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.
Nov 16 '05 #1
10 2671
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 have 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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:Ox**************@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.

Nov 16 '05 #2
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]" <mv*@spam.guard.caspershouse.com> wrote in
message news:Oa**************@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 have 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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:Ox**************@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.


Nov 16 '05 #3
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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:O5**************@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]" <mv*@spam.guard.caspershouse.com> wrote in message news:Oa**************@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 have 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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:Ox**************@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.



Nov 16 '05 #4
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]" <mv*@spam.guard.caspershouse.com> wrote in
message news:uv**************@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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:O5**************@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]" <mv*@spam.guard.caspershouse.com> wrote in
message news:Oa**************@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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:Ox**************@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.
>
>



Nov 16 '05 #5
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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:uq**************@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]" <mv*@spam.guard.caspershouse.com> wrote in message news:uv**************@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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:O5**************@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]" <mv*@spam.guard.caspershouse.com> wrote
in
message news:Oa**************@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]
> - mv*@spam.guard.caspershouse.com
>
> "Brian Conway" <Br**********@qwest.com> wrote in message
> news:Ox**************@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.
> >
> >
>
>



Nov 16 '05 #6
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]" <mv*@spam.guard.caspershouse.com> wrote in
message news:u$**************@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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:uq**************@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]" <mv*@spam.guard.caspershouse.com> wrote

in
message news:uv**************@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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:O5**************@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]" <mv*@spam.guard.caspershouse.com> wrote in
> message news:Oa**************@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]
> > - mv*@spam.guard.caspershouse.com
> >
> > "Brian Conway" <Br**********@qwest.com> wrote in message
> > news:Ox**************@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.
> > >
> > >
> >
> >
>
>



Nov 16 '05 #7
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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:Od**************@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]" <mv*@spam.guard.caspershouse.com> wrote in message news:u$**************@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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:uq**************@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]" <mv*@spam.guard.caspershouse.com> wrote in
message news:uv**************@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]
> - mv*@spam.guard.caspershouse.com
>
> "Brian Conway" <Br**********@qwest.com> wrote in message
> news:O5**************@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]" <mv*@spam.guard.caspershouse.com>

wrote
> in
> > message news:Oa**************@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]
> > > - mv*@spam.guard.caspershouse.com
> > >
> > > "Brian Conway" <Br**********@qwest.com> wrote in message
> > > news:Ox**************@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.
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 16 '05 #8
This is the web config for the one that does not work, below this one is the
web config for the one that does work.

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

<appSettings>

<add key="FleetConnectionString" value="Data
Source=fletws01;Password=upgrade;User ID=fleet;provider=OraOLEDB.Oracle.1"/>

</appSettings>

<system.web>

<!-- DYNAMIC DEBUG COMPILATION

Set compilation debug="true" to enable ASPX debugging. Otherwise, setting
this value to

false will improve runtime performance of this application.

Set compilation debug="true" to insert debugging symbols (.pdb information)

into the compiled page. Because this creates a larger file that executes

more slowly, you should set this value to true only when debugging and to

false at all other times. For more information, refer to the documentation
about

debugging ASP.NET files.

-->

<compilation

defaultLanguage="c#"

debug="true"

/>

<!-- CUSTOM ERROR MESSAGES

Set customErrors mode="On" or "RemoteOnly" to enable custom error messages,
"Off" to disable.

Add <error> tags for each of the errors you want to handle.

"On" Always display custom (friendly) messages.

"Off" Always display detailed ASP.NET error information.

"RemoteOnly" Display custom (friendly) messages only to users not running

on the local Web server. This setting is recommended for security purposes,
so

that you do not display application detail information to remote clients.

-->

<customErrors

mode="RemoteOnly"

/>

<!-- AUTHENTICATION

This section sets the authentication policies of the application. Possible
modes are "Windows",

"Forms", "Passport" and "None"

"None" No authentication is performed.

"Windows" IIS performs authentication (Basic, Digest, or Integrated Windows)
according to

its settings for the application. Anonymous access must be disabled in IIS.

"Forms" You provide a custom form (Web page) for users to enter their
credentials, and then

you authenticate them in your application. A user credential token is stored
in a cookie.

"Passport" Authentication is performed via a centralized authentication
service provided

by Microsoft that offers a single logon and core profile services for member
sites.

-->

<authentication mode="Windows" />

<!-- AUTHORIZATION

This section sets the authorization policies of the application. You can
allow or deny access

to application resources by user or role. Wildcards: "*" mean everyone, "?"
means anonymous

(unauthenticated) users.

-->

<authorization>

<allow users="*" /> <!-- Allow all users -->

<!-- <allow users="[comma separated list of users]"

roles="[comma separated list of roles]"/>

<deny users="[comma separated list of users]"

roles="[comma separated list of roles]"/>

-->

</authorization>

<!-- APPLICATION-LEVEL TRACE LOGGING

Application-level tracing enables trace log output for every page within an
application.

Set trace enabled="true" to enable application trace logging. If
pageOutput="true", the

trace information will be displayed at the bottom of each page. Otherwise,
you can view the

application trace log by browsing the "trace.axd" page from your web
application

root.

-->

<trace

enabled="false"

requestLimit="10"

pageOutput="false"

traceMode="SortByTime"

localOnly="true"

/>

<!-- SESSION STATE SETTINGS

By default ASP.NET uses cookies to identify which requests belong to a
particular session.

If cookies are not available, a session can be tracked by adding a session
identifier to the URL.

To disable cookies, set sessionState cookieless="true".

-->

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

cookieless="false"

timeout="20"

/>

<!-- GLOBALIZATION

This section sets the globalization settings of the application.

-->

<globalization

requestEncoding="utf-8"

responseEncoding="utf-8"

/>
</system.web>

</configuration>

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<This is for the one that does work

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

<appSettings>

<add key="ConferenceConnectionString" value="Data
Source=ntdrp001.world;Password=conf00;User
ID=conference;provider=OraOLEDB.Oracle.1"/>

</appSettings>

<system.web>

<!-- DYNAMIC DEBUG COMPILATION

Set compilation debug="true" to enable ASPX debugging. Otherwise, setting
this value to

false will improve runtime performance of this application.

Set compilation debug="true" to insert debugging symbols (.pdb information)

into the compiled page. Because this creates a larger file that executes

more slowly, you should set this value to true only when debugging and to

false at all other times. For more information, refer to the documentation
about

debugging ASP.NET files.

-->

<compilation

defaultLanguage="c#"

debug="true"

/>

<!-- CUSTOM ERROR MESSAGES

Set customErrors mode="On" or "RemoteOnly" to enable custom error messages,
"Off" to disable.

Add <error> tags for each of the errors you want to handle.

"On" Always display custom (friendly) messages.

"Off" Always display detailed ASP.NET error information.

"RemoteOnly" Display custom (friendly) messages only to users not running

on the local Web server. This setting is recommended for security purposes,
so

that you do not display application detail information to remote clients.

-->

<customErrors

mode="RemoteOnly"

/>

<!-- AUTHENTICATION

This section sets the authentication policies of the application. Possible
modes are "Windows",

"Forms", "Passport" and "None"

"None" No authentication is performed.

"Windows" IIS performs authentication (Basic, Digest, or Integrated Windows)
according to

its settings for the application. Anonymous access must be disabled in IIS.

"Forms" You provide a custom form (Web page) for users to enter their
credentials, and then

you authenticate them in your application. A user credential token is stored
in a cookie.

"Passport" Authentication is performed via a centralized authentication
service provided

by Microsoft that offers a single logon and core profile services for member
sites.

-->

<authentication mode="Windows" />

<!-- AUTHORIZATION

This section sets the authorization policies of the application. You can
allow or deny access

to application resources by user or role. Wildcards: "*" mean everyone, "?"
means anonymous

(unauthenticated) users.

-->

<authorization>

<allow users="*" /> <!-- Allow all users -->

<!-- <allow users="[comma separated list of users]"

roles="[comma separated list of roles]"/>

<deny users="[comma separated list of users]"

roles="[comma separated list of roles]"/>

-->

</authorization>

<!-- APPLICATION-LEVEL TRACE LOGGING

Application-level tracing enables trace log output for every page within an
application.

Set trace enabled="true" to enable application trace logging. If
pageOutput="true", the

trace information will be displayed at the bottom of each page. Otherwise,
you can view the

application trace log by browsing the "trace.axd" page from your web
application

root.

-->

<trace

enabled="false"

requestLimit="10"

pageOutput="false"

traceMode="SortByTime"

localOnly="true"

/>

<!-- SESSION STATE SETTINGS

By default ASP.NET uses cookies to identify which requests belong to a
particular session.

If cookies are not available, a session can be tracked by adding a session
identifier to the URL.

To disable cookies, set sessionState cookieless="true".

-->

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

cookieless="false"

timeout="20"

/>

<!-- GLOBALIZATION

This section sets the globalization settings of the application.

-->

<globalization

requestEncoding="utf-8"

responseEncoding="utf-8"

/>
</system.web>

</configuration>

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:u9**************@TK2MSFTNGP11.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:Od**************@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]" <mv*@spam.guard.caspershouse.com> wrote in
message news:u$**************@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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:uq**************@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]" <mv*@spam.guard.caspershouse.com> wrote in
> message news:uv**************@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]
> > - mv*@spam.guard.caspershouse.com
> >
> > "Brian Conway" <Br**********@qwest.com> wrote in message
> > news:O5**************@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]" <mv*@spam.guard.caspershouse.com> wrote
> > in
> > > message news:Oa**************@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]
> > > > - mv*@spam.guard.caspershouse.com
> > > >
> > > > "Brian Conway" <Br**********@qwest.com> wrote in message
> > > > news:Ox**************@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.
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 16 '05 #9
I tried this string after the authorization section in the webconfig file

<identity impersonate="true" userName="edqa" password="admin40!"/>

and it still returned the same error message.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:u9**************@TK2MSFTNGP11.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:Od**************@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]" <mv*@spam.guard.caspershouse.com> wrote in
message news:u$**************@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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:uq**************@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]" <mv*@spam.guard.caspershouse.com> wrote in
> message news:uv**************@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]
> > - mv*@spam.guard.caspershouse.com
> >
> > "Brian Conway" <Br**********@qwest.com> wrote in message
> > news:O5**************@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]" <mv*@spam.guard.caspershouse.com> wrote
> > in
> > > message news:Oa**************@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]
> > > > - mv*@spam.guard.caspershouse.com
> > > >
> > > > "Brian Conway" <Br**********@qwest.com> wrote in message
> > > > news:Ox**************@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.
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 16 '05 #10
Tracked it down to the webservice that I am using requires HTTPS. I have
gone through the walk through on installing the certificate, however, it
does not stay in the system, once you leave IE and go back in it will ask
for the certificate again. How do I get this installed permanently.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:u9**************@TK2MSFTNGP11.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:Od**************@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]" <mv*@spam.guard.caspershouse.com> wrote in
message news:u$**************@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]
- mv*@spam.guard.caspershouse.com

"Brian Conway" <Br**********@qwest.com> wrote in message
news:uq**************@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]" <mv*@spam.guard.caspershouse.com> wrote in
> message news:uv**************@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]
> > - mv*@spam.guard.caspershouse.com
> >
> > "Brian Conway" <Br**********@qwest.com> wrote in message
> > news:O5**************@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]" <mv*@spam.guard.caspershouse.com> wrote
> > in
> > > message news:Oa**************@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]
> > > > - mv*@spam.guard.caspershouse.com
> > > >
> > > > "Brian Conway" <Br**********@qwest.com> wrote in message
> > > > news:Ox**************@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.
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 16 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
9
by: Robert Schneider | last post by:
Hi to all, I don't understand that: I try to delete a record via JDBC. But I always get the error SQL7008 with the error code 3. It seems that this has something to do with journaling, since the...
1
by: Rohit Raghuwanshi | last post by:
Hello all, we are running a delphi application with DB2 V8.01 which is causing deadlocks when rows are being inserted into a table. Attaching the Event Monitor Log (DEADLOCKS WITH DETAILS) here....
15
by: DavidS | last post by:
Have Visual Studio.NET installed on MS 2000 Professional OS laptop. No issue ever with web development and SQL connections. Purchased new laptop with XP Professional SP2!!!!!!!! & Visual...
1
by: sharmadeep1980 | last post by:
Hi All, I am facing a very unique problem while compling my project in "Release" build. The project is building in DEBUG mode but giving linking error on Release build. Here is the error:...
2
by: JoeSep | last post by:
Hi! Is it correct/safe to define a connection pool in the string "sqlConnectionString" of the "sessionState" section of Web.config? - The application is developed using AspNet 1.1 in a Windows...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
3
by: k.rollman | last post by:
I am having a problem using cURL to create an https connection on a non-standard port (440). Using curl_setopt to set the port to 440 has no effect, and I get the following from curl's verbose...
6
by: priyajohal | last post by:
#include<fstream.h> #include<process.h> #include<stdlib.h> #include<conio.h> #include<string.h> #include<dos.h> #include<ctype.h> #include<stdio.h> void setup() void help();
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.