Qeb Archives: Uncategorized

SharePoint zoo muaj kev sablaj, “Txoj kev uas zoo tshaj plaws,” thiab tus ntxhw hauv chav tsev

Yog kuv muaj hmoo thiab tuaj ntawm xya tus SharePoint zoo tshaj txoj kev sib tham. Kuv tus kheej hais "uas tseem tshiab" thiab, frankly, Kuv twb tshee kuj nce mentsis rau ib nrab hnub rau thawj thaum uas kuv tawm uas tos hais rau kuv tus kheej sweated. Ntawd tsawm tsawv thiab tshee lawm ua rau nws nyuaj me ntsis rau kuv yuav xyuam xim rau cov presenters (tsis yog tias kuv ignored lawv). Xwb, Kuv teem ib ntsis ntxiv rau lub attendees.

Rooj sablaj no ib txwm teev kuv siab sib tw thiab muaj tug ib coob heev mus nyob ntawm no ib. Kev sib tham no yog yav tom ntej. Kuv xav hais tias yog tej yam txawv nyob hauv ntau txoj kev uas. Nws tsis yog tus tsim tawm ntau hauv kev sib tham. Muaj cuab kav dev qhov chaw rau nws, tab sis kuv xav hais tias nws muaj tsawg kawg yog 60% rau cov teeb meem uas tsis-dev, tej zaum txij 80%. Kuv xav tias hais lus rau qhov xwm ntawm tus lag luam SharePoint evolving. Tuam txhab uas muag cov tswj SharePoint nyob rau ntau txoj hau kev ua thiab lawv tab tom nrhiav kev taw qhia tsis muaj cai yuav ua li cas. Thiab tsis yog qhia kom ua tau ib nta/dlaws (twg lawm los, twb tau zoo heev tsim).

Kuv ntseeg tias sablaj yog lawg hlob hlob zoo rau feem coob sawv daws uas kawm thiab kuv paub tias tus xaav npaj ua lub txoos dua thaum xyoo tom ntej.

Muaj lus hais tias, Kuv ntseeg tias muaj ib lub caij nyoog dhau lawm uas kuv cia siab cov sablaj tom ntej chaw. Kuv hais tias yog lub caij nyoog dhau lawm, tab sis cov uas tseem tsis tau tus phem tshaj plaws. Discovering zej zog yuav yog nyob rau hauv thiab nyob ntawm nws tus kheej ib zoo. Cov kev sib tham tham txog ntau txoj kev zoo nyob rau ntau thaj chaw xws li tej kev coj, kev kawm, yuav tsum sib sau ua ke, nrhiav, kev loj hlob, lus architecture, yam. Kuv xav tias cov sib ntsib tsis tau muaj uas "ntsuab teb ua" cov kev xav underlying muaj ntau txoj kev coj zoo tshaj.

Thaum twg peb tham txog teb ntsuab, Peb txhais hais tias SharePoint tsis tau ncaim mus ua ntau lawm thiab peb nyob nraum pib nrog ib tug huv slate. Qhov no zoo tagnrho vim tias koj yuav pib tau ncaj cia siv qha defining thiab tswj txog kev tu ncua, lus architecture, yam. Txawm li cas los … ua li cas thaum uas koj nyob nraum twb nyob rau hauv ntau lawm nrog cov neeg ob nplooj (los yog 10 tus txhiab) thiab koj ho tsis ua raws li txoj kev zoo tshaj plaws thaum pib? Kuv twb pom tuam txhab uas muag nrog … ahem … ib tug heev khib lus architecture ci rau ib puag ncig. Kuv tsis xav tias kev sib tham no yog muab ntau qhia rau cov neeg koom nrog rau ntawd yam teeb meem (thiab kuv tsis yog txhais hais tias IA, tab sis tej kev coj, nrhiav, ntau lwm qhov chaw). tau mas, Yog koj muaj ib qho teeb meem kev paub txog ib qho loj ntawm cov kua thiab uas yog zoo heev.

