473,387 Members | 1,606 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,387 software developers and data experts.

w3wp.exe process crashing.

Hi all,

I have a problem which I've seen mentioned quite a few time around the net,
but nothing seems to work.

I've created a web service with one method (see code below). It's running
under IIS set to Windows Authentication. Calling the web service from a
client application or the browser works fine. The problem is that every few
minutes, I receive a "Memory cannot be written" error from w3wp.exe and the
web services dies. I then must proceed to shutting down visual studio,
empty the aspnet temporary files and restart IIS in order for the web
service to come back online. Otherwise I get a stupid "Mutex cannot be
created" error each time I try to connect to my web service. The crash
doesn't happen when I actually call on the web service, but rather several
minues after i leave my service.asmx website.

Why on earth does w3wp.exe crash?
/// ****************** CODE
[WebMethod]
public string MyMethod()
{
if (!(this.User.Identity is System.Security.Principal.WindowsIdentity))
{
return null;
}

System.Security.Principal.WindowsIdentity user = this.User.Identity as
System.Security.Principal.WindowsIdentity;
if (!user.IsAuthenticated || user.IsAnonymous)
{
return null;
}

return "Req User SID: " + user.Name;
}
/// ******************* CODE
Dec 20 '05 #1
1 2634
One more piece of information: As soon as I start getting the "Mutex cannot
be created" error, I usually call 'iisreset' to reset IIS and then I receive
the "Memory cannot be read" error from w3wp.exe again.

"msnews.microsoft.com" <no****@no.spam> wrote in message
news:uA**************@TK2MSFTNGP11.phx.gbl...
Hi all,

I have a problem which I've seen mentioned quite a few time around the
net, but nothing seems to work.

I've created a web service with one method (see code below). It's running
under IIS set to Windows Authentication. Calling the web service from a
client application or the browser works fine. The problem is that every
few minutes, I receive a "Memory cannot be written" error from w3wp.exe
and the web services dies. I then must proceed to shutting down visual
studio, empty the aspnet temporary files and restart IIS in order for the
web service to come back online. Otherwise I get a stupid "Mutex cannot
be created" error each time I try to connect to my web service. The crash
doesn't happen when I actually call on the web service, but rather several
minues after i leave my service.asmx website.

Why on earth does w3wp.exe crash?
/// ****************** CODE
[WebMethod]
public string MyMethod()
{
if (!(this.User.Identity is System.Security.Principal.WindowsIdentity))
{
return null;
}

System.Security.Principal.WindowsIdentity user = this.User.Identity as
System.Security.Principal.WindowsIdentity;
if (!user.IsAuthenticated || user.IsAnonymous)
{
return null;
}

return "Req User SID: " + user.Name;
}
/// ******************* CODE

Dec 20 '05 #2

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

Similar topics

1
by: Louis | last post by:
Hi All, I'm using w2k3 and IIS6, is it true that when I start the .net web application, there will be a process w3wp.exe? As my application is using asp.net, but when I start the web site,...
15
by: z. f. | last post by:
Hi, i have an ASP.NET project that is using a (Class Library Project) VB.NET DLL. for some reason after running some pages on the web server, and trying to compile the Class Library DLL, it...
5
by: ALI-R | last post by:
I'd like to debug my asp.net application ,,but I can't find W3wp.exe in the list of system process to attach it to the debugger??? Is there someboddy who can help me. Thanks Ali
3
by: Ricky Chan | last post by:
I am using windows 2003. I have unchecked all options in IIS6 application pool, so I assume no worker process recycling will be performed whether any event occured. what will be happened when...
4
by: AN | last post by:
Greetings, We make an ASP.NET web application and we host it for our customers. We have provisioned hardware and hope to be able to service around 200 customers on this hardware. The web...
2
by: Chris | last post by:
Error in the Event Log is: ..Net Runtime 2.0 Error Reporting Event ID 1000 Faulting application w3wp.exe, version 6.0.3790.0, stamp 3e8000e6, faulting module webengine.dll, version...
0
by: ToadLurker | last post by:
Usually, to debug my .NET dll, I typically just run my web application until the DLL in question is invoked - at which point I can just attach to it via Visual Studio .Net, and debug it. Two weeks...
6
by: Anand Saha | last post by:
Machine: 32 bit Intel Xeon 2.93 GHz, 16 CPUs, 32 GB RAM OS: Windows Server 2003 R2 Ent Edition, SP2 Web Server: IIS 6 ASP.NET ver: 2.0 I made a simple ASP.NET application, with only this code...
10
by: =?Utf-8?B?U2Vhbg==?= | last post by:
I have two win2003 sp1 servers running iis 6.0 running the same application. When I connected to the first server a W3WP process (application pool is created) whoose size is approax 14MB When I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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...

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.