Blog b = new Blog("marcos blog"); RSS 2.0
# Sunday, May 25, 2008

Mikhail Dikov has written a very good article about how to use and deploy global resources within SharePoint.
He uses a Feature Receiver and creates a one-time scheduled job which copies the resource files from the feature folder to the App_GlobalResources folder under Inetpub\wwwroot\wss\VirtualDirectories\[port].

Now, why I'm writing about this?

Because there is one little thing within his code, that makes this solution unusable for a farm with more than one WFE (Web front-end server).
The resource files were copied only on one WFE each time I activated the feature. After searching the web a while, I found that the parameter SPJobLockType is the problem.

In Mikhails solution this parameter is set to "Job", which defines that this job executes only on one machine at a time. In a farm, I want to execute this job on each WFE. So set this parameter to "None" and it works!

Another solution is the article from Maxime Bombardier "Deploying resource files across a farm". For me it seems to be a little bit difficult and more complex than the solution from Mikhail.

Sunday, May 25, 2008 4:49:57 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [5]
.NET | Microsoft | SharePoint | Software
Monday, May 26, 2008 2:50:53 PM (W. Europe Standard Time, UTC+01:00)
Good find! Can I ask you to post your findings as a comment to my article. Feel free to reference your blog post.

Thanks,
Mikhail
Wednesday, May 28, 2008 2:03:53 PM (W. Europe Standard Time, UTC+01:00)
Well that's annoying. Adding blog comments is broken. I had had entered a long comment (twice), and the system errored on post. My comment was lost.
Here's the summary:
Use supported WSP directories, and farm deployment to all WFEs is automatically supported. Ex: Use <12hive>\TEMPLATE\CONTROLTEMPLATES instead of <webroot>\WebUserControls. Additionally, <webroot>\resources is also a supported deploy location in WSP. Use WSPBuilder to make WSP creation VERY easy (just copy your files to proper directory, and run).
Thursday, January 22, 2009 5:12:39 PM (W. Europe Standard Time, UTC+01:00)
Does this trick also work when servers are added to the farm at a later date? Or do I need to run a manual stsadm command?
Friday, January 23, 2009 7:58:01 AM (W. Europe Standard Time, UTC+01:00)
I think this will work if you add a server to the farm, because SharePoint by itself copies all files necessary for the web applications to the new server, but you should check this.
Friday, January 23, 2009 12:27:18 PM (W. Europe Standard Time, UTC+01:00)
Thanks Marco, but I don't believe there is a way to deploy content directly to the App_GlobalResources folder using a SharePoint solution. Some custom code will need to be triggered and I don't believe that is possible to do automatically when new servers are added to the farm.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, strike, strong) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview
Statistics
Total Posts: 192
This Year: 4
This Month: 1
This Week: 0
Comments: 291


Sign In
All Content © 2010, Marco Wiedemeyer
DasBlog theme 'Business' created by Christoph De Baene (delarou)