Cartlanna míosúla: Meitheamh 2008

Meitheamh 2008 SUGDC Comhdháil — Sin Wrap

D'fhreastail mé ar mo chéad uair riamh SharePoint comhdháil this past weekend and it was a blast.

Tráthnóna Déardaoin, Thiomáin mé síos go dtí Achadh an Iúir, faoi ​​threoir ag mo cheannach nua- $50 GPS appliance plug-in thing to my phone. The device was flawless. After the five hour drive, Bhí mé an fuinneamh a dhéanamh a reáchtáil deas ar an muileann tread agus ansin, fiú níos mó ionadh, had the energy to head to the lobby for an advertised speaker’s cocktail hour. Conference n00b that I am, it turned out that the cocktail hour was really a ruse to get speakers to show up and help stuff papers and swag into shoulder bags for conference attendees 🙂

Had a hard time sleeping because I was speaking first thing Friday AM. Nervousness, a nagging feeling that I needed to add a slide to my presentation and a very disturbing cat show on Animal Planet kept me up late. Since I went to sleep late, I naturally got up early. I did add a fairly detailed technical architecture slide. It was well worth the effort because the 25 miontuairiscí Q&A would have been very awkward without it. I was lucky to get the first slot in the technical track. Sahil Malik was originally going to speak Friday AM and I was going to speak Saturday but he needed to swap times. This allowed me to do my presentation and then sit back and enjoy everything going forward Friday and Saturday.

The presentation went OK. I definitely have room to improve it. I spoke about how we can access and use web services from a SharePoint Designer workflow using a custom action. Le himeacht ama, Beidh mé ag cheangal an fhaisnéis seo isteach i mo sraith thar ag EUSP.com for End Users trying to get the most use out of that tool. I blew through my slides and demo in 35 nóiméad, to my dismay at the time. Luckily, Q&A bhí bríomhar, no doubt helped by the fact that it was early morning before lunch. Q&A is my favorite part of any presentation.

Bhí ábhar suimiúil go leor agus tá súil agam go blag mar gheall orthu níos mine an tseachtain seo (ama lena gceadaítear, mar i gcónaí). A fellow from CMS Watch provided a highly critical yet very hopeful review of SharePoint’s position in the market. A different discussion focused on the paucity of SharePoint resources and the difficulty that recruiters have finding good talent that is also "affordable" in this very tight market. The CMS Watch guy referred to the SharePoint human resources pool as being like a "guild." I’m mainly familiar with that term in MMORPG terms and it gave me a little thrill, to be honest 🙂

The highlight of the conference was just meeting and catching up with people I’ve "known" online for a while. The best was sitting at the bar with Becky Isserman (MossLover) le haghaidh 3 nó 4 uair an chloig (agus go, ól tar éis a bhí críochnaithe agam ar feadh na hoíche). I don’t often get to talk about FarscapeBabylon 5 le Kansas City cónaitheoirí.

Bob Fox a bhí ann agus mar is gnách, Is whirlwind de intros, chats and just plain frenetic energy. He invited me to Saturday breakfast with Sahil Malik and that was great.

Dé Sathairn (lá 2), Mike Lotter dragged féin leis an gcomhdháil chun labhairt faoi InfoPath agus ansin chuaigh sé isteach Becky ag deireadh an lae a dhéanamh saghas ginearálta Q&A seisiún ar feadh thart ar 30 go 45 nóiméad dírithe go príomha ar InfoPath (Mike) and AJAX (Becky). I wish Becky had been able to go through her full/formal presentation but I’m sure I’ll get a chance to see that one of these days. I have a feeling she’ll be "hitting the circuit" ag dul ar aghaidh.

I could go on and on. Two last points — the financial purpose of the conference was to raise money for the Children’s Miracle Network and it raised $5,000. That was awesome. Mar fhocal scoir, Ba mhaith liom buíochas a ghabháil go poiblí Gary Blatt, Gary Vaughn and Bob Fox for alerting me to and allowing me to speak at the conference. Ar ndóigh,, the two Gary’s had a team of people supporting and organizing and all of you were awesome. I had high expectations before I went and it was better than I had hoped for.

Keep on the alert for the next conference scheduled for November 7th and 8th. Aside from some great content, Tá sé iontach chun freastal ar suas leo siúd go léir daoine ar líne atá tú a dtugtar trí blogs, twitter, fóraim, etc.

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati:

FBA agus SQL Server: A Scéal grá

My colleague has been working on a web part in an FBA environment. Among other things, the web part pulls some data from SQL server. The grand plan for this project dictates that a DBA configures data level security in SQL (i gcomparáid le neadú le haitheantas úsáideora i ceist SQL nó roinnt cur chuige eile).

The problem is that SQL server doesn’t know anything about our FBA environment so it can’t trust us. We solved this problem by, ar easpa focal níos fearr, manually impersonating an AD user so that we could connect to SQL such that SQL data level security works.

Cé go bhfuil FBA gné ASP.NET, táimid ag daoine Nation SharePoint a mhúin an innill chuardaigh éagsúla má tá tú ag ceistiú do FBA, you must mean you want know how to configure FBA in SharePoint. I failed to find find any information on how to enable an FBA oriented ASP.NET application to communicate with SQL in the way we needed.

Le linn an taighde seo, muid ag léamh-airteagal seo: ASP.NET phearsanú

Níos mó taighde thug dúinn a t-airteagal seo codproject: http://www.codeproject.com/KB/cs/cpimpersonation1.aspx

A chabhraigh linn an scríobh ár gcód, which I’ve included below. It’s not the most elegant stuff, ach d'oibrigh sé. I hope you find it helpful.

Seo an cód a d'oibrigh le linn:

chosaint neamhní btnSearchCarrier_Click(seoltóir réad, EventArgs e)
 {
 iarracht
 {
 ImpersonateUser AI = nua ImpersonateUser();
 // GACH: Dintiúir Ionadaigh
 ("Ainm Fearainn", "Ainm Úsáideora", "Pasfhocal");

//
 CÓD
//

 iU.Undo();
 }
 ghabháil (Ex Eisceacht)
 {

 }
 }

// Ag baint úsáide as phearsanú rang mar a luaitear anseo thíos.

poiblí ranga ImpersonateUser
 {
 [DllImport("Advapi32.dll", SetLastError = fíor)]
 poiblí statach seachtracha bool LogonUser(
 LpszUsername Teaghrán,
 Teaghrán lpszDomain,
 Teaghrán lpszPassword,
 dwLogonType slánuimhir,
 slánuimhir dwLogonProvider,
 tag IntPtr phToken);

 [DllImport("Kernel32.dll", Tacar carachtar = CharSet.Auto)]
 príobháideach seachtracha statach bool CloseHandle(IntPtr láimhseáil);

 príobháideach statach IntPtr tokenHandle = nua IntPtr(0);
 príobháideach statach WindowsImpersonationContext impersonatedUser;

 // Má tá tú ag ionchorprú an gcód seo isteach i dll?, a bheith cinnte a éileamh go bhfuil sé
 // Ritheann le FullTrust.
 [PermissionSetAttribute(SecurityAction.Demand, Ainmnigh = "FullTrust")]
 poiblí neamhní aithris(teaghrán domainName, ainm úsáideora teaghrán, Focal faire teaghrán)
 {
 iarracht
 {

 // Bain úsáid as an fheidhm LogonUser unmanaged a fháil ar an chomhartha úsáideora do
 // an t-úsáideoir a shonraítear, bhfearann, agus do phasfhocal a.
 CONST LOGON32_PROVIDER_DEFAULT = o 0;

 // Dul thar an paraiméadar is cúis LogonUser a chruthú chomhartha bunscoile.
 CONST slánuimhir LOGON32_LOGON_INTERACTIVE = 2;
 tokenHandle = IntPtr.Zero;

 // Céim -1 Glaoigh LogonUser chun a láimhseáil a fháil ar chomhartha rochtain.
 bool = returnValue LogonUser(
 ainm úsáideora,
 Ainm Fearainn,
 Focal faire,
 LOGON32_LOGON_INTERACTIVE,
 LOGON32_PROVIDER_DEFAULT,
 tag tokenHandle); // tokenHandle - nua slándála chomhartha

 más rud é (bréagach == returnValue)
 {
 slánuimhir RET = Marshal.GetLastWin32Error();
 Console.WriteLine("LogonUser glaoch theip ar a bhfuil cód earráid : " +
 ceart);
 caith System.ComponentModel nua.Win32Exception(ceart);
 }

 // Céim - 2
 WindowsIdentity newId = nua WindowsIdentity(tokenHandle);
 // Céim -3
 impersonatedUser = newId.Impersonate();

 }
 ghabháil (Ex Eisceacht)
 {
 Console.WriteLine("Tharla Eisceacht. " + ex.Message);
 }
 }


 /// <achoimre>
 /// Stadanna pearsanú
 /// </achoimre>
 poiblí neamhní Undo()
 {
 impersonatedUser.Undo();
 // Saor in aisce na comharthaí.
 más rud é (tokenHandle != IntPtr.Zero)
 CloseHandle(tokenHandle);
 }
 }

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati:

