Posts

Web Appliction Restore Error in SharePoint

Image
נפלאות הם בעיות בMOSS . כאשר ניסיתי לשחזר Web Appliction דרך הCentral Admin ב (Central Admin -> Operations ->Restore from backup) זה מה שקיבלתי בתהליך האחרון (שלב 4) Object WebAppName failed in event OnRestore. For more information, see the error log located in the backup directory. SPUpdatedConcurrencyException: An update conflict has occurred, and you must re-try this action. The object SPWebApplication Name= WebAppName Parent= SPWebService is being updated by USER , in the OWSTIMER process, on machine MACHINENAME . View the tracing log for more information about the conflict. מה קורה פה? אי אפשר לעבור שחזור בלי בעיות. נפלאות הם הפתרונות בMOSS . כל מה שצריך לעשות זה: לבטל את התזמון של השחזור (ללחוץ delete בTime Job Definition). למחוק את הWeb Application החדש שנוצר. ואז לבטל את הservice'ים של הSharePoint... כן, כן, לבטל את הservice'ים ב Services on server. לבצע את השחזור שוב, ואז להחזיר את הservice'ים. תהנו, רועי קולבינגר

SharePoint Time Zone

Image
לפני כשבוע ישראל עברה לשעון חורף. שלא כמו שאר העולם, החוק בישראל להזזת השעון בנויי גם מהלוח שנה העברי וגם מהלוח שנה הגרגוריאני -האזרחי. פירסמתי ב פוסט בתחילת השנה את לוח השנה ובו הימים המדוקים להחלפת השעון לשנה זו. שעון קיץ (ישנים שעה פחות) עוברים בין חמישי לשישי ב2 לפנות בוקר אחרי ה1.04. זה בעצם היום השישי הראשון שמגיע אחרי הראשון באפריל. אבל גם בזה יש חריגים, אם פסח יוצא באותו זמן- כמו שקרה ב2009, אז מקדימים את העברת השעון שבוע קודם (ליום השישי בשבוע האחרון בחודש מרץ). שעון חורף (ישנים עוד שעה) עוברים בין מוצאי שבת לראשון גם ב2 לפנות בוקר. אבל הפעם זה קורה במוצאי השבת שבין ראש השנה ליום כיפור. הבעיה מתחילה ש- SharePoint לא מכיר טוב את הלוח שנה העברי. כדי לפתור בעיה זאת צריך לגשת ל C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\CONFIG לחפש את הקובץ TIMEZONE.XML, לחפש את הזמן המקומי (הID של זמן ישראל-ירושלים הוא 27). לא לשכוח לגבות את הקוסץ לפני כל שינויי- ליתר ביטחון. הקובץ XML פשוט להבנה כפי שמבטיחה מיקרוסופט . בישראל אנו 120 דקות מינוס...

Add Css to a SharePoint WebPart

איך מוספים CSS לWebPart? יש הרבה דרכים, אבל אני אדגים רק שתי דרכים נפוצות. הראשונה הוספת הCSS בPreRender. יתרון משמעותי, בCSS נטען אחרון. זאת אומרת שאין קבצי core.css שעולים על הstyle'ים שלי (כי כמו שאתם יודעים בCSS האחרון הוא החזק והקובע).         #region -- Cntr -- /// <summary>     /// Cntr for MyWebPart /// </summary> public MyWebPart() { this .PreRender += new EventHandler (WebPart_ClientCss_PreRender); } #endregion /// <summary> /// Add css files to the page /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void WebPart_ClientCss_PreRender( object sender, System. EventArgs e) { const string cCSSControlID = "MyStyle" ; // the resource path need absolute if (Page.Header.FindControl(cCSSControlID) != null ) return ; String location = this .ClassResourcePath + "/styles.css" ; // literal control css LiteralContr...

לוח שנה 2010-11 ה'תשע"א

