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


Post New Web Links

WCF Timer Service with Asp.net

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :Windows Application
 

I have a WCF Service Application project  It contains a timer which I want to use to call a function that sending emails to users

The timer does not start until someone calls the service for the first time from asp.net page

but I found that the serivce (Timer ) stop alone after about 1-2 hours.

I did these checks:
At IIS the keep alive is checked
At web.config no session time out.

//Static Timer aTimer;
GC.KeepAlive(aTimer);

I think that it related to UI thread it get killed or somthing like that , Or iis issue.
My question is how I can prevent It from be stopped alone!

 


 




View Complete Post


More Related Resource Links

Timer in Web Service

  
Hi I have a web service (asmx). I want to add a functionality where in I have to do polling for data on a URL. I added a timer and in the timer elapsed event handler I am checking for the data. Is it a good design? Is there something better than timer for this in ASP.NET? I have a issue with this where in the site / IIS goes in ideal state because of no requests, I have posted it in other forum on how to solve this problem. What I wanted to verify is that, use of timer is a valid thing for my use case, or I should go for some other approach? Will it be too heavy operation for the service to have a timer of 5 minutes interval running in over there, which will be running for the lifetime of this application.  

Change the Timer Service Account

  
I did an install with Sharepoint 2010 RTM and have it working well but when I checked the Monitoring - Review Problems and solutions it states a security concern that the Farm Account should not be used for other services.  At this stage I have to change out the timer service since it is using the farm account.  But I don't see the timer service in the "Security - Manage service Accounts" location.  I created a timer account with no problems but how does one go about changing the timer service to use this account?  I know I can go to services and change it there but I am wondering if there is a need to do this within Sharepoint?  Am I missing a credential management piece that did not show up in the list of services? Any help would be appreciated Workerbee09  By the way, The problem points to a failing service SPTimerService (SPTimerV4) but its started and working cause I can see services being started and history of the service where it was successfull. 

Change the Timer Service Account

  
I did an install with Sharepoint 2010 RTM and have it working well but when I checked the Monitoring - Review Problems and solutions it states a security concern that the Farm Account should not be used for other services.  At this stage I have to change out the timer service since it is using the farm account.  But I don't see the timer service in the "Security - Manage service Accounts" location.  I created a timer account with no problems but how does one go about changing the timer service to use this account?  I know I can go to services and change it there but I am wondering if there is a need to do this within Sharepoint?  Am I missing a credential management piece that did not show up in the list of services? Any help would be appreciated Workerbee09  By the way, The problem points to a failing service SPTimerService (SPTimerV4) but its started and working cause I can see services being started and history of the service where it was successfull. 

"SharePoint 2010 Timer" service needs to be restarted everyday!

  
Here's my problem, Every morning I log on to my SharePoint 2010 server to find out that the "SharePoint 2010 Timer" has stopped! We have seen the problem on two environments (development & production).  When trying to restart the service manualy I get an error 1069 "The service did not start due to logon problems"!  I manage to restart the service by reentering the password on the service "Log On" tab or by reentering the password in "Central Administration" - "Managed Accounts". Looks like something is changing the password that the service will use to log with the service account.  Please note that the account password never changed)!  Any ideas?  Thanks, fcorbeil

SP timer service is unavailable MOSS 2007

  
Hi, This is regarding sharepoint timer service. the error i am keep getting that it is unavailable.  when creating a new Shared services provider or trying to start a back job (process) from central administration, we keep seeing this error. details around the issue, after successfully installing SQL Server and MOSS on a same machine, we wanted to change the service account for Sharepoint Services. we went ahead and changed the accounts manually on Windows Sharepoint Services, then we started seeing this problem. did anybody have similar issue before? please advise. thanks much in advance. 

Trying to Restore The Application Server Administration Service Timer Job in MOSS 2007

  

I was using this link to try and repair a failed service job.

http://sharepointservices.wordpress.com/tag/admin-jobs/ 

What happened is that it blew away my Application Server Administration Service Timer Job.

Is there a way to restart that job?

 


SharePoint 2010 Timer Service keep failing

  

Hi everybody,

 

I am trying to set up SharePoint 2010 on small farm environment. 1 db server, 1 domain controller and 1 SharePoint server - where all services should run.

It was installed and working, until I tried to configure user profile synchronization service. I used least privileged account model, following in particular this article http://www.harbar.net/articles/sp2010ups.aspx

As you know, the configuration is quite complicated and require a lot of tuning on accounts rights.

 

I apparently mess something up very, very badly because since then SharePoint Timer Service keep failling every 2 or so minutes.

It all started at 6 am this morning when the service was recycled.

 

System Event viewer is flooded a loop of 4 events regarding the timer service:

  • Timer service entered the running state.
