I've written an article about custom stsadm commands for SharePoint 2007 / WSS v3.
http://www.codeproject.com/useritems/stsadm_commands.asp
If you find the information useful, please let me know.
I've written an article about custom stsadm commands for SharePoint 2007 / WSS v3.
http://www.codeproject.com/useritems/stsadm_commands.asp
If you find the information useful, please let me know.
I have written a custom Sharepoint Timer Job.
In that job i send emails for some items in a sharepoint list using the Ader TemplateEngine.
In my Project i referenced the assembly.
The deployment succeeded and as the job runs the first time, there was an error in the event log:
Could not load file or assembly ...... (i think you know the text :))
I was surprised because the assembly is deployed in the gac. Other projects use this assembly also on that server and can use it.
I don't know why but i copied the assembly to the web server extensions\12\bin folder where the owstimer.exe (That piece of executeable is responsable for executing the jobs) is living and this solved the problem.
I got a task where documents can be published to a document library. Published documents should get properties attached that are stored in a seperate custom list with a custom content type.
The documents derive all from that custom list content type.
So I wrote an eventhandler for an Updated and Added event to load all the fields from the custom list entry and if the document has also that fields, wrote the value.
At the end i just put in properties.ListItem.Update() and it updates the item. That was my development machine.
In production there came an error across: The document has to be checked out to update its properties. Ah, ok.
Because its only metadata in my mind and the user cannot control if the file gets checked out and i don't want to increment the version number i searched for an alternative method. I could'nt turn off "versioning" and "checkout requirement".
Long term, short answer: just call listItem.SystemUpdate(false).
This bypasses the "normal" checkout and list settings and just updates the item and does not increment the version number (if you use the second ctor with the bool. bool incrementListItemVersionNumber). BE SURE TO KNOW WHAT YOU DO :)
http://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.systemupdate.aspx
If you are one of those who want to add custom application pages to sharepoint, then the following infos might be useful:
Whats left is that i want to use the Sharepoint User Controls like the other application pages but how do i do that?
Is this possible? Perhaps someone can tell me
UPDATE:
What works for me is to create a project under the _layouts folder and mark the aspx files as Build Action = none. Additionally i removed the iis application. it can compile but not debug but thats ok at the moment. Inline code files does'nt even call the Page_Load Event in my case.