473,880 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_Sta rt/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 ->DirectorySecur ity 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.Myweb Service myWS = new localhost.Myweb Service();

....

myWS.Credential s = System.Net.Cred entialCache.Def aultCredentials ;

myWs.CookieCont ainer = new System.Net.Cook ieContainer();

....

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 subauthenticato r is not configured correctly on
local machine, the anonymous password sync feature is disabled.
Thanks for any suggestion


Feb 7 '06 #1
3 6263
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 "Performanc e" 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******@onlin e.microsoft.com > wrote in message
news:F6******** ******@TK2MSFTN GXA01.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 "Performanc e" 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
2599
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 programs (Putty and Pageant) located on a Win 2003 Server. The service installs but doesn't start the Putty / Pageant programs properly when using any user ID except my own. Why will it work with my User ID? I install the Windows Service on a Win...
0
1579
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 buttons, and linkbuttons cause a post back but we don't seem to get the postback event firing. The user sees the page post, but then the original page comes back with the form empty. This occurs intermittently and does not seem to be related to...
1
2322
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 2000 Server computers. It also works OK on Windows 2003 Server UNTIL Windows 2003 Service Pack 1 is installed! The error and stack trace I am given is:
0
565
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 installed on Windows 2003 Server, the application works well, and the COM object can be called just as it's meant to be. The service is however running under the IWAM account (I know strange account to run a service). However, after a while (from...
6
2941
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 it finds files with a specific extension, it queries a SQL Server database to determine what workstation will be the destination of a File.Copy. 3. It copies those files to the appropriate workstations on the LAN,
5
5094
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 control. The service will "sleep" for 'n' seconds using the timer control and whenever the timer_elapsed event occurs, I use the performance counter object to determine availability of few resources. Based on the availability of resources, I use the...
5
2705
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 Administration group (on server side) to have the necessary authorization to start a Windows Service (I don't understand why "Power User" rights are not enough to do the same thing) Although I'm able to start a service using windows 2000 server...
4
2920
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 below). I suppose I have some kind of permissions issue on the server? What recommendations can anyone propose? Thanks, -- Bruce
0
1812
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 machine. Development Machine: - MS .NET Framework 1.1 Ver. 1.1.4322 - Visual Studio 2003 (where the apps are created) - IIS 5.1 App was installed via a Visual Studio Web Setup Project with no errors.
2
2464
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 (System.Timers.Timer) which has an interval of 24 hours. Actually, it reads a time like 2AM out of the config file, and calculates the time between the start of the service to 2AM, and sets the timer. When the timer expires, it re-reads the...
0
9774
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
10715
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
10811
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
10396
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
9550
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...
0
7105
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
5778
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...
0
5973
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4192
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.