473,396 Members | 1,755 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,396 software developers and data experts.

Deploying ASP.NET 2.0

Hi,

Hope someone can help us with this problem. This is our first endeavour
into .NET 2.0 :-)

BACKGROUD INFO:
----------------------
We've built a website using .NET 2.0 and deployed onto our webserver. This
webpage simply calls some web services (built with .NET 1.1) running on the
same web server. The webservice executes SQL transactions to a SQL Server
which sits behind our company firewall.

PROBLEM:
----------------------
Everytime a form is submitted (a web service call happens here), it's trying
to connect to a proxy server which no longer exist!! This was verified by our
network team. (Please see below for error message and stack trace).
OTHER NOTES:
------------------
Numerous pages have been built using .NET 1.1 running on the same webserver
and we've never encountered this problem.

TESTING DONE:
-------------------
To test that it's not something wrong with the webservice, we've built a
simple web page using .NET 1.1 which calls the same webservice, depoyed it
onto the webserver, a request was made, and it was successful.

We've also ran this website in question from a internal webserver, and did
not encounter this problem.

QUESTIONS:
-------------------
1)Is there any differences in the way a ASP.NET page built on .NET 2.0 and
..NET 1.1 makes it's call to a webservice??

2)Where is the ASP page picking up this proxy settings from? ASPNET account??

3)Is there a way to overcome this proxy problem from our ASP.NET code?

Many Thanks,
Kevin

************************************************** *******
ERROR MESSAGE:

"A connection attempt failed because the connected party did not properly
respond after a period of time, or established connection failed because
connected host has failed to respond "

STACK TRACE:

"[SocketException (0x274c): A connection attempt failed because the
connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to respond]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,
SocketAddress socketAddress) +1002130
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +33
System.Net.ServicePoint.ConnectSocketInternal(Bool ean connectFailure,
Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState
state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +431

[WebException: Unable to connect to the remote server]
System.Net.HttpWebRequest.GetRequestStream() +1504509
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters) +103
CustomerService.CustomerService.ValidateLogin(Stri ng dbID, String login,
String passwd, String appln, DataSet& dsRole, DataSet& dsOperator) +95
_Default.Login1_Authenticate(Object sender, AuthenticateEventArgs e) +147
System.Web.UI.WebControls.Login.OnAuthenticate(Aut henticateEventArgs e)
+106
System.Web.UI.WebControls.Login.AttemptLogin() +105
System.Web.UI.WebControls.Login.OnBubbleEvent(Obje ct source, EventArgs e)
+99
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument)
+163

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
"


Nov 26 '05 #1
2 2302
Hi Kevin,

The default proxy settings in .NET 2.0 are a bit different than in 1.x. By
default .NET 2.0 uses the default proxy which is using the IE settings
installed in the registry. Since ASP.NET by default doesn't have access to
those keys it ends up searching around for the proxy settings and fails
which is what's very slow.

Alternately it might be that your app is impersonating and indeed HAS access
to the default proxy settings which are now obsolete. If that's the case
just fire up IE on the server and try to clear the proxy settings.

I reported this a while back but I'm not sure whether this was changed for
release or not. You can add a few settings to web.config to not use Proxy
settings of the machine.

Take a look at this post which talks about this:

http://west-wind.com/weblog/posts/2542.aspx

In the comments there's the web.config settings that worked for me during
the beta. I haven't taken them out, to double check whether it works without
them, but I know those settings worked for me.
+++ Rick ---

--

Rick Strahl
West Wind Technologies
www.west-wind.com
www.west-wind.com/weblog
"Kevin" <Ke***@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.com...
Hi,

Hope someone can help us with this problem. This is our first endeavour
into .NET 2.0 :-)

BACKGROUD INFO:
----------------------
We've built a website using .NET 2.0 and deployed onto our webserver. This
webpage simply calls some web services (built with .NET 1.1) running on
the
same web server. The webservice executes SQL transactions to a SQL Server
which sits behind our company firewall.

PROBLEM:
----------------------
Everytime a form is submitted (a web service call happens here), it's
trying
to connect to a proxy server which no longer exist!! This was verified by
our
network team. (Please see below for error message and stack trace).
OTHER NOTES:
------------------
Numerous pages have been built using .NET 1.1 running on the same
webserver
and we've never encountered this problem.

TESTING DONE:
-------------------
To test that it's not something wrong with the webservice, we've built a
simple web page using .NET 1.1 which calls the same webservice, depoyed it
onto the webserver, a request was made, and it was successful.

We've also ran this website in question from a internal webserver, and did
not encounter this problem.

QUESTIONS:
-------------------
1)Is there any differences in the way a ASP.NET page built on .NET 2.0 and
.NET 1.1 makes it's call to a webservice??

