.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Stop Application Pool does not trigger PersistenceIOParticipant.BeginOnSave

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :Windows Application

Hi All,

When i stop the IIS application pool, the persistence will not trigger PersistenceIOParticipant.BeginOnSave to save the customize data into database, however it does save the persistence record into [System.Activities.DurableInstancing].[InstancesTable].

Kindly advise!



View Complete Post

More Related Resource Links

How to Keep conntion pool and application pool for certain time?


In my current system MOSS and windows 2003, I do not know where to see connection pool live time ? and Application pool live time?

How to keep live these for certain number of hours? Where can I change? Is it possible to keep minimum number of connection pool live always?


Thanks for help in advance.


BuildManager.GetType returns null until application pool recycles

Our application uses the Enterprise Library's PropertyProxyValidator class to validate user input (v4.1 - Oct 2008).  On occassion, the code will raise an exception saying the source type cannot be found.  This error persists until the application pools recycle at night, at which point everything works again.  It tends to only affect one of the web front ends at a time (there are two). I tracked down where the exception was being raised, and this is the section of code:Type IValidationIntegrationProxy.ValidatedType { get { if (string.IsNullOrEmpty(this.sourceTypeName)) { throw new InvalidOperationException(Resources.ExceptionNullSourceTypeName); } Type validatedType = BuildManager.GetType(this.SourceTypeName, false, false); if (validatedType == null) { throw new InvalidOperationException( string.Format(CultureInfo.CurrentUICulture, Resources.ExceptionInvalidSourceTypeName, this.sourceTypeName)); } return validatedType; } } (As you can see, the value for this.SourceTypeName is shown in the exception and I've checked that it matches exactly.) We have never been able to reproduce this exception and at this point don't have any ideas left as far as causes.  For a while, my suspicion was that it was related to the Temporary ASP.NET Files folder.  The last

How do use an existing application pool when creating a new web application on Moss-2007 SP2

I have been asked to try and reduce how much memory is being used on our Moss 2007 SP2 farm by reusing existing web application pools. My problem is that when you go through creating a new webapplication and choose the option labled "Use existing application pool" under the section labled "Application Pool - Choose the application pool to use for the new web application" I can only select from a list of three application pools "(Default App Pool (network services), Shared Services, and OfficeServerApplicationPool (NetworkService)" The drop down list does not mention any of the other app pools I have created for previous web applications. My question is this, how do I pick an existing web application pool that I have created previously, rather than keep on creating new application pools for every new web application I create? The farm consists of 3 FE servers 1 search, 1 Query and a Clustered 64bit SQL backend running SQL 2005 all running 64bit W2003 server R2 Thanks for any help you can provide on this. Mr T.    MR T

PowerPivot - New Application Pool vs. Existing Application Pool

When creating a PowerPivot Service Application I am giving two options: "Use existing application pool" or "Create new application pool" and if I join an existing pool which one should it be "SharePoint Web Services Default" or "SharePoint Web Services System"? Now I understand isolation and other technical reasons but what I want to understand is what you guys in the field that run SharePoint Farm would want me to configure and if that does not cause me any scale or performance issue we are good.  If I want to run outside most SharePoint standards I better have a good reason. One note I just missed was: "While this may be a good security best practice, you may still want to use an application pool and/or managed account that is tied to your SharePoint Farm account. As will be noted in Chapter 9, for the PowerPivot data refresh feature to work, the PowerPivot Service Application and PowerPivot System Service requires Farm account rights to access the Secure Store Service database." -- PowerPivot for Excel and SharePoint, page 217 So folks what you would suggest or better yet, how would you like it configured within your farm. Thanks. Denver, CO

How to stop the mail trigger while editing a task list item in sharepoint 2007

I have a requirement to stop the mail trigger while editing a task list item in SharePoint 2007. When I am creating a task the mail is sending to the “Assigned to” Properly. But when I am editing the same task item again a mail is sent to the Assigned to user which I want to stop. Is there any out of box feature / settings to stop this mail trigger while editing. Early response is much appreciated.Deeptyranjan

Enabling Windows Authentication to SQL Server using Application Pool Credentials

I have created a WCF Service (VS2008), an application pool account which has the access to the SQL Server(in remote machine). Configured the App Pool account to the Virtual Directory in IIS (Version 6.0). Once I browse through the SVC file, I can see the WSDL file. I have the "Windows Authentication" and the 'Anonymous authentication" Checked in the Properties for the Virtual Directory. But when I access service through Client, I get "The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.". Binding that is being used is HTTPBinding. I have set the Identity Impersonate to True as well. Bottom line is - I need to use the App Pool account to connect to the SQL Server. Could some one please help me in this?  

Custom UsernamePasswordValidator causes IIS Application Pool to hang.

