Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2006

Tip: Looking for answers? Try searching our database.

Asp.NET 2.0 web service and Windows 2003 Server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bragadiru - 07 Feb 2006 15:24 GMT
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
Luke Zhang [MSFT] - 08 Feb 2006 02:49 GMT
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.)
Bragadiru - 09 Feb 2006 08:11 GMT
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

> Hello,
>
[quoted text clipped - 14 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Luke Zhang [MSFT] - 10 Feb 2006 06:49 GMT
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.)

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.