| serge's profileSerge Luca (Sharepoint M...PhotosBlogLists | Help |
|
November 20 Sharepoint 2010 and Devoteam Sharepoint 2010 course
Unless you lived in a cave for the last 48 hours, you probably know that Microsoft announced 2 days ago the general availability of the public beta of Office 2010, SharePoint Server 2010, Visio 2010, Project 2010 and Office Web Apps . Due to several months of NDA with Microsoft, I haven't be able to talk about Sharepoint 2010, but I've been using the Sharepoint 2010 Technical Preview (beta 1) for months:
What’s next ?
Installing Sharepoint 2010 you can install Sharepoint 2010 on Windows 7 (yes), Windows 2008, Windows 2008R2 all 64 bits. On Windows 7 and Windows 2008 R2, make sure the following hotfix is installed, that is super important. If you want to install Sharepoint 2010 on Windows 7, please read this post it’s the most important !!!!!Also read this post . For developers, Visual Studio 2010 beta 2 (sure!) yes, now Sharepoint 2010 is a first class citizen in Visual Studio 2010 b2, you can get it here. You will notice that Sharepoint 2010 is based on the .Net framework 3.5 and not on .Net 4.0; you won’t be able to use WF 4 in SP2010, but hey, you can design your workflow in Visio, you won’t miss the new WF 4 Designer. I will start a series of posts that will describe the new platform, but to summarize:
September 23 Skip the last Sharepoint August Cumulative update or……or don't detach your content db. In server farms that have a large number of sites, installing a software update with the content databases attached can result in too much downtime. To minimize downtime, Microsoft recommends that you perform the additional step of detaching the content databases. More details here http://blogs.technet.com/stefan_gossner/ The problem is being investigated September 22 Using a database or a Sharepoint List ?The Sharepoint Pattern & Practice group recently released the August version of Sharepoint Guidance and it’s worth reading! A common question in the sharepoint newsgroups is “shoud I use a Sharepoint list or the database ?”. September 21 New (last ?) Release of the Visual Studio 2008 extensions for SharePoint 1.3Michael Washam (MSFT) announced today in the sharepoint newsgroups the last release of the Visual Studio Extensions for Sharepoint 1.3 CTP. I’ve used this tool since its first release in 2007, but the upgrade from 1.2 to 1.3 provides major improvements and is (now) really usable. This is probably the last release of the venerable VSeWSS before Sharepoint 2010 and the Sharepoint developement tools that will be part of Visual Studio 2010. By the way if you watched the Sharepoint 2010 sneak peek video, you probably noticed that VSeWSS projects can be imported in Visual Studio 2010.
New features of VseWSS 1.3:
September 17 Sharepoint 2007 : how to prevent users from creating Sharepoint Designer Workflows
That is a frequent question I have to answer…This seems to be a common issue. In Central Administration, Application management, you will find the following option: When you selected it, you will get this : In the setting “Enable user-defined workflows for this site”, select “No” (you will notice other interesting options for internal or external users who don’t have site access, but who need to take part of workflows). Now, if you open one of the site of the web application with Sharepoint Designer 2007, when you try to create a End User workflow You will get this warning : Sharepoint Conference 2009 (Las Vegas, 19-22 October 2009): new sessionsDon’t forget it, that’s the place to be if you really want to learn something about Sharepoint 2010. Hope to see you there… September 06 My Codeplex Generic Framework for Sharepoint Workflows (aspx forms): v1.0 today
I guess this will help many people in the Sharepoint community (according to some messages in the Sharepoint newsgroups…) After working on it this week-end, I’ve decided that the quality was good. Now it’s time to move it to Sharepoint 2010; more details after the Sharepoint Conference in Las Vegas. Enjoy ! August 31 Calling Sharepoint Dlls from C++ code
I spent most of the nineties in the C++ world with the venerable MFC (Microsoft Foundation Classes) , ATL(Active Template Library) & its famous smart pointers. I recently had to answer a question in the Sharepoint newsgroups related to using Sharepoint dlls in C++: I jumped on it as a kid in a candy store (to be honest my current candy store is Sharepoint 2010). This is what I did: Create a new CLR Console Application project :
The following code is generated :
Add a reference to the Microsoft.Sharepoint.dll :
Define the Microsoft.Sharepoint namespace:
Write your C++; since Sharepoint classes are managed classes, you have to use the new gcnew operator and you don’t have to call delete. Run the application :
Don’t forget, Visual C++ is the only compiler that allows you to mix-up managed and native code (we call that IJW or “It just works”); and this without the overhead of the PInvoke layer. This is quite simple, but it’s not your grandma’s C++ compiler anymore. August 24 Sharepoint workflows : when are your tasks created ?Several Sharepointers notice that using the CreateTask activity alone in a Sharepoint workflow doesn’t really create a Sharepoint Task: To have the task created (in the task list) you need to have an activity that will move the workflow in waiting state ; any activity implementing the IEventActivity interface will do the job; that is the case of all sharepoint activities having name starting with “On” (OnTaskCreated, OnTaskChanged,OnTaskDeleted,…), and also the Delay activity. The Sharepoint activities modifying the Sharepoint content database are enrolled in a transaction which is committed when the workflow persists.
The following setting in the web.config file specifies the Transaction timeout duration:
<configuration> <system.transactions> <defaultSettings timeout="00:05:00"/> </system.transactions> </configuration> By default the value is set to 1 minute. You can increase the value to 5 minutes if you face the following error, which can happen if yoy create several hundreds of tasks :
Workflow Infrastructure 72fg High Error in persisting workflow: System.Transactions.TransactionAbortedException: The transaction has aborted. ---> System.TimeoutException: Transaction Timeout --- End of inner exception stack trace --- at System.Transactions.TransactionStateAborted.CreateAbortingClone(InternalTransaction tx). August 20 Step by Step Tutorial.Creating workflows with Windows Sharepoint Services and MOSS 2007(Part 17/20). Solving the infamous “Failed On Start (Retrying)”
Spending a lot a time (anwering) in the Sharepoint newsgroups, I've noticed the "Failed On Start" error is an extremely frequent question.This post will probably help many people. When we start a (Custom) Sharepoint Workflow (but even sometimes Out of the Box workflows) the infamous Failed on start (retrying) error may hit you.The most common reasons of this error are: 1. in most cases the main reason is that the CodeBesideclass and the CodeBeside assembly in workflow.xml don't match the workflow class name & assembly strong name of the dll registered in the GAC ("Unexpected Load Workflow Assembly: System.IO.FileNotFoundException: Could not load file or assembly xxxx") is what you will find in the Sharepoint log. User Reflector the compare your assemblies strong name/class name & don't forget the namespace!
To prevent web front ends (w3wp) from getting overrun by running too many workflows instances, there is a throttle limit. If more events than the throttle are already being processed, the newer events are enqueued as work items – they will be picked up by OWSTimer. If your workflows don’t start immediately as expected you probably have to increase this throttle limit stsadm -o setproperty -pn workflow-eventdelivery-throttle -pv "20" (the default value is 15). By Code : SPWebApplication myWebApps = SPWebApplication.Lookup(new Uri(websiteUrl)); It looks like in some situations” a Failed On Start” may be triggered and can be solved by increasing this value. In some cases, I’ve noticed that increasing this value may solve a “Failed On Start” which indeed is very strange : when the W3P.exe is overrun, all actions (including event deliveries) are supposed the be enqueued (and thus executed later) but the OWSTIME.exe service. Windows SharePoint Services Workflow Infrastructure 936r Verbose RunWorkflow: No pending events - possibly targeted for async delivery
3.the transaction timeout value is too low can also generate a Failed on Start, specially when a lot of task (several hundreds) are created by the workflow which try to store the in a SQL Server transaction. the information you will find in the Sharepoint log file is soething like this Workflow Infrastructure 72fg High Error in persisting workflow: System.Transactions.TransactionAbortedException: The transaction has aborted. ---> System.TimeoutException: Transaction Timeout --- End of inner exception stack trace --- at System.Transactions.TransactionStateAborted.CreateAbortingClone(InternalTransaction tx). One possible workaround is to increase the timeout value in the web.config file. By default the value is set to 1 minute. You can increase the value to 5 minutes for instance :
<configuration> <system.transactions> <defaultSettings timeout="00:05:00"/> </system.transactions> </configuration>
4.repair of the .NET 3.0/.Net 3.5 Framework may be necessary. If you have SP1 for the .NET Framework installed, just go into the Control Panel/Add Remove Programs and click the Change button on Microsoft .NET Framework 3.0 SP1. If you don't have the Service Pack you can install it. The Change process takes about 2 minutes. 5.A more exotic one : Workflow Foundation performance counters not loaded Reload them again: Lodctr "c:\Windows\Microsoft.Net\Framework\v3.0\Windows Workflow Foundation\perfcounters.ini" August 19 Step by Step Tutorial.Creating workflows with Windows Sharepoint Services and MOSS 2007(Part 16/20). Assign a workflow task to a group of users
Introduction A very good practice in software is to work with roles instead of working with individuals. I’ve often noticed in the Sharepoint newsgroups that assigning a workflow task to a group seems to be a popular question. First off you cannot assign a Task to Active Directory groups, but only to Sharepoint groups !
Hands-on
Congratulations ! July 13 Sharepoint 2010 preview
Wow ! No more secret: if you want to know what Sharepoint 2010 looks like, check the following web site. June 17 my 5th webcast published My Fifth webcast on Sharepoint for Microsoft Belux has recently been published; in this video, I show how show you how to quickly create Sharepoint workflows with aspx association and
initiation forms.This demo is based on my Generic Framework uploaded to codeplex. May 28 Ineta speaker at the Macedonian Code CampI will be Ineta speaker at the Macedonian Code Camp in 2 weeks organized by the Macedonian.Net User Group. This is my third stay in Macedonia, and I really love it. More details here. I will present 2 intensive sessions on Sharepoint.
May 24 My generic Framework for aspx sharepoint workflow forms has been uploaded to CodeplexI’m currently working on a screencast for Microsoft Belux to better illustrate it. Stay tuned ! I shortly described it in a previous post. |
|
|