473,402 Members | 2,055 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,402 software developers and data experts.

Asp.NET 2.0 web service and Windows 2003 Server

Hi,

I can publish My Asp.NET 2.0 web service, through a WebSetup project, on a
Windows XP Pro Sp2 and it works fine.

When I'm trying to publish it on a Windows 2003 Server IIS 6 => when I can
access the web service but it is closed after few seconds (I know 'cause I
have in global.asax.cs Application_Start/End
Trace.WriteLine(DateTime.Now());)

My pb is that I'm loosing my Application and Session globals objects data.

I saw that, by default, in Win2003 IIS 6->My Virtual
Directory ->DirectorySecurity tab->Anonymous acces and .. -> Authentication
method ONLY Integrated Authentication Mode is cheked. I enabled the
Anonymous access, too. In Win XP anonymous is enabled by default.

Client machine and server are part of the same Windows domain controller.

In windows form client code I have :

localhost.MywebService myWS = new localhost.MywebService();

....

myWS.Credentials = System.Net.CredentialCache.DefaultCredentials;

myWs.CookieContainer = new System.Net.CookieContainer();

....

What am I doing wrong ?

What else should I change in win2003 to work like in WinXp ?

How can I catch in Application_end which process is shutting down my asp.net
web service ?

In Win2003 Application log I found this warning :

The registry key for IIS subauthenticator is not configured correctly on
local machine, the anonymous password sync feature is disabled.
Thanks for any suggestion


Feb 7 '06 #1
3 6245
Hello,

you may first check following options on the win 2003 server:

Win2003 IIS manager --> Application Pools,

You may expand each nodes under Application Pools to find the application
pool your web service is working in. Then right click the application pool
and select "Properties". On the "recycling" tab, check if there is a
recycling policy here is force your web applicaiton recycle in a short
while; On the "Performance" tab, check the Idle timeout's value, is it set
too short to perform a shutdown.
Hope this help,

Luke Zhang
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Feb 8 '06 #2
Thanks Luke.

I just checked :

On Recycling tab,

Recycle worker processes (in miunutes) = 21
Recycle worker process (number of requests = 20000
Recycle worker processes at the following times = 23:59

On Performance tab,

Shutdown worker processes after being idle for (time in minutes) = 20
Maximum number of worker processes = 2

Nothing seems wrong to me.

Also, there is no antivirus on Win 2003 Server Enterprise.

Thanks a lot

"Luke Zhang [MSFT]" <lu******@online.microsoft.com> wrote in message
news:F6**************@TK2MSFTNGXA01.phx.gbl...
Hello,

you may first check following options on the win 2003 server:

Win2003 IIS manager --> Application Pools,

You may expand each nodes under Application Pools to find the application
pool your web service is working in. Then right click the application pool
and select "Properties". On the "recycling" tab, check if there is a
recycling policy here is force your web applicaiton recycle in a short
while; On the "Performance" tab, check the Idle timeout's value, is it set
too short to perform a shutdown.
Hope this help,

Luke Zhang
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 9 '06 #3
For deeply trouble shoot this problem, you may create a new application
pool on the server, and add a simple web service to the new application
pool to see if it will generate the problem. If not, you may continue to
move your actual web service application to the new application pool.

Luke Zhang
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Feb 10 '06 #4

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

Similar topics

2
by: cd | last post by:
Is there a specific process or permissions that must be granted to get a .NET (framework 1.4) Window Service to run properly on a Windows 2003 Server? I built a Windows Service to start two local...
0
by: ccuthbert | last post by:
I have a MCMS 2002 site that we recently had several hotfixes installed. After installing the hotfixes, both AOL users and Earthlink users experience tha same problem, namely that intermittently...
1
by: Simon Chester | last post by:
Hello! Can anyone help me with this problem?... I have developed an ASP.NET (version 1.1) application which I have deployed to a number of webservers. The web application works fine on Windows...
0
by: Martijn Remmen | last post by:
I have developed a service which exposes a COM object. This service is running perfect on Windows 2000 Server and Windows 2000 Professional under the SYSTEM account. When the service is...
6
by: Rob | last post by:
Hi, I am working on a project that requires a Windows Service which performs the following file transfer functions. 1. It monitors a specific local directory on a Windows 2003 Server. 2. When...
5
by: Dhilip Kumar | last post by:
Hi all, I have developed a windows service using the windows service project template in VS.NET. I have used three controls in the service, a timer, performance counter and a message queue...
5
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the...
4
by: Bruce | last post by:
I am developing an ASP.NET web service application. It works fine on my WinXP Prof development machine. But when I send it to a Windows Server 2003 system I get the following error (attached...
0
by: KeithZ | last post by:
I have created a very simple vb.net web service. It works fine on my local machine and every other machine I have installed it on. For the life of me I cannot get it to work on my production...
2
by: Trevor | last post by:
Argh! This problem is driving me nuts! Can you help? In November of 2003, I installed a web service on Windows Server 2003 built in VB.NET for v1.1.4322 of the framework. It contains a timer...
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
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: 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...
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
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...

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.