הפעם לא הביא קוד ולגם סקריפט, אלה לוח שנה שבניתי ב- power-point. בלוח שנה הזה אני הוספתי שקפים של תמונות (וכל אחד שיוסיף את התמונות שלו), וזו יכולה להיות אחלה מתנת חג. לחצו כאן להורדת הקובץ אז כולם ביחד.. בראש השנה, בראש השנה פרחה שושנה אצלי בגינה ... שתהיה שנה טובה, רועי

Upload form in infopath errors

Image
 ישנו פתגם עממי שאומר "צרות באות בצרורות", זה בדיוק מה שקרה לי. כאשר ניסיתי לעלות קובץ infopath הוא נכשל. לא יחסתי לזה חשיבות וניסיתי שוב. הפעם נסיתי לבצע Verify לפני וגם ה Verify נכשל. קובץ הלוג הראה את הצרה הבאה: Microsoft.Office.InfoPath.Server.Converter.AspxDepthFirstWalkingVisitor.VisitChildControls(AspxControl control) at Microsoft.Office.InfoPath.Server.Converter.AspxDepthFirstWalkingVisitor.VisitDocument(AspxDocument document) at Microsoft.Office.InfoPath.Server.Converter.CssControlStateStylesVisitor.VisitDocument(AspxDocument document) at Microsoft.Office.InfoPath.Server.Converter.AspxDepthFirstWalkingVisitor.VisitControl(AspxControl control) at Microsoft.Office.InfoPath.Server.Converter.SolutionConverter.ConvertBrowserSpecificView(Solution solution, ConverterDocument converterDocument, AspxDocument aspxDocument) at Microsoft.Office.InfoPath.Server.Converter.SolutionConverter.ConvertView(Solution solution, ConverterDocument converterDocument) at Microsoft.Office...

Asp.Net TreeView on the client side events - JavaScript

Image
If you wanted to use System.Web.UI.WebControls.TreeView , Did you notice that it works only on server side? How can I add a css style to a node? How Ican I add JavaScript to the TreeView. It's a trick. You need to inherit System.Web.UI.WebControls.TreeView and System.Web.UI.WebControls.TreeNode and create two new classes. On the TreeNode you need to build 1. Constructors based on the base constructors. 2.   Build the new properties (line onclick, Style, Etc.) 3. Override two methods: RenderPreText and RenderPostText Here is a simple code for the new class TreeNode :     public class MyTreeNode : TreeNode     {         #region -- Constructors --     public MyTreeNode() : base () { } public MyTreeNode( string Text) : base (Text) { } public MyTreeNode( string Text, string Value) : base (Text, Value){ }       public MyTreeNode(System.Web.UI...

Hello World SharePoint 2010

Image
הפעם אדגים הדברים הבסיסים ב SharePoint 2010. אדגים איך יוצרים אתר בSharePoint 2010, איך עורכים דף ואיך מעדכנים פריטים. בעצם פוסט זה מראה בצורה שטחית מאוד את הצורה החדשה של ה SharePoint. יצירת אתר בSharePoint 2010 יצירת אתר בSharePoint 2010 דומה מאוד לMOSS 2007. כל מה שצריך זה הרשאות מתאימות (SharePoint System Administrator). דבר ראשון יש להיכנס ל SharePoint 2010 Central Administrationדרך : Start -> All Programs -> Microsoft SharePoint 2010 Products -> SharePoint 2010 Central Administration. לאחר מכן יפתח הדפדפן. יש ללחוץ בתפריט הצדדי Quick Launch על Application Management. בעמודה של Site Collections יש ללחוץ על Create site collections. יש לבחור את Web Appliction, שם, תיאור... בדיוק כמו בMOSS 2007. בשביל ההדגמה אני בחרתי בתבנית Team Site. לאחר היצירה נגיע לדף Top-Level Site Successfully Created, שם יהיה קישור לאתר שיצרנו כרגע. כאשר נלחץ עליו נגיע לדף wikiשנקרא Home.aspx. עריכת הדף הראשי נלחץ על Site Actions ואז על Edit Page. עכשיו, בשונה מMOSS 2007, הSharePoint 2010 עובד עם ...