473,756 Members | 8,108 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
10 2722
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.c om> wrote in
message news:u9******** ******@TK2MSFTN GP11.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.co m

"Brian Conway" <Br**********@q west.com> wrote in message
news:Od******** ******@tk2msftn gp13.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.c om> wrote in
message news:u$******** ******@TK2MSFTN GP10.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.co m

"Brian Conway" <Br**********@q west.com> wrote in message
news:uq******** ******@TK2MSFTN GP12.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.c om> wrote in
> message news:uv******** ******@TK2MSFTN GP10.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.co m
> >
> > "Brian Conway" <Br**********@q west.com> wrote in message
> > news:O5******** ******@TK2MSFTN GP12.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.c om> wrote
> > in
> > > message news:Oa******** ******@tk2msftn gp13.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.co m
> > > >
> > > > "Brian Conway" <Br**********@q west.com> wrote in message
> > > > news:Ox******** ******@TK2MSFTN GP10.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
5479
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
9
10664
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 table from which I want to delete has two foreign keys that references two other tables and it is also referenced by another table. But this shouldn't be a problem, since I set the commit mode to none (or *none) at all places where this makes...
1
4242
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. From the log it looks like the problem happens when 2 threads insert 1 record each in the same table and then try to aquire a NS (Next Key Share) lock on the record inserterd by the other thread. Thanks Rohit
15
2099
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 Studio.NET installed. Nothing but headaches. Continually getting System.Data.SqlClient.SqlException : Timeout expired message - The timeout period elapsed prior to completion of the operation or the server is not responding. Can anyone help with...
1
7298
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: Creating library Release/fnimqcmd.lib and object Release/fnimqcmd.exp CoIMQCmd.obj : error LNK2001: unresolved external symbol
2
9810
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 Server 2003. - The AspState DB is defined in a Sql Server 2000 DB on another server. I have added this definition to the Web.config file: <sessionState mode="SQLServer"
0
5573
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 ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
3
2633
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 output. * About to connect() to xxx.xxx.xxx.xxx port 443 * Connected to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 443 If I put ':440' in the url, I get the following and an error code of 7. * About to connect() to xxx.xxx.xxx.xxx port 440
6
2877
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
9873
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9713
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.