I have a WCF service hosted in IIS (IIS 7 with .NET 3.5 SP1) that uses a custom UsernamePasswordValidator to validate message credentials against a database. The problem is that it works for a while, but over a period of time IIS stops responding to all client requests until the application pool is recycled. The IIS worker process has some requests that get stuck in the "AuthenticateRequest" pipeline state of the "ServiceModel" module. In my testing, I can consistantly reproduce the problem by forcing a client to create a new service proxy with a different username and password and calling the WCF service every few seconds. To troubleshoot I created a new project and removed all of the authentication code in the Validate function so that the UsernamePasswordValidator will accept any username and password combination without throwing an exception, but IIS still hangs: namespace WcfTestService { public class CustomValidator : UserNamePasswordValidator { public override void Validate(string userName, string password){//code removed for testing} } } If I remove the ServiceCredentials node from the Service Behavior, IIS doesn't hang anymore, but there is no user validation that takes place either, which is a problem. Here is the service binding configuration: <services> <service name=&

IIS Application Pool Recyle

Currently I have Sharepoint 2010 installed and it's taking about 30 seconds or so to open it up initially in the morning.  I'm assuming it's application pools are being recycled sometime during the night time.  What will be the easiest way to configure the server, so that I can minimize the slowness in the morning? Thanks,

Cache settings on shared application pool

I have several web applications on a server using the same application pool. The worker process usually takes a lot of ram but usually only from one application. I can successfully limit the cache usage by setting "PrivateBytesLimit" in web.config file when the application uses it own dedicated application pool. Does anyone know how this setting will be applied when using shared application pool? Is it per application, per worker process or per application pool? Also if it is not per application which setting from which application will be applied?

Application pool shutdown sometimes


I don't know if this is the right place to post, anyway:

Once in a while the application pool of my website has stopped. After taking a look into the Windows logs, In can see in the System log the following: first I see 5 warnings, and then an error. The warning is:
"A process serving application pool 'domain.com' suffered a fatal communication error with the Windows Process Activation Service. The process id was '1568'. The data field contains the error number."

The process id is different for all 5 warnings. Then the error message is:
Application pool 'domain.com' is being automatically disabled due to a series of failures in the process(es) serving that application pool.


The warning:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <Provider Name="Microsoft-Windows-WAS" Guid="{524B5D04-133C-4A62-8362-64E8EDB9CE40}" EventSourceName="WAS" />
  <EventID Qualifiers="32768">5011</EventID>

Application pool WSS 3.0 unresponsive sometimes


Hi all,

I have a problem with our WSS 3.0. Sometimes the sharepoint is not reachable because the application is unresponsive for some reason. I have to recycle the application pool via IIS. After doing that the sharepoint is online again.

I did analyse the eventvwr from the server.

Following message appears:

Faulting application w3wp.exe, version 7.0.6002.18005, time stamp 0x49e023cf, faulting module onetutil.dll, version 12.0.6421.1000, time stamp 0x4994a0c8, exception code 0xc0000005, fault offset 0x00097f79, process id 0x65c, application start time 0x01cb5dea875e6f12.

Sharepoint environment is hosted on a windows server 2008 with service pack 2 (x32) and .NET Framework 3.5 SP 1.

Does someone knows a solution for this problem?

Thanks in advance

Kind regards


Is it supported to trigger expiration formulas directly from a Web Application hosted on a different


On triggering a custom expiration formula directly accessed from our Front End Server Web Application we run into this error (see Event log error below):
Is it supported to trigger expiration formulas from a Web Application (that runs a Site Collection with a custom expiration policy) directly from a Front End server?

Event log:
Error loading and running event receiver Microsoft.Office.RecordsManagement.Internal.UpdateExpireDate in Microsoft.Office.Policy, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Additional information is below.
The Web application at
http://mynltestsp10fe could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
Additional comment: The Web Application was originally created on the Central Administration server but is also hosted on the Front End server.
(When accessed directly from the Central Administration server documents can be triggered successfully for expiration)


Kill/terminate/stop the main application




I have a winforms application.

From the main application i am starting another app using the following code:


System.Diagnostics.Process.Start(Application.StartupPath &

"\Update.exe", arg)


When this app starts, i want to kill the main app. Close the open application.

how can i do it?

There is aprocess.kill but it is not taking any  arguments. How can i kill the main app from the second app?



Site Collection vs Application Pool


As someone new to SP admin I am having trouble understanding the difference between "site collections"and "application pools."

Can anyone give some guidance in plain English rather than MS speak?

Error occurred in deployment step 'Recycle IIS Application Pool': Provider load failure



I am using Visual Studio 2010 to create page layouts and preview images(http://blog.beckybertram.com/Lists/Posts/Post.aspx?ID=71). I was successful in creating page layouts but the image was not coming properly.

So I decided to change the path of image and deploy the project (Empty SharePoint project). But this time, I am getting an error
Error occurred in deployment step 'Recycle IIS Application Pool': Provider load failure
I am sure there is no relation between changing image path in elements.xml and this error.

I also browsed through and found some related issues, but they are not specific to VS 2010 or SharePoint 2010. And I am apprehensive of implementing them.

1. The logged in user is site collection admin and local admin
2. Windows Management Instrumentation service is running
3. App pool's identity is configured to the local admin & password has not changed.

Thanks in advance

Vighnesh Bendre


single sign on IIS 7 multiple application pool


We migrated our web server to window server 2008, IIS 7.

We have single sign on application - that we login through one application called "users" and then no need to login to other applications, they all use the same machine key and cookie.

it works fine when all then applications under the same application pool.

but we have one application that is asp.net 2005.  (the rest are asp.net 2003)

 the user application is in asp.net 2003 and that  other application is in asp.net 2005.

so each application is in a different application pool. -

one pool to asp.net 1.1 and other pool to asp.net 2.

when I run the asp.net 2005 application

I get the login page and after I  login  I get the following errer:

HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested Url: /users/Unauthorised.aspx


Important: If I switch the "user" application (the login) to work under the same pool as my asp.net 2005 application, then it works fine with the asp.net 2005 application,but I get the above error for the asp.net 2003 applications

All this happened after we swi

How to change the service application's application pool


Hi all,

I have a small 2010 farm (DB server/app server/WFE) implemented on vmware virtualization and I'm having CPU performance issues in the App server (quad core, 8 GB used by 50 people...). While I was creating the service applications I gave each a separate application pool since that seemed the best practice to follow, but now have more than 10 w3wp processes consuming cpu and memory. After some research I found that for performance purposes one should minimize the number of app pools, so now I want to change them and remove a few.

Any ideias how one can do it? Is there a method? It's not something one can use the UI directly to do....


Thanks in advance

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend