jamii Archives: SharePoint

Jinsi troubleshoot makosa SharePoint siri.

Overview:

Debugging ni vigumu wakati kuendeleza utendaji desturi kwa Windows SharePoint Huduma 3.0 (WSS) au Microsoft Office SharePoint Server (Moss). The main culprit is that SharePoint normally surfaces very little diagnostic information on the web browser when an error occurs. This blog entry describes how to locate additional system-generated diagnostic information that can often provide that extra bit of detail that one needs in order to identify root causes. This can then lead to solving the problem.

Mimi na kutumika mbinu hii na mafanikio makubwa ya kutatua makosa vinginevyo siri.

Mbinu:

SharePoint anaokoa mpango mkubwa wa habari kwa logi uchunguzi katika faili logi katika 12 mzinga.

The "12 hive" is usually located at "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12". (Mimi nina uhakika kama inawezekana kwa 12 mzinga wa kuishi mahali popote pengine, kwa kweli).

Wazo ni ya Machapisho sasa logi faili, force the error and then quickly open the log file. These log files are characterized by:

  • Copious amounts of information. SharePoint generates a very large amount of diagnostic information and writes it to that log file very quickly. You need to be quick with the fingers to capture it.
  • Multiplicity. SharePoint does not write to a single log file but rather generates multiple log files in sequence.
  • Nakala na kuweka nicely katika MS Excel.

Njia favorite:

  1. Kufungua Explorer madirisha akizungumzia 12 mzinga magogo.
  2. Aina mtazamo kuonyesha kwa tarehe tarehe (hivi karibuni ya kwanza).
  3. Kuonyesha wengi sasa logi faili.
  4. Katika dirisha kivinjari, nguvu ya makosa kutokea.
  5. Haraka kufungua sasa logi faili na nakala ya yaliyomo yake na MS Excel.
  6. Kuruka hadi mwisho na kuchambua entries husika.

Nyingine Notes:

By default, logi uchunguzi iko katika 12 mzinga magogo saraka.

MS Best mazoea (Ace na Mike T. ya Microsoft) state that the log files should be saved to a separate hard drive. One does this via central admin. Your system administrator may have done this, katika kesi ambayo utazungumzia haja ya kutafuta faili logi huko badala ya default 12 mzinga eneo).

Kuingia hii anwani ya masuala kama vile:

  • SharePoint workflow imeshindwa kuanza kutokana na hitilafu ya ndani.
  • (zaidi kuongezwa baada ya muda)
  • Kuingia hii imekuwa inasaidia kupima makosa workflow (e.g. "The workflow failed to start due to an internal error").

Moss: Ufanisi kuanzishwa kwa Shirika