2.30 minutes latter:
  • Timer service entered the stopped state
  • Timer service terminated with service-specific error %%-2147467259
  • Timer service terminated unexpectedly.  It has done this 2 time(s).  The following corrective action will be taken in 30000 milliseconds: Restart the service
and starting again after 30 seconds

 

for you information, here are the exact events:

Log Name:   System
S

Extending Document ID Timer Service

  
I really like new Document ID feature, but I am wondering if the Document ID generation algorithm could be extended. For example, a potential customer might want to generate these IDs in a special sequence or using some special algorithm according to government regulations or something else.

Timer service keeps terminating unexpectedly

  

I got excetion while trying to configure project server 2010 over sharepoint server 2010 +TFS 2010 installed system.

Here is the event logs;

"The SharePoint 2010 Timer service terminated with service-specific error %%-2147467259 . "

"The SharePoint 2010 Timer service terminated unexpectedly.  It has done this 257 time(s).  The following corrective action will be taken in 30000 milliseconds: Restart the service. "

Timer service keeps restarting, how can I diagnose the problem?

Search in SharePoint 2010 does not show results for all users other than the timer service account

  

I have setup a new SharePoint 2010 setup. Created Search Service application and configured. Confirmed that the crawl went fine without any error for both Local site and a file share. In the Search application i confirmed that the All Site scope shows 3890 items.

ISSUE: If any of the user [including site collection administrator] browses the site and try to search something it does NOT show result [No error either it says We did not find any results for .....]. All Site scopes does not show 3890 items but only 28.

But if the timer service account [system account] logs in the site and does the search it works fine.With this account loggd in if i check the All Site scopes i do see 3890 items.

This does seems to be some thing to do with the permission, but i am not able to get hint where the mistake is.

I have done the follow till now.

> I checked the application association is correct
> Created a new web application and confirmed that the issue exists there as well
> Checked ULS log but dont see any error related to this.
> No relavent event id in Application event viewer

Please help


Regards Ram

Need Help in window service timer scheduling

  

Hi All,

Here i have 3 rows in my table with the follwing data

WatchUrl                                                        SheduleType             Time

http://www. xxx .com/ abc /Welcome.html        Every Day            30

http://www.xxx.com/ abc /Captial.html             Every Day            1

http://www.xxx.com/abc/Histroy.html               Every week         2

What i have to do is to create a window service that call the webservice by pasing the url.the webservie will download the page content and  compare it with previous content if it differs i have to notify it to the user,that new content is added.i did everyting and its working fine .B

"The Timer lock was overridden ... timer service may be malfunctioning"

  

Hi,

I’m seeing the following warning message mostly in 5 minutes interval when it comes. Sometimes there are some intervals. This is a MOSS 2007 farm (August 2010 CU) with 2 WFEs, 1 App Server and 1 SQL 2005 Server. I get this message in all 3 SharePoint servers and sometimes it complains about “Timer service on Web02 may be malfunctioning”. I’m trying to troubleshoot this issue – has anyone any lead on this?

There is not anything more on the ULS logs.  

Any suggestions would be greatly appreciated!

Thank you.

==================================================

timer job cannot pass a parameter to web service

  

Can't pass a parameter to web service

a simple web service:

[webMethod]

public string helloWorld (string st){ return st;}

in timer job Execute method

public overwrite void Execute(){

....

...helloWorld(" say hello ");

}

The timer job is working without parameter. How shall I solve it?

 

 

 


Windows Service Applications Tutorials

  
You can easily create services by creating an application that is installed as a service. For example, suppose you want to monitor performance counter data and react to threshold values. You could write a Windows Service application that listens to the performance counter data, deploy the application, and begin collecting and analyzing data.

WCF Tip: Using Properties in Service Contracts

  
you'll notice all of the Service Contracts are implemented with interfaces containing only methods. For the longest time I thought that's all that was supported, until I thought about it a little more. In C# land, properties are simply wrappers around a get method and set method, so why wouldn't we be able to use properties in a service contract? Well the answer is we can.

Realizing a Service-Oriented Architecture with .NET

  
This article is meant to be a practical discussion guide to building a .NET application in a service-oriented architecture. We will consider real-world goals, real-world obstacles, and experience-based solutions. I quickly concede the approaches discussed here are not exhaustive or infallible. This paper is focused on application development, not application integration. We will specifically consider architectural issues and component design issues.

The Potential of Web Services

Web Service for uploading documents into SharePoint

  
WS UploadService is a web service written for Microsoft Office SharePoint Server 2007 and Windows SharePoint Services 3.0 and is meant for uploading documents into SharePoint. I have just uploaded the zip file to GotDotNet.com so it will take some time before the zip file appears in the list of downloads. For the time being, you can download the zip file from the following location
Categories: 
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