Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7839763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:32:37+00:00 2026-06-02T15:32:37+00:00

I have a little problem. I’m trying to add a timer job following this

  • 0

I have a little problem. I’m trying to add a timer job following this tutorial : http://dotnetfinder.wordpress.com/2010/07/24/creatingcustomsharepointtimerjob2010/

I came to the point where my timer job is enabled and is launching every five minutes.
The problem is that it doesn’t execute all the Execute method.

    public override void Execute(Guid contentDbId)
    {

        // get a reference to the current site collection's content database

        SPWebApplication webApplication = this.Parent as SPWebApplication;

        SPContentDatabase contentDb = webApplication.ContentDatabases[contentDbId];

        // get a reference to the "ListTimerJob" list in the RootWeb of the first site collection in the content database

        SPList Listjob = contentDb.Sites[0].RootWeb.Lists["Liens"];

        // create a new list Item, set the Title to the current day/time, and update the item

        SPListItem newList = Listjob.Items.Add();

        //newList["URL"] = "http://"+DateTime.Now.ToString()+".fr";

        //newList.Update();

    }

I attached the debugger to the OWSTIMER.EXE.
If i try to add a breakpoint at the line : SPList ListJob = …, it’s ok,
But if i try to add a new breakpoint at the next line (SPListItem newList = …) then i have the following message :
“The following breakpoint cannot be set : …
The CLR was unable to set the breakpoint”.

Does anyone has any idea how i can make it work ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T15:32:38+00:00Added an answer on June 2, 2026 at 3:32 pm

    You seem to be attaching to the correct service. See How to: Debug a Timer Job to double check your steps.

    Also, as pointed out in this comment, you should restart the timer service when deploying a timer job:

    mark

    February 11, 2011 at 4:41 am

    There is a very important step that
    needs to be completed with any Timer Project. You hav to recycle the
    SharPoint timer service in between deployments. Best way to do this is
    to add

    net stop SPTimerV4 – Pre Build

    net start SPTimerV4 – Post Build

    to your sharepoint project. If you do not do the above – you will be
    puzzled as to why your code seems not to be up to date. The reason is
    that the timer service Caches the assembly with your class. This can
    cost you hours of troubleshooting, in trying to identify why your code
    does not deploy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little problem with the following code. When I click Send it
I have a little problem with some jquery and http://www.mikage.to/jquery/jquery_history_noc.html The function works great,
I have this little problem, that I cannot figure out which arguments to pass
I have a little problem with following VHDL code: process (zbroji) begin if rising_edge(zbroji)
I have little problem with printing data like this, I have written script like
I have this little problem with json. //real json var json1 = {test1:TEST1,test2:TEST2,test3:TEST3,test4:TEST4}; alert(json.test1);
have a little problem with this code: UITableViewCell *cell = (UITableViewCell *)[[button superview] superview];
Hey most of my issue has been solved but i have little problem This
I have little problem with my script. Here is the code. http://pastie.org/2361140 When I
I have a little problem: I have this in my model: validates :title, :presence

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.