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


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

Extending Document ID Timer Service

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :SharePoint
 
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.


View Complete Post


More Related Resource Links

Service Station: Extending WCF with Custom Behaviors

  

WCF extensibility points allow you to customize the process by which messages are translated, formatted, and sent over the wire for more customized services.

Aaron Skonnard

MSDN Magazine December 2007


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. 

How To "Upload a new document template" to Content Type via Web Service

  
I hope someone can help me. Let me begin by saying that I'm not a programmer; so I 'may' not get the terminology exactly right, but hopefully someone will know what I mean. I am using SharePoint 2010 along with a 3rd party application that I'm using for creating, managing and executing workflows.  The workflow application I'm using is Nintex Workflow 2010.  As such, I can only use functions, services, commands...etc...that are offered to me by that application. Anyway, what I am trying to do is simply replace a document template that is being used for a particular content type with another document template. For this I believe I need to use the Webs.UpdateContentTypeXmlDocument Method.  More information is provided here (http://msdn.microsoft.com/en-us/library/websvcwebs.webs.updatecontenttypexmldocument.aspx). The Webs.UpdateContentTypeXmlDocument method requires two parameters..."contentTypeId" and "newDocument". "contentTypeId" - I have got the Content Type ID by clicking on the content type and viewing the URL shown in my browser.  So, I am confident that my content type id is correct and is "0x010100C392CF11DE923A4E8AB9018B0A42119303". "newDocument" - The MSDN article states...'A string that represents the XML document to replace the existing XML document.".  To be honest, I'm not 100%

"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

pass XML document to WCF service?

  

HI,

I am new to WCF. So some one please help me out. I need to pass XML document to my WCF service.

And send back, XML Ack message to client.

How do i need to do? any sample can you provide?


Downloading a document from a sharepoint site to local file system, copy web service returns null

  
Hi Guys,
               I am trying to get this done for the last 2 days and I am still banging my head to the wall.
All I need to do is to download files from my sharepoint site library that uses integrated windows authentication. I was using copy webservice : getItem method to accomplish this.

CopyService.GetItem(copySource, out myFieldInfoArray, out myByteArray);

Problem : myByteArray is always returned as NULL

Note: I have tried the same with another site that uses forms authentication but the result was the same (NULL !!)


This is my code:

CopyService.

Copy copy = new CopyService.Copy();

 

Adding multiple users to a document library column by web service

  

I'm attempting to create some VB code to call a SharePoint Web Service to add a document and associated metadata to a document library. I can successfully add metadata to a text column but I'm having some problems getting multiple entries into a column which is specified to take multiple users (and does so when they are added manually) although I can get a single user in using the following snippet.

Dim info2 As MySharePoint.FieldInformation = New MySharePoint.FieldInformation()
info2.DisplayName = "Authors"
info2.InternalName = "Authors"
info2.Type = MySharePoint.FieldType.User
info2.Value = "1"

I'm hoping that someone will be able to advise me of the approach or syntax necessary to add multiple users to this Authors column e.g. Users 1 and 74. I note that

info2.Value = "1,74" or info2.Value = "1;74"

don't appear to work.


MTOM-enabled WCF service sends document inline in SOAP response

  
Hi,

I'm running a WCF service that has messageEncoding="Mtom" in the config file. The WCF service however, in its SOAP response sends the document as a Base 64 encoded document inline and not as a <xop:include.....> reference outside the SOAP. I'm not sure what I'm doing wrong. Please guide me.

Thanks
Bala

Desired Format:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_F862C3E04D9E35266C1256303956115; type="application/xop+xml"; start="0.urn:uuid:F862C3E04D9E35266C1256303956116@apache.org"; start-info="application/soap+xml"; action="urn:ihe:iti:2007:RetrieveDocumentSetResponse"
Date: Fri, 23 Oct 2009 13:19:11 GMT

--MIMEBoundaryurn_uuid_F862C3E04D9E35266C1256303956115
Content-Type: application/xop+xml; charset=UTF-8; type=&

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?

CMIS - How to determine the URL of the CMIS service document

  
Before a CMIS consumer can retrieve information from a CMIS provider, it must know the URL of the CMIS service document for the provider. I cannot find any documentation indicating how to determine the URL of the CMIS service document for SharePoint 2010. If anyone knows how to determine this URL, or where to find the relevant documentation, please post it. Thanks!

XPS, the WPF Document Viewer and extending the WPF Annotation framework

  

Hi all,

I'm in the design phase of a project at the moment and the client wants a desktop app they can use to view and annotate "any" type of document. I've been doing some research into the WPF document viewer and XPS documents and it seems like a perfect fit because using the XPS document writer, you can print anything to an xps document and easily view it in your WPF app. I've tested this with a few different document types (PDF, web pages, word documents, etc etc) and the results have been very impressive. I wanted to stay away from the Adobe PDF reviewing tool, because dealing with their APIs is likely to be difficult and I wanted to design an all-MS solution if possible.

 

Another major advantage of XPS is that we can use the WPF annotation framework (System.Windows.Annotations), but my problem is that this framework is a good start, but the client is going to want richer features that the framework doesn't provide, like the following:

 

·         Ability to draw rectangles o

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
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