473,790 Members | 2,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Cred entialCache.Def aultCredentials ;
ws.UnsafeAuthen ticatedConnecti onSharing = 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 1502

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
2581
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 security. I'm set for mixed mode and I've been running the service on the app server for over a month with no problem. My database is running on a second server and both are under the same domain. The problem has occurred twice over the last two months.
2
2631
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 is not able to access a specific network resource and I just can't figure out why. First of all, let me say this worked fine with IIS running on Win2000 Server. This has not worked since I upgraded to Windows Server 2003. My Platform: Windows...
0
969
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; ws.Credentials = System.Net.CredentialCache.DefaultCredentials; ws.UnsafeAuthenticatedConnectionSharing = true;
8
7602
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 wee hours of the morning). From the time the service starts to the first time it hits the database its memory consumption is about 6.9MB which is a figure I can live with. However, after it hits the database for the first time its memory jumps to...
0
1391
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 these sites are having same aspx pages. No difference at all between them in page content.
0
1348
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 these sites are having same aspx pages. No difference at all
3
13806
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 service run in an application pool which runs under a domain user, this domain user has permissions of accessing database and the connection to database is trusted connection. All these work well. The web application will be used in internet (not...
4
7921
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 web service. After searching the Microsoft Knowledge Base, article ID 811318 describes my exact problem. However, when I try to implement the stated solution, I still receive the same error. Basically if I add the following line of code, it...
11
1492
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 some amount of memory, however I expected that this amount of memory will be fixed and will depend on number of user. When I put code in production I discovered that aspnet_wp.exe increases memory which it uses. Each second 2meg. What may be the...
0
9666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9512
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10413
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9986
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
9021
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
7530
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
6769
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
5422
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
4094
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

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.