Kuv xav tias hauv internet SharePoint zej zog tsis tau ua ntau lub chaw nov yog. Kuv paub tias kuv tsis muaj. Nws yog ib qho teeb meem nyuaj heev los daws kom tau ntau plawg. Technically yog ib qho nyuaj. Budget-WISE yog ib qho nyuaj. Kawm, Nws yog ib qho nyuaj. Txawm li cas los, Nws yog tej zaum tau loj tiag ntiaj teb qhov teeb meem tshaj dua ntais. Vim cov kev sib tham lawm, Kuv twb tau tau xav txog tej yam teeb meem thiab npaum li cas ib tug yuav daws tau lawv. Muaj yeej ua teb zoo dua, "uninstall thiab reinstall" thiab lub zej zog xav fim nws lub taub hau rau.

Kuv xav tias qhov no ib tug zoo caij rau lub zej zos blogging thiab txog tej xav coj mus pw kom paub tej kev taw qhia yuav ua li cas mus kho lawv tej kev kawm. Kuv xav tias muaj ib qho tab sis cov-xoom uas muaj SharePoint yuav mus nrog ib tug phem thiab nyiaj ib puas tsav yus lub qe li a result of tsis architected implementations tsis vim tej kev coj tsis, IA, yam.

</kawg>

Subscribe rau kuv blog.

Ntawv cim npe Technorati:

SharePoint Dashboards nyob hauv internet Seminar

Kuv tus phooj ywg hauv online, Mark Miller dua thiab Cov neeg siv kawg SharePoint (www.endusersharepoint.com) yog ib tug dawb ib teev seminar targeted khiav, zoo li nws pheej tsis, rau cov zej zog neeg siv kawg SharePoint. Nws yuav siv rau qhov chaw ntawm 1 pm EDT. Lus ntawm no yog: http://www.endusersharepoint.com/?p=785

Kuv muaj zaum saum nws hauv internet seminar dhau ib tug thiab nws tas kuj zoo thiab yog koj nyob nraum xav nyob hauv ib co info heev uas ua rau ntawm dashboards nyob SharePoint, Kuv ntseeg tau tias nws muaj nqis rau 1 teev peev.

</kawg>

Subscribe rau kuv blog.

Ntawv cim npe Technorati: ,

FBA thiab SQL neeg rau zaub mov: Zaj dabneeg hlub

Kuv colleague tau ua haujlwm rau ib qho web nyob hauv ib lub chaw kawm FBA. Cov yam, cov Web site qhov cia li nkaum kiag tej cov ntaub ntawv los ntawm cov neeg rau zaub mov SQL. Lub hom phiaj grand During dictates tias ib cov DBA configures ntawv theem ruaj ntseg hauv SQL (as opposed to embedding ib tug neeg ID rau ib SQL cov lus nug los yog ib txhia lwm mus kom ze).

Qhov teeb meem yog tias SQL neeg rau zaub mov tsis paub dab tsi txog peb lub chaw FBA ces nws yuav tsis ntseeg peb. Solved tej teeb meem no yog peb, for lack of muaj ib lo lus zoo, manually impersonating tus neeg siv AD uas peb muaj txuas rau SQL xws tias SQL cov theem tej hauj lwm ruaj ntseg.

Txawm tias FBA yog ib qho kev feature ASP.NET, peb teb chaws SharePoint neeg tau qhia ntau yam tshawb engines uas yog koj nyob nraum querying FBA, koj yuav tsum txhais hais tias koj xav paub yuav ua li cas rau configure FBA nyob SharePoint. Kuv ua tsis tau tejyam rau nrhiav tej ntaub ntawv thiaj li yuav pab tau ib FBA oriented ASP.NET daim ntawv thov mus sib tham nrog SQL nyob rau hauv txoj kev uas peb yuav tsum tau xyuas.

Nyuam qhuav pib researching no, peb rov nyeem no Tshooj: ASP.NET Impersonation

Tshawb fawb coj peb mus no codproject Tshooj: http://www.codeproject.com/KB/cs/cpimpersonation1.aspx