Ag cur leis an Seanchas: SSRS Insíonn Mise “rsAccessDenied”, Ach … I DO really Have Rochtana

Tá cúpla seachtain ar ais, I was working with my developer colleague on a project involving SQL Server Reporting Services plug-in for MOSS. He was developing a web part that provides a fancy front-end to the report proper (an ghné is mó a bheith ina lookup cliste ar paraiméadar le roinnt mílte luachanna inchuardaithe taobh thiar dó).

Bhí sé seo ag obair mhór ar an timpeallacht a fhorbairt ach sa tástáil inghlacthachta úsáideora (UAT) timpeallacht, it wouldn’t work. Firing up the debugger, ba mhaith linn a fheiceáil na sonraí eisceacht mar seo:

Na ceadanna a deonaíodh do úsáideora 'UAT_domain mosssvc' atá leordhóthanach chun críche an oibríocht seo.(rsAccessDenied).

Má dhéanann tú cuardach beo ar an earráid thuas, you find it’s quite common. Scarily common. The worst kind of common because it has many different potential root causes and everyone’s suggested solution "feels" ceart. We probably tried them all.

I ár gcás, the problem was that we had done a backup/restore of DEV to UAT. Somewhere in the data, something was still referring to "DEV_domain" (instead of the updated "UAT_Domain"). We created a new site, Chuir an chuid gréasáin agus a réiteach ar ár fhadhb.

Súil go dtosnódh beidh sé seo shábháil duine éigin uair an chloig nó dhó síos ar an líne.

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati:

Fix Thapa: Teacht ar Láithreáin SharePoint Throws [HttpException (0x80004005): Iarratas thar am.]

One of my developer colleagues was working on a project this week and ran into a timeout problem while working on building some crazy web part. His web part was fine, ach "go tobann" suíomh neamhghaolmhara bhí an-mhall agus go minic thar am leis an earráid:

[HttpException (0x80004005): Iarratas thar am.]