2)Where is the ASP page picking up this proxy settings from? ASPNET
account??

3)Is there a way to overcome this proxy problem from our ASP.NET code?

Many Thanks,
Kevin

************************************************** *******
ERROR MESSAGE:

"A connection attempt failed because the connected party did not properly
respond after a period of time, or established connection failed because
connected host has failed to respond "

STACK TRACE:

"[SocketException (0x274c): A connection attempt failed because the
connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to
respond]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,
SocketAddress socketAddress) +1002130
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +33
System.Net.ServicePoint.ConnectSocketInternal(Bool ean connectFailure,
Socket s4, Socket s6, Socket& socket, IPAddress& address,
ConnectSocketState
state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +431

[WebException: Unable to connect to the remote server]
System.Net.HttpWebRequest.GetRequestStream() +1504509
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters) +103
CustomerService.CustomerService.ValidateLogin(Stri ng dbID, String login,
String passwd, String appln, DataSet& dsRole, DataSet& dsOperator) +95
_Default.Login1_Authenticate(Object sender, AuthenticateEventArgs e)
+147
System.Web.UI.WebControls.Login.OnAuthenticate(Aut henticateEventArgs e)
+106
System.Web.UI.WebControls.Login.AttemptLogin() +105
System.Web.UI.WebControls.Login.OnBubbleEvent(Obje ct source, EventArgs
e)
+99
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
+35
System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEven t(String
eventArgument)
+163

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
"

Nov 27 '05 #2
Yes, I've added the following lines since I posted and everything works!!.....

<system.net>
<defaultProxy>
<proxy usesystemdefault="false"/>
</defaultProxy>
</system.net>

This was on a release version of .NET 2.0. It's a bit annoying really.......

"Rick Strahl [MVP]" wrote:
Hi Kevin,

The default proxy settings in .NET 2.0 are a bit different than in 1.x. By
default .NET 2.0 uses the default proxy which is using the IE settings
installed in the registry. Since ASP.NET by default doesn't have access to
those keys it ends up searching around for the proxy settings and fails
which is what's very slow.

Alternately it might be that your app is impersonating and indeed HAS access
to the default proxy settings which are now obsolete. If that's the case
just fire up IE on the server and try to clear the proxy settings.

I reported this a while back but I'm not sure whether this was changed for
release or not. You can add a few settings to web.config to not use Proxy
settings of the machine.

Take a look at this post which talks about this:

http://west-wind.com/weblog/posts/2542.aspx

In the comments there's the web.config settings that worked for me during
the beta. I haven't taken them out, to double check whether it works without
them, but I know those settings worked for me.
+++ Rick ---

--

Rick Strahl
West Wind Technologies
www.west-wind.com
www.west-wind.com/weblog


Nov 28 '05 #3

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

Similar topics

0
by: Sean Campbell | last post by:
Hi, My group have a ASP.NET based application ( currently running on 1.0.3705 ). Ideally, we would like to deploy new components(asp files/assemblies/db updates) into a live environment without...
1
by: Terry H | last post by:
Hi I am deploying a winforms app via the windows installer and a VS.Net 2003 setup and deploymnet project. At the moment, I am adding launch conditions for the .Net Framework 1.1 and MDAC 2.7...
1
by: dansan | last post by:
We have a webservice that we have been deploying using the deployment project in Visual Studio. Now we are trying to deploy this service to a server that has multiple sites. I have looked...
2
by: Flip | last post by:
I am deploying webapps using XP (IIS5) and deploying them to a Windows 2003 Server box (IIS6). So far so good. However, when I try to manage my w2k3 server from XP, I get an error message saying...
3
by: Rachel | last post by:
Hi, I am using the data access application block successfully in our development environment, however when I deploy to our testing server as Private Assemblies I keep getting the following ...
4
by: john | last post by:
I think some of the changes to Asp.net are rediculous. Take the ability to deploy source code to production that is compiled on the fly. If this is such a great model, why not distribute your...
10
by: Bryan Dickerson | last post by:
I fairly have my Web Service working the way that I want, so my next step will be to deploy it on a server. Do I just add a deployment/install project, build it and install it on the server? ...
0
by: Dave | last post by:
Hello The application I'm building an installer for uses dlls which were developed originally in C. Since the application itself is developed in C#, these dlls were wrapped using SWIG....
0
by: steve | last post by:
H I new in deploying applications with visual studio 2005. I've used the setup wizard for a project when the user deploys the project I need to now where the user has put it. (path of the...
6
by: Ryan | last post by:
Is there any way to save a VB 2005 created application as an .MSI install file? The only method I see is to publish as a .EXE. Curious because I want to push out an application with Group Policy....
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: 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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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...
0
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...
0
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,...

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.