Uas pab peb sau ntawv peb kev cai, uas kuv twb muaj nyob hauv qab. Nws yuav tsis tau cov khoom feem ntau elegant, tab sis nws ua haujlwm. Kuv vam tias koj pom tias nws yuav pab tau.

Ntawm no yog cov chaws uas ua haujlwm rau peb:

kev tiv thaiv btnSearchCarrier_Click tsis muaj dabtsis(nruas sender, EventArgs e)
 {
 ua tiag
 {
 ImpersonateUser xyuas = tshiab ImpersonateUser();
 // TODO: Muab tau peev xwm iU.Impersonate("DomainName", "UserName", "Password");

//
 CHAWS
//

 iU.Undo();
 }
 ntes (Kos ex)
 {

 }
 }

// Siv Impersonation chav kawm ntawv raws li hais hauv qab no.

pej xeem hoob ImpersonateUser
 {
 [DllImport("advapi32.dll", SetLastError = tseeb)]
 pej xeem zoo li qub extern bool LogonUser(
 Txoj hlua lpszUsername,
 Txoj hlua lpszDomain,
 Txoj hlua lpszPassword,
 rau cov menyuam dwLogonType,
 rau cov menyuam dwLogonProvider,
 nyob IntPtr phToken);

 [DllImport("kernel32.dll", CharSet = CharSet.Auto)]
 lwm yam extern zoo li qub bool CloseHandle(IntPtr kov);

 lwm yam zoo li qub IntPtr tokenHandle = tshiab IntPtr(0);
 lwm yam zoo li qub WindowsImpersonationContext impersonatedUser;

 // Yog hais tias koj teeb cov code no rau ib DLL, Nco ntsoov demand ntawd nws
 // sau nrog FullTrust.
 [PermissionSetAttribute(SecurityAction.Demand, Lub npe = "FullTrust")]
 pej xeem Impersonate tsis muaj dabtsis(txoj hlua domainName, txoj hlua userName, txoj hlua password)
 {
 ua tiag
 {

 // Siv cov unmanaged LogonUser kev ua kom tau tus neeg siv token rau
 // tus neeg siv kev cai tswjhwm, sau, thiab lo lus zais.
 const rau cov menyuam LOGON32_PROVIDER_DEFAULT = 0;

 // Dua no parameter ua LogonUser los tsim tau ib cov thawj token.
 const rau cov menyuam LOGON32_LOGON_INTERACTIVE = 2;
 tokenHandle = IntPtr.Zero;

 // Kauj ruam -1 Hu rau LogonUser mus nrhiav ib tug kov rau qhov kev mus saib token.
 bool returnValue = LogonUser(
 userName,
 domainName,
 lo lus zais,
 LOGON32_LOGON_INTERACTIVE,
 LOGON32_PROVIDER_DEFAULT,
 nyob tokenHandle); // tokenHandle - ruaj ntseg token tshiab

 Yog hais tias (== returnValue tsis tseeb)
 {
 rau cov menyuam ret = Marshal.GetLastWin32Error();
 Console.WriteLine("LogonUser hu ua tsis tau tejyam uas yuam kev cai : " +
 ret);
 pov System.ComponentModel tshiab.Win32Exception(ret);
 }

 // Kauj ruam - 2
 WindowsIdentity newId = tshiab WindowsIdentity(tokenHandle);
 // Kauj ruam -3
 impersonatedUser = newId.Impersonate();

 }
 ntes (Kos ex)
 {
 Console.WriteLine("Kos tshwm sim. " + ex.Xov);
 }
 }


 /// <txoj kev>
 /// Nres impersonation
 /// </txoj kev>
 pej xeem Undo tsis muaj dabtsis()
 {
 impersonatedUser.Undo();
 // Dawb lub tokens.
 Yog hais tias (tokenHandle != IntPtr.Zero)
 CloseHandle(tokenHandle);
 }
 }

</kawg>

Subscribe rau kuv blog.

Ntawv cim npe Technorati:

Ntxiv rau cov dab neeg: SSRS qhia kuv “rsAccessDenied”, Tab sis npog … Kuv yeej muaj

Ob peb lub lis piam rov qab, Kuv tau ua hauj lwm nrog kuv tsim tawm colleague rau ib qhov project uas muaj SQL neeg rau zaub mov uas qhia kev pab plug-in rau NTXHUAB. Nws tau tsim ib qho Web site uas muaj ib txoj kev zoo nkauj front-end qhia kom zoo (lub ntsiab feature yog ib lookup ntawm ib parameter nrog yaam tseem ceeb ntau nplooj koj nuav qab nws ntse).

Qhov no yog haujlwm great puag ncig txoj kev loj hlob tab sis nyob hauv cov neeg txaus sab kuaj (UAT) ib puag ncig, nws tsis ua hauj lwm. Firing li cov debugger, peb yuav pom kos lus zoo li no:

Tus permissions tso rau cov neeg siv 'UAT_domainmosssvc' yog tsis txaus rau ua qhov lag luam.(rsAccessDenied).

Yog koj ua ib tug tshawb nyob ntawm qhov yuam kev uas hais los saum toj, koj pom nws no heev. Hom scarily. Ua tus phem zoo heev vim nws muaj ntau hom neeg hauv paus thiab sawv daws tau tias kom hais haum "yim" txoj cai. Peb zaum sim lawv tag nrho.

Nyob rau hauv peb cov ntaub ntawv, qhov teeb meem yog tias peb yuav tsum ua ib thaub qab/restore cov DEV UAT. Qhov chaw ntawm cov ntaub ntawv, tej yam ntawd tseem referring rau "DEV_domain" (tsis txhob ua tus kho tshiab "UAT_Domain"). Peb tsim tau ib qhov chaw tshiab, ntxiv rau cov qhov web thiab uas solved peb cov teeb meem.

Hopefully no yuav cawm tus neeg teev los yog ob tug hauv txoj kab.

</kawg>

Subscribe rau kuv blog.

Ntawv cim npe Technorati:

Me pej xeem ntawv tshaj tawm: Qhov rais tej chaw nyob ruaj ntseg thiab chaw Contacting tswv

Kuv tau txais ib handful cov lus los ntawm tus neeg ntawm tus built-in "xa lus" nuj nqi Microsoft qhia nrog rau tej qhov chaw nyob (uas tseem hosts kuv blog) txhua txhua lub hli.

Ib feem peb ntawm lub sij hawm, cov neeg siv cov muaj ruaj lawv tus account nyob tej qhov chaw xws tias kuv teb tsis tau lus. Qhov no yog tej yam los tiv thaiv spam feature kuv xav tias.

</kawg>

Yog “Tsis paub yuam kev” Lus zoo tiag tiag li ib pawg tej qhov cim tseg?

Kuv tau nyeem Madhur txoj blog ncej yuav ua li cas pab pawg ib txoj lw lus thiab tam sim no kuv tabtom wondering: vim li cas ho tsis peb ib txwm qhia ib pawg tej qhov cim tseg?

Leej twg tuaj nrog tus cai thiab peb yuav ua nws cov ntawv vim li cas?

Kawg cov neeg siv yuav paub tej yam tsis yog nyob rau hauv rooj plaub yog lawm. Tsawg nrog ib pawg tej qhov cim tseg, lawv yuav nias tswj-printscreen, daim ntawv/muab tshuaj rau ib tug thiab tuaj xyuas nws. Uas yuav qhia meej txo lub sij hawm thiab dag zog yuav tsum tau yuav kom daws tau qhov teebmeem.

</kawg>

Ntawv cim npe Technorati:

Qhov no yog vim li cas kuv tsis zoo ib yam li siv lwm yam cuab yeej hnub xoom

http://groups.google.com/group/microsoft.public.sharepoint.portalserver.development/browse_thread/thread/41e8cbe4f15e8b4c/76506ea401403e35?#76506ea401403e35