(this entry cross posted between http://paulgalvin.spaces.live.com/blog/ na http://blogs.conchango.com)

matangazo kwenye tovuti hii ni yangu mwenyewe na si lazima kuwakilisha nafasi Conchango ya, mikakati au maoni.

Overview:

Kuingia hii inaelezea baadhi ya taarifa za msingi juu ya kubwa (3,000 watumiaji) Microsoft Office SharePoint Server (Moss) rollout and what we did to get the project rolling in such a way that the client is happy and firmly down a path that ends with full adoption of the MOSS feature set. As of the writing of the entry, we are approximately 50% complete with the first phase of the project. As things progress, I’ll update this entry and/or write new entries.

In this specific case, the company had already installed SharePoint Portal Server 2003. The IT group installed the product in a sort of "let’s see if anyone cares" fashion. It was quickly adopted by many business users and became quite popular in the enterprise at large. As you can imagine, this was not the best rollout strategy (which the client readily admits) and when MOSS arrived on the scene, the client resolved to "do it right" and hired us to help them.

One of the central questions facing us when we started implementing this project was: How do we introduce MOSS to this client? Given that the client already had experience with SharePoint, we wondered — do we need to do "differential" training or do we start from the ground up? After working with key users, we determined that treating this as a green field project made more sense.

That decision gave a starting point but still left us with the major requirement of figuring out a good strategy for rolling MOSS out to the enterprise. MOSS is such a big animal … it includes content management, document management, kutafuta, security, audience targeting, project management, "fabulous forty" templates, workflow, business data connector, nk. Couple this with the fact that it’s a large organization that can truly make use of virtually every major MOSS feature and you have the makings of a great project with an enterprise reach and many good things happening.

We’re confronted with this issue time and time again … MOSS has an enterprise reach with its enterprise feature-set, yet even somewhat sophisticated clients have a hard time mentally absorbing those features, let alone incorporating an appreciable fraction of them into their daily routine.

I don’t have a magic solution to the problem. I instead address just the very first steps that we’ve taken with the client to lead them down the path to successful long-term adoption.

Scope:

As much as I wanted the team to craft a project plan that included such milestones as "PoepleSoft Integration via BDC Completed", "New Cross-Departmental Product Launch Workflow Complete" and "Executive Management KPI’s Accepted", I had to settle for something less. This is not to say that "less" is bad. Kwa kweli, the "less" that we decided for the initial rollout was miles ahead of where they were before we started. Katika kesi yetu, the "less" turned into:

  • Simple document management using document libraries, version control and content types.
  • Effective search based on content types and customized advance search (via managed properties, XSLT to produce pretty results, nk).

In addition to the above enterprise-wide features (meaning that they were to be rolled out to all departments and users), we added the following singleton in-scope mini-projects:

  • Proof of concept BDC integration.
  • Multi-step and multi-branch workflow process created via SPD.
  • Complex InfoPath form.
  • Surfacing KPI’s for some business process (probably HR talent acquisition in our case, though that may change).

The scope here is not 100% accurate but representative of our approach and sufficient for my purpose here, which is to explain what I consider to be an "effective" introduction of MOSS that will set the client firmly down the golden path to full MOSS adoption.

I won’t write much more about the singleton in this entry. I do want to point out that these are part of our over-arching strategy. The idea is to implement the core document management and search features to all users yet provide highly functional, high visible and highly representative examples of other core MOSS features which are simply beyond the ability of most users to absorb at this early stage. Hata hivyo, they will be "out there" and one hopes that other business units will know of or learn about them and want those features for themselves, leading to greater adoption. These singleton success stories also serve to provide our sales team "ammunition" for successfully winning second, third and n-phase projects.

What Did We Introduce and Why?

Having settled on document management and search as a baseline enterprise-wide requirement, we needed to start gathering details. As a practical matter, this revolved around understanding their documents and that ultimately mapped to understanding content types.

I’ve found it’s difficult to explain content types without visual aides. More technical folk can walk away from a discussion about content types when CT’s are described in database terms. "A CT is similar to a database table, it has columns and columns are defined in terms of data types, but CT data types include more than simple integer/date, but also "choice" and "lookup" and the like." We can talk about "extending" maudhui ya aina, much like one can inherit functionality from a base class in object oriented languages. However this is obviously not helpful for the transportation department admin person who has no technical background. Yaani, nearly everyone that matters in a MOSS rollout.

Using a white board is iffy. I’ve presented the idea of a content type and drawn brilliant (or so they seem) pictures of content types and what they do for you in terms of search and how they can be expanded, nk. Katika mwisho, it does feel like some light bulbs have turned on, but the resulting white board picture is a mess.

This led us to our current and so far most effective landing place: a MOSS sandbox site configured to show these features.

Using the sandbox site, we demonstrate:

  • Content types:
    • Creating a CT with multiple data types (Nakala, tarehe, choice, boolean, lookup, nk).
    • Extending a CT by creating a new CT based on a parent.
    • Searching for documents using CT metadata.
  • Kudhibiti maktaba:
    • Associating a single CT with a library.
    • What happens when we upload a document to that library?
    • Associating multiple CT’s with a doc library.
    • What happens when we upload a document to that library?
    • Filtering and sorting via column headings in a doc lib.
    • Document library views:
      • Sorting
      • Grouping
      • "Quick entry" (data sheet view)
      • "Untagged data" (to assist with migration to MOSS from other content sources; more on this below).

The Sandbox Site:

We designed our sandbox site to be a permanent feature in the development environment to be used for training purposes long after we finish the project and included several artifacts as described:

Aina maudhui:

We defined the following content types: Invoice, Purchase Order, Services Invoice.

We selected Invoice and Purchase order because they are more or less universally under
stood entities. Everyone in business understands that an invoice is a demand for payment to a customer for an amount issued on a certain tarehe to be paid as per some payment terms. This leads to a natural definition of a CT which we called "Training Invoice" (to distinguish it from any other kind of invoice). The purchase order is similarly easily defined. We also created a "Training Services Invoice" by creating a new CT based upon the "Training Invoice" CT and added just one column, "services rendered".

With the above, we can now demonstrate some key features of CT’s without getting bogged down trying to explain an abstract concept first; everyone already understands what we mean by "invoice" and "purchase order" and are instead able to focus on mechanics of the CT itself.

Desturi Lists:

CT with columns of type "lookup" point to a custom list or document library. We use this extensively and for the sandbox, we created one supporting custom list that contains customers. We picked customers because it’s an easy concept to understand and easy to demonstrate. The Invoice CT has a column, "customer" that is defined of type "lookup" that points at this list.

We created a similar custom list to manage "vendors" for the "Purchase Order" CT.

Kudhibiti maktaba:

We created two document libraries: "Invoices" and "Mixed Documents".

We configured the invoices document library to manage only documents of CT type "Invoice".

We configured the "Mixed Documents" library to manage all three CT’s.

Create several views that show sorting, filtering, data sheet and grouping.

Kutafuta:

We defined two new managed properties and mapped them to Invoice Number and Customer.

We created a new customized advance search site and modified it to enable users to search for "invoices" using those two mapped properties.

Modify the XSLT so that the invoice and customer number, when present, appear in an HTML table in a bright color. The objective here is to demonstrate that such formatting is possible.

Putting it all together:

We arrange for key users to participate in a demo.

We follow this simple script:

  1. Describe the meaning and purpose of a CT, using invoices and purchase orders as examples.
  2. Show the invoice CT definition while simultaneously assuring them that they don’t need to use those screens themselves, just pick up the concepts.
  3. Go to the invoices document library.
  4. Upload a document.
  5. Demonstrate that the customer drop-down is really sourced from a custom list.
  6. Add a new customer to the customer list and then update the recently uploaded invoice’s meta data with the newly created customer.
  7. Switch to the "mixed documents" library and upload a document. Explain how the system prompts for a document type.
  8. Go back to invoices document library and show how clicking on a column name changes sort order.
  9. Demonstrate column-level filtering.
  10. Show different views that demonstrate multi-level sorting, filtering and grouping.
  11. Show the data sheet view.
  12. Explain the purpose of a "untagged documents" mtazamo.
  13. Switch to the customized advanced search.
  14. By now, the recently uploaded document should have been crawled and indexed, so perform a search that demonstrates ability to locate that invoice via the mapped property.
  15. We demonstrate the difference between searching via mapped properties vs. just a text search.

Katika hatua hii, we are more or less done with the demo. It seems to take about 30 kwa 45 dakika, depending on how many questions people ask.

We then send them back to their desks with "homework". This consists of a simple excel spreadsheet where we ask them to define for us what they think they need in terms of CT’s, both at a high level (just name and business purpose) as well as columns and type of data they would store in the column. We don’t ask them to define column data types in MOSS terms, but business terms.

In Summary:

We’ve created a sandbox environment that we can use to demonstrate some core MOSS features whose appeal are enterprise-wide.

We have modeled easily understood and common business entities so that users can focus on MOSS and not get bogged down on the entities / examples themselves.

Business users walk away from theses sessions with "homework" in the form of excel documents which they are now competent to fill out and use for designing their own first-cut content types.

Hatimaye, as we perform demos over time, the client’s team members themselves become more able to carry forward, do the demo’s themselves and generally free up the rest of us up to work on more complex issues, such as global taxonomy, complex workflows, BDC and the like.

Moss: Kazi Mfano - Desturi Takwimu Aina ya

Biashara Igizo:

Biashara kote utekelezaji wa MOSS kwa kampuni ya viwanda na 30+ maeneo na dazeni chache idara ya ushirika.

Biashara Lengo:

Licha ya wingi wa vikundi vya biashara (idara, maeneo, nk), data fulani lazima iimarishwe katika ngazi ya kimataifa. Kwa mfano, mamlaka bwana orodha ya maeneo yote ya kimwili ya kampuni (e.g. viwanda vya, ghala maeneo, mauzo ya ofisi) lazima iimarishwe katika eneo la kati.

Tatizo kiufundi:

Jamii biashara ilikuwa kutekelezwa kwa kutumia makusanyo tovuti mbalimbali. Sisi ingekuwa walipenda kuunda orodha ya mamlaka ya maeneo ya kimwili katika orodha desturi WSS. Kisha, wakati sisi alihitaji kuwa na safu katika aina maudhui (au safu aliongeza kwa orodha au doc ​​maktaba) kwamba zilizomo ushirika maeneo, we would create a column using the "lookup" datatype na uhakika na orodha hii bwana.

Kwa bahati mbaya, lookup datatypes must access a source list "locally" maana ya kwamba orodha yetu mamlaka haiwezi span makusanyo ya tovuti.

Kiufundi Solution:

Kutekeleza mpya data desturi ya aina kutekelezwa kwa kuzingatia SPField na kuwakilishwa kama DropDownList katika UI ambaye ListItems populate kutoka orodha WSS bwana.

Sisi aliumba mpya tovuti ukusanyaji kuitwa "http://localhost/EnterpriseData". Kuna, we created a custom list named "Corporate Locations". This list just uses the standard "Title" shamba na vyenye orodha ya maeneo halisi ya ushirika.

Moja ifuatavyo hatua kadhaa za kipekee ya kujenga data desturi aina katika WSS. Wao ni:

  1. Kufafanua darasa ambayo hurithi kutoka SPField (mtu anaweza kurithi kutoka maeneo mengine kama inavyotakiwa).

Hapa ni kwamba kanuni kwa ajili ya:

umma darasani XYZZYCorporateLocationField : SPFieldText
{
umma XYZZYCorporateLocationField
(SPFieldCollection mashamba ya, string typeName, string displayName)
: msingi(mashamba ya, typeName, displayName) { }

umma XYZZYCorporateLocationField
(SPFieldCollection mashamba ya, string displayName)
: msingi(mashamba ya, displayName) { }

umma override BaseFieldControl FieldRenderingControl
{
kupata
{
BaseFieldControl control = mpya XYZZYCorporateLocationFieldControl();
control.FieldName = hii.InternalName;
kurudi control;
} //kupata
} // fieldrenderingcontrol

umma override string GetValidatedString(kitu thamani)
{
kama (hii.Required || value.ToString().Sawa na(Kamba.Tupu))
{
kutupa mpya SPFieldValidationException ("Department is not assigned.");
}
kurudi msingi.GetValidatedString(thamani);
} // getvalidatedstring

} // XYZZYCorporateLocation

  1. Kufafanua darasa lingine kwamba kurithi kutoka kudhibiti shamba msingi, kama katika:

umma darasani XYZZYCorporateLocationFieldControl : BaseFieldControl
{
kulindwa DropDownList XYZZYCorporateLocationSelector;

kulindwa override string DefaultTemplateName
{
kupata
{
kurudi "XYZZYCorporateLocationFieldControl";
}
} // DefaultTemplateName

umma override kitu Thamani
{
kupata
{
EnsureChildControls();
kurudi hii.XYZZYCorporateLocationSelector.SelectedValue;
} // kupata
kuweka
{
EnsureChildControls();
hii.XYZZYCorporateLocationSelector.SelectedValue = (string)hii.ItemFieldValue;
} // kuweka
} // override object Value

kulindwa override utupu CreateChildControls()
{

kama (hii.Field == null || hii.ControlMode == SPControlMode.Kuonyesha)
kurudi;

msingi.CreateChildControls();

hii.XYZZYCorporateLocationSelector =
(DropDownList)TemplateContainer.FindControl("XYZZYCorporateLocationSelector");

kama (hii.XYZZYCorporateLocationSelector == null)
kutupa mpya Ubaguzi("ERROR: Cannot load .ASCX file!");

kama (!hii.Page.IsPostBack)
{

kutumia (SPSite site = mpya SPSite("http://localhost / enterprisedata"))
{
kutumia (SPWeb web = site.OpenWeb())
{

SPList currentList = web.Lists["Corporate Locations"];

foreach (SPItem XYZZYCorporateLocation katika currentList.Items)
{
kama (XYZZYCorporateLocation["Title"] == null) kuendelea;

string theTitle;
theTitle = XYZZYCorporateLocation["Title"].ToString();

hii.XYZZYCorporateLocationSelector.Items.Add
(mpya ListItem(theTitle, theTitle));

} // foreach

} // using spweb web = site.openweb()
} // using spsite site = new spsite("http://localhost/enterprisedata")

} // if not a postback

} // CreateChildControls

} // XYZZYCorporateLocationFieldControl

kanuni juu ya kimsingi kutekeleza mantiki kwa populating DropDownList na maadili kutoka orodha WSS desturi iko katika http://localhost/enterprisedata and named "Corporate Departments".

Mimi inavyoelezwa madarasa wote katika faili moja. Cs, ulioandaliwa yake na kuiweka katika GAC (nguvu required, bila shaka).

  1. Kutekeleza template kudhibiti (.ascx) kama inavyoonekana:

<%@ Kudhibiti Lugha="C#" Kurithi="Microsoft.SharePoint.Portal.ServerAdmin.CreateSiteCollectionPanel1,Microsoft.SharePoint.Portal,Toleo = 12.0.0.0, Utamaduni = upande wowote,PublicKeyToken = 71e9bce111e9429c" compilationMode="Always" %>
<%
@ Kujiandikisha Tagprefix="wssawc" Eneo la majina="Microsoft.SharePoint.WebControls" Bunge="Microsoft.SharePoint, Toleo = 12.0.0.0, Utamaduni = neutral, PublicKeyToken = 71e9bce111e9429c" %> <%@ Kujiandikisha Tagprefix="SharePoint" Eneo la majina="Microsoft.SharePoint.WebControls" Bunge="Microsoft.SharePoint, Toleo = 12.0.0.0, Utamaduni = neutral, PublicKeyToken = 71e9bce111e9429c" %>
<SharePoint:RenderingTemplate ID="XYZZYCorporateLocationFieldControl" runat="server">
<Kigezo>
<ASP:DropDownList ID="XYZZYCorporateLocationSelector" runat="server" />
</Kigezo>
</
SharePoint:RenderingTemplate>

hapo juu ni kuokolewa katika c:\mpango files kawaida files Microsoft pamoja mtandao kompyuta upanuzi 12 controltemplates.

  1. Hatimaye, sisi kujenga faili XML kuokoa katika saraka ..... 12 XML. Hii ni CAML kwamba amefafanua yetu data desturi aina na kwa mfano wangu, inaonekana kama hii:

<?xml toleo="1.0" encoding="UTF-8" ?>
<
FieldTypes>
<
FieldType>
<
Shamba Jina="TypeName">CorporateLocations</Shamba>
<
Shamba Jina="ParentType">Nakala</Shamba>
<
Shamba Jina="TypeDisplayName">Corporate Locations</Shamba>
<
Shamba Jina="TypeShortDescription">All XYZZY Corporate locations including manufacturing or other facilities.</Shamba>
<
Shamba Jina="UserCreatable">KWELI</Shamba>
<
Shamba Jina="ShowInListCreate">KWELI</Shamba>
<
Shamba Jina="ShowInDocumentLibraryCreate">KWELI</Shamba>
<
Shamba Jina="ShowInSurveyCreate">KWELI</Shamba>
<
Shamba Jina="ShowInColumnTemplateCreate">KWELI</Shamba>
<
Shamba Jina="FieldTypeClass">Conchango.XYZZYCorporateLocationField, XYZZYCorporateLocationField, Version = 1.0.0.0, Utamaduni = neutral, PublicKeyToken=b0b19e85410990c4</Shamba>
<
RenderPattern Jina="DisplayPattern">
<
Kubadili>
<
Expr>
<
Safu />
</
Expr>

<Uchunguzi Thamani=""/>

<Default>
<
HTML>
<![CDATA[
<span style="color:Red"><b>]]>
</
HTML>

<
Safu SubColumnNumber="0" HTMLEncode="KWELI"/>

<HTML><![CDATA[</b></span>]]></HTML>

</
Default>
</
Kubadili>

</
RenderPattern>
</
FieldType>
</
FieldTypes>
This XML file adds the custom data type to the WSS "library" na mechi yake juu ya mkutano GAC'd.

Baada ya kuhamia hizi bits wote katika mahali, iisreset kwenye server na ni lazima kila kuanza kufanya kazi vizuri.

Moss: Uppdatering orodha desturi

Kuna mifano mingi nzuri ya uppdatering orodha ya desturi kupitia SDK. Hapa ni jingine.

Biashara tatizo: Fomu InfoPath umebuniwa kwamba inawezesha watumiaji kuingia Maombi ya kununua online. PO shurutisho idadi lazima jadi mlolongo makao integer maadili na mahesabu moja kwa moja.

Business Solution: Kujenga desturi MOSS orodha zenye safu mbili: "ControlField" and "ControlValue". safu ya thamani ina ijayo kununua Shurutisho ya simu. Note that the generic "control" kumtaja mkataba hutoa kwa ajili ya mashamba ya baadaye ya kudhibiti kwamba inaweza kutumika kama inahitajika.

Kiufundi Solution: Kujenga huduma ya mtandao kupatikana kwa mteja InfoPath. huduma ya mtandao anarudi nyuma ijayo kununua Shurutisho simu updates na thamani ya orodha.

Yaliyojitokeza:

  • Wakati kuongeza huduma hii ya mtandao kama chanzo data kwa ajili ya InfoPath, Nimeona ni muhimu kubadilisha kwa UDC na kuhifadhi katika maktaba uhusiano data.
  • Mimi pia kupatikana ni muhimu ili kuwawezesha msalaba uwanja scripting kupitia huduma ya kati ya utawala // maombi ya usimamizi // fomu server Configuration.
  • mara ya kwanza fomu alijaribu kupata huduma ya mtandao, inachukua muda na juu ya tukio, itakuwa muda nje. Mimi fiddled na mazingira katika fomu muundo wa kompyuta kupanua mazingira ya umeisha na kwamba walionekana kusaidia.

kanuni:

kutumia Mfumo;
kutumia System.Web;
kutumia System.Web.Services;
kutumia System.Web.Services.Protocols;
kutumia Microsoft.SharePoint;
kutumia System.Configuration;

[Webservice(Namespace = "http://www.conchango.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
umma darasani PoService : System.Web.Services.Webservice
{
umma PoService () {

//Uncomment the following line if using designed components
//InitializeComponent();
}

/// <muhtasari>
/// Obtain the next PO number from the sharepoint po number control list.
/// Increment the PO number in that list.
/// </muhtasari>
/// <anarudi></anarudi>
[WebMethod]
umma string GetNextPoNumber()
{
string SpPoControlSiteName; // Name of the actual MOSS site that hosts the PO Control list.
string SpPoControlListName; // Name of the actual MOSS list containing the Po control.

SpPoControlSiteName = ConfigurationSettings.AppSettings["PoControlListHostingSite"].ToString();
SpPoControlListName = ConfigurationSettings.AppSettings["PoControlList"].ToString();

string nextPoReqNumber = "xyzzy";

kutumia (SPSite site = mpya SPSite(SpPoControlSiteName))
{
kutumia (SPWeb web = site.OpenWeb())
{

SPList currentList = web.Lists[SpPoControlListName];

foreach (SPItem controlItem katika currentList.Items)
{

kama (((string)controlItem["ControlField"]).Sawa na("NextPoNumber"))
{
nextPoReqNumber = (string)controlItem["ControlValue"];

int int_nextPoReqNumber;
int_nextPoReqNumber = Kubadilisha.ToInt32(nextPoReqNumber);

int_nextPoReqNumber ;

controlItem["ControlValue"] = int_nextPoReqNumber;
controlItem.Update();
}

} // Locating, reading and updating the PO number in the list.


} // using spweb web = site.openweb()
} // using spsite site = new spsite("http://localhost/mizuho")

kurudi nextPoReqNumber;

}
}