473,396 Members | 1,834 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.

memory/time problem, windows authentication for a asp.net web service

I am trying to use windows authentication on an intranet to call a web
service. When I make my first call to the service after connecting
from a client app using:

ws.Url = ServiceUrl;
ws.Credentials = System.Net.CredentialCache.DefaultCredentials;
ws.UnsafeAuthenticatedConnectionSharing = true;

It takes forever (2-3 minutes) and my mem usage for aspnet_wp.exe
balloons from 2,952K to 586,264K and stays there.

I am using v1.1.4322 on both client and server. It is set up with
windows authentication using identity impersonate set to true and the
authentication mode of windows in the web.config.

I have wanted to move the architecture towards web services but this is
unusable. Forcing the users to log in would be a step back in their
eyes too.

Any help would be greatly appreciated.

Leo

Nov 19 '05 #1
3 1482

Can you post up the Hardware/OS your using for the IIS server that
houses the Web Service and Client...

Does it take 2-3 minutes for every Web Service Call regardless of how
many times you call it? What are you pulling when you make the Web
Service Calls...(i.e., records from a database, if so, how many records
- on average...), if there are alot of records your pulling back, can
you turn off ViewState on your pages/controls?

View the Handles & Threads your using for aspnet_wp via Task
Manager...does the threads, handles and mem usage go down after you get
a return from the Web Service?

Can you turn off Authentication on your Web Service and Client, to see
if that is the problem.

Do a tracert <Web Service IP> from the box that the Client sits
on...does it take alot of hops to find the IP address?

Those would be the first thing I would check (outside of your code).
--
rviray
------------------------------------------------------------------------
rviray's Profile: http://www.msusenet.com/member.php?userid=4211
View this thread: http://www.msusenet.com/t-1871089122

Nov 19 '05 #2
lj
I looked at the computer. The hardware is not great. It's running
windows 2k server. With that being said this seems like more of a
client issue. I tested just returning a string when I started having a
problem (previously I was returning one record from a database). I
didn't test with multiple calls, the machine became slow (mem usage
remains at 586,264K after the call). Threads go from 583 to 609 during
to 605 after. My CPU usage will go from nothing for aspnet_wp.exe to
99% during the call for that two minutes then after the call it will
spike to 90 at regular intervals.

When there is no authentication this does not happen. It takes one hop
to get there.

Nov 19 '05 #3
lj
PS Those were all client side statistics.

Nov 19 '05 #4

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

Similar topics

2
by: epaetz | last post by:
I'm getting Not associated with a trusted SQL Server connection errors on a .Net windows service I wrote, when it's running on my application server. It's not a problem with mixed mode...
2
by: Joseph Geretz | last post by:
I'm having a credentialing problem in my web application. Actually, I don't think this is an IIS security issue, since I'm able to access the page I'm requesting. However, the executing page itself...
0
by: leo_junquera | last post by:
I am trying to use windows authentication on an intranet to call a web service. When I make my first call to the service after connecting from a client app using: ws.Url = ServiceUrl;...
8
by: nautonnier | last post by:
I know my problem has been discussed ad nauseum but I still don't get it so please bear with me. I have written a service which performs some work against a database once a day (usually in the...
0
by: vasu devan | last post by:
Dear Gurus, My ASP.NET website is running on .NET 1.1. hosted in windows server 2003 enterprise edition. We are having two sites. They are 1. One internet site 2. One intranet site. Both...
0
by: Vasu | last post by:
Hi All, My ASP.NET website is running on .NET 1.1. hosted in windows server 2003 enterprise edition. We are having two sites. They are 1. One internet site 2. One intranet site. Both...
3
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
Now I have a web application, a web service and a SQL Server database. The Web application will invoke the web service, the web service invokes the SQL Server stored procedure. I let the web...
4
by: =?Utf-8?B?VGFrdW1p?= | last post by:
I have a ASP.NET web page that calls a web service on a server with IIS installed on it. When it calls the web service, it gives a HTTP status 401 error stating that it is unauthorized to call the...
11
by: Aleks Kleyn | last post by:
I wrote application on asp.net 2.0 using dataset. One dataset I put in session collection and other (which is small and common for other users) I put in application. I expected that it will get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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.