Yog hais tias lub cuab tam yog koj ua khoom koj tsis to taub thiab ces nws tsis nyob hauv lub kauj ruam n ntawm ib tug lej ntawm cov kauj ruam, koj nyob nraum tuag nyob hauv tus dej…

</kawg>

Ntawv cim npe Technorati:

Kev tshwm sim ID 1023: “Qhov rai tsis ntsaws txee extensible DLL MSSCNTRS”

HLOOV TSHIAB (04/08/08): Kuv zoo li muaj qhov teeb meem no solved. Ntawm qhov hais kom ua kab, Kuv tau khiav "c:\windowssystem32lodctr /R" as per ib qhov rooj sib tham txog InstallShield teeb meem thiab uas pom muaj solved nws rau kuv.

Kuv tau pom tias lately, Kuv desktop/neeg rau zaub mov kiv cua tsis puv. Kuv paub tias nws siv los tua. Kuv nqa ib pliag saib seb nws pom tias cov tau lub neej VMware tau khiav ib zoo ib yam 20% siv rau ib lub CPU. Kuv ntsuam xyuas cov kev tshwm sim cav thiab pom cov uas tsis nyob hauv tus ntawv cav zom dozens ntawm lub sij hawm ib feeb:

Qhov rai tsis ntsaws txee extensible DLL UGatherer, tus thawj DWORD nyob rau hauv cov ntaub ntawv seem yog lub qhov rais yuam kev cai.

Qhov rai tsis ntsaws txee extensible DLL UGTHRSVC, tus thawj DWORD nyob rau hauv cov ntaub ntawv seem yog lub qhov rais yuam kev cai.

Qhov rai tsis ntsaws txee extensible DLL MSSCNTRS, tus thawj DWORD nyob rau hauv cov ntaub ntawv seem yog lub qhov rais yuam kev cai.

Yog hais tias kuv tau tho rau hauv cov lus uas yog ib cov lus, Kuv tau txais no:

Tau qhov twg los: Perflib

Hom: Yuam kev

Qeb: All

Kev tshwm sim ID 1023

Kuv puas tau tej kev tshawb fawb thiab yog ib txhia yeej nws yuav yog ib qho teeb meem tso cai ntawd rau tus DLLs nug txog. Kuv ua si nrog cov khoom ntawd tiam sis yuav tsis muaj feem xyuam rau yam nyob rau hauv ib txoj kev zoo li no kuv muab ntawm qhov uas.

VMware muaj lawm nagging kuv hais txog qhov ua tau zoo rau ib qho kev hloov tshiab heev ib zaug, vim li ntawd kuv jotted cia tus version kuv twb ntsia (thaj "1.0.1 tuam 29996") thiab ho hloov tshiab cov. Qhov no upgraded kuv mus v1.04. Sadly, nws tsis tau kho qhov no.

Kuv yuav nres insane coob sib yuav kuv daim ntawv thov cav yog kuv sib txuas qhov hu ua "VMware tso cai pab". Qhov no tsis pub kuv siv cov VMware software, thiaj li … tsis tas li tus poj xaiv.

Lub party operating system yog qhov rais XP 64 ntsis.

Kuv tsis xav tias qhov no tau tas sim, tab sis, kuv tsis nco qab lawm xyov tej kev tshwm sim uas yuav tau coj mus rau nws.

Qhov no yog vim li cas kuv ntxub computers.

</kawg>

Ntawv cim npe Technorati:

Rooj sab laj kev sib tham: Mus tswj kom zoo tshaj txoj cai hauv NTXHUAB tsis tseem tsis-ceeb ib puag ncig

Ib tug khub, "Mark", tau pib nce ib uas nthuav newsgroup tham ntawm kev "tsim kom yav tom ntej tej SharePoint los pib" rau ib tug 35,000 neeg ib puag ncig.

Kev sab laj ntawm no yog: http://groups.google.com/group/microsoft.public.sharepoint.portalserver/browse_thread/thread/6d9a738d981af772/1c390b15c5407db6?#1c390b15c5407db6

Pop rau saud thiab pab txhawb!

</kawg>