I logged in and saw that several other sites were just fine. I suspected that there were some hidden web parts on the page and using an trusty ?ábhar = 1 teicníc debug, Raibh mé i ndáiríre a fháil 11 codanna gréasáin ar an leathanach, only two of which were visible. Even better (ó let's-dóchas-I-aimsiú-rud éigin-ghránna-anseo-go-I-is féidir-a shocrú thaobh), three of those closed web parts had a name of "Error".

Scriosadh mé na codanna gréasáin (a féin thóg am ionadh fada) and that solved the problem. For today 🙂

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati:

Tá oiliúint i-aicme FAST scoth

Tá mé ag tosú lá 4 d'oiliúint comhpháirtí FAST ar gceannas Larry Kaye anseo i Needham, MA.

Tá an seisiún 5-lá a briste síos ina n-aicmí (3 agus 2 lá faoi seach) entitled "FAST ESP: Forbairt Saincheaptha Iarratais Cuardaigh Alliance Comhpháirtithe mé" and "FAST ESP: Developing Custom Search Applications for Alliance Partners II".

This is a real boot camp type class. The material is deep (very, very deep). The instructor (Larry) clearly knows his stuff. I highly recommend this training if you considering it.

</deireadh>

SharePoint agus FAST — Cups na Reese Im Peanut na Apps Fiontar?

Tá mé críochnaithe suas lá 2 oiliúna FAST i Mostly Needham, MA, agus tá mé ag bursting le smaointe (a dhéanamh go léir na ranganna oiliúna maith dom). One particular aspect of FAST has me thinking and I wanted to write it down while it was still fresh and normal day-to-day "stuff" bhrúigh sé amach as mo cheann.

Táimid SharePoint SSU 3.0 / Aghaidh a thabhairt ar chur chun feidhme go MOSS ar fadhb diana le haon tionscadal SharePoint réasún-iarrachtaí: Conas is féidir linn a fháil go léir na sonraí untagged luchtú isteach SharePoint den sórt sin go n-oireann sé go léir laistigh dár ailtireacht faisnéise breá deartha?

Is minic go leor, nach bhfuil sé seo den sórt sin ina fhadhb crua mar gheall ar raon muid féin ar an mbóthar: "We don’t care about anything more than 3 months old." "We’ll handle all that old stuff with keyword search and going-forward we’ll do it the RIGHT way…" Etc.

Ach, what happens if we can’t scope ourselves out of trouble and we’re looking at 10’s of thousands or 100’s of thousands (nó fiú na milliúin) de docs — an luchtú agus Is é a chlibeáil ar ár mian a devout?

D'fhéadfadh a bheith FAST an freagra.

Áirítear próiseas cuardaigh FAST ar a lán de na codanna ag gluaiseacht ach tá sé ar cheann dearcadh simplithe seo:

  • Breathnaíonn A próiseas crawler le haghaidh ábhar.
  • Fhaigheann sé ábhar agus tugann sé amach le próiseas bróicéir a bhainistíonn le linn na próiseálaithe doiciméid.
  • Caoimhín próiseas Bróicéir sé amach ar cheann de na próiseálaithe an doiciméad.
  • Anailís ar an próiseálaí doiciméad an doiciméad agus trí phróiseas píblíne, anailís ar an bejeezus as an doiciméad agus tugann sé amach le próiseas cineál tógálaí innéacs.

Ar an FAST starship, we have a lot of control over the document processing pipeline. We can mix and match about 100 comhpháirteanna píblíne agus, is suimiúil, we can write our own components. Like I say, FAST is analyzing documents every which way but Sunday and it compiles a lot of useful information about those documents. Those crazy FAST people are clearly insane and obsessive about document analysis because they have tools and/or strategies to REALLY categorize documents.

Mar sin, … ag baint úsáide as FAST i gcomhar lenár chomhdhéanann í píblíne saincheaptha féin, we can grab all that context information from FAST and feed it back to MOSS. It might go something like this:

  • Tá Doiciméad chothú i FAST ó CAONAIGH.
  • Gnáth parsáil doiciméad dÚsachtach-obsessive FAST agus a tharlaíonn catagóiriú.
  • Titeann ár chomhdhéanann í píblíne saincheaptha féin a roinnt na faisnéise sin chomhthéacs thalamh go dtí bunachar sonraí.
  • Léann próiseas ar ár dhearadh féin an t-eolas comhthéacs, Déanann roinnt cinntí maidir le conas chun an doiciméad sin MOSS oiriúnach laistigh dár IA agus marcanna sé ag baint úsáide as seirbhís gréasáin agus an tsamhail réad.

Ar ndóigh,, Is féidir aon phróiseas uathoibrithe den sórt sin a bheith foirfe, ach a bhuíochas leis an obsessive (agus daoine FAST b'fhéidir dÚsachtach-ach-i-a-maith-bhealach), Is féidir linn a bheith ag troid fíor lámhaigh i bpróiseas ualach mais fíor-éifeachtach go ndéanann níos mó ná a líonadh ach suas le bunachar sonraí SQL le bunch de dhoiciméid éigean-chuardach.

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati: , ,

Foghlaim Maidir Úsáideoirí Deiridh Ag www.EndUserSharePoint.com

Mark Miller thar ag http://www.endusersharepoint.com has built, i mo thaithí, the best end-user focused SharePoint site in the ‘sphere. I mí anuas, he has enlisted some of the premier end-user focused bloggers around to contribute to the "front page" ar bhonn rialta, including but not limited to Paul Culmsee, Chris Thapa, agus Dessie Lunsford. He has others lined up and ready to contribute as their schedules allow.

I jumped on the chance to participate and my inaugural post is here. I’m writing a series on how to use SharePoint Designer to create first-class business workflow solutions. In keeping with the EUSP.com’s focus, those articles will always keep the End User front and center.

I personally tend to divide the SharePoint world into three broad groups: SharePoint consultants, full-time SharePoint staff developers and end users. When I write, I often ask myself, which of these groups might be interested in the subject? Most often, I end up writing for the first two (technical) groups, mainly because I’m a consultant myself; it’s always easier and more authentic to write about those things with which you’re most familiar on a personal level.

As I’ve noted before, the end user community is far, far larger than the technical community. EUSP.com is top-notch and I heartily recommend it to all three groups. The site’s laser focus is obviously valuable to end users. Mar sin féin, we developers and consultants can only be better at our profession if we can understand and effectively respond to the needs of the end users we serve. I know I need all the help I can get 🙂 Seiceáil sé amach.

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati: ,

Invoking Seirbhísí SSRS Gréasáin Ó SSU / CAONAIGH i Comhshaoil ​​FBA

Is gá dúinn a agairt an CreateSubscription "" method on an SSRS web service that is hosted in an FBA managed MOSS environment from a custom web part. We kept getting variations of:

  • 401: Nach n-údaraítear
  • Cuspóir athraíodh a ionad

An réad "ar athraíodh a ionad" teachtaireacht a bhí an chuid is mó suimiúil toisc go raibh sé ag rá go bhfuil an rud "" (ár seirbhís SSRS) Bhí "ar athraíodh a ionad" to login.aspx. This clearly meant we had some kind of authentication problem.

Thuig mé sa deireadh go raibh mé bookmarked ar iontráil bhlag by Robert Garret that described how to invoke a general purpose WSS/MOSS web service living inside an FBA environment. Note that I can’t link directly to the article (mar ar 06/09/08) because it wants to authenticate. The link I provide brings you to an "all posts" view and you can locate the specific article by searching for "Accessing MOSS Web Services using Forms Based Authentication".

Seo an cód a d'oibrigh le linn:

ReportingService2006 rs = náid; 
// Fhíordheimhniú Fíordheimhniú údarás = nua Fíordheimhniú(); 
auth.Url = "http://URL / _vti_bin / Authentication.asmx";
auth.CookieContainer =
nua CookieContainer();
LoginResult toradh = auth.Login("userid", "password");
más rud é (result.ErrorCode == LoginErrorCode.NoError) 
{
// Uimh earráid, mar sin a fháil ar an fianáin.
Fianáin CookieCollection = auth.CookieContainer.GetCookies(nua URI(auth.Url));
AuthCookie Cookie = fianáin[result.CookieName];
rs =
nua ReportingService2006();
rs.Url =
"http://server/_vti_bin/ReportServer/ReportService2006.asmx";
rs.CookieContainer =
nua CookieContainer();
rs.CookieContainer.Add(authCookie);
}
iarracht
{
  rs.CreateSubscription(tuarascáil, extSettings, desc, eventType, matchData, parameters1);
}
ghabháil (Ex Eisceacht)
{
  Console.WriteLine(ex.Message.ToString());
}

Mé a léirmhíniú rudaí a bheith ag obair mar seo:

  • Riachtanais ár gcuid gréasáin a dhiailiú suas an tseirbhís fíordheimhnithe agus a rá, "Hey, Tony, tá sé dom!".
  • Freagraí seirbhíse Fíordheimhniú ag rá, "Hey, I know you. How are the kids? Here’s a token."
  • Iarraimid suas an tseirbhís SSRS agus a rá, "Tony sent me, anseo tá an chomhartha."

</deireadh>

Liostáil le mo bhlag.

An bhfuil tú Léirithe Do Anailís Cuardaigh Míosúil?

Tá sé ina dhea-chleachtas, is dócha fiú Dea-Chleachtais, chun athbhreithniú a thuairiscíonn do chuardach uair sa mhí agus lorg deiseanna a chur ar gheallta is fearr, tune your thesaurus and maybe even uncover some business intelligence that is otherwise hidden to management.

It’s already the 3rd of the month. Time’s awastin’ 🙂

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati:

Sitter Fál Cuardaigh ilghnéitheach No More

Bhí mé cúis aige sa lá atá inniu a imirt faoi leis an CodePlex cuardaigh ilghnéitheach project today.

Baineann sé le bheith thart ar feadh tamaill, ach hesitated mé a íoslódáil agus a úsáid le haghaidh na cúiseanna is gnách (easpa den chuid is mó ama), plus outright fear 🙂

Má tá tú ag lorg chun feabhas a chur ar do chuardach agus roghanna nua a iniúchadh, download it and install it when you have an hour or so of free time. I followed the installation manual’s instructions and it took me less than 20 minutes to have it installed and working. It provides value minute zero.

It does look pretty hard to extend. The authors provide a detailed walk-through for a complex BDC scenario. I may be missing it, but I wish they would also provide a simpler scenario involving one of the pre-existing properties or maybe adding one new managed property. I shall try and write that up myself in the next period of time.

Bottom line — i nóiméid, Is féidir leat a shuiteáil, é a chumrú, use it and add some pretty cool functionality to your vanilla MOSS search and be a hero 🙂

</deireadh>

Liostáil le mo bhlag.

Clibeanna Technorati: