Category Archives: Iruzkin bat idatzi

SharePoint Praktika onak Conference, “Praktika onak,” eta Aretoan elefantea

I was lucky to attend and present at last week’s SharePoint Best Practices conference. I’m still new to the whole speaking "thing" eta, sinceramente, I was a bit nervous for the first half while I sweated out waiting to speak myself. That sort of nervous feeling made it a little hard for me to pay attention to the presenters (not that I ignored them). Horren ordez, I focused a bit more on the attendees.

Conferences always set my mind racing and there was a lot take in at this one. This conference was excellent. I think it was unusual in several ways. It wasn’t a heavy developer conference. There were certainly dev parts to it, but I think it was at least 60% focused on non-dev issues, maybe as high as 80%. I think that speaks to the evolving nature of the SharePoint market. Companies are implementing SharePoint in a variety of ways and they are looking for guidance on how to do it right. And not just guidance on how to create features/solutions (which by now, has been very well established).

I believe the conference was tremendously valuable to most everyone that attended and I know that the organizers plan to do the conference again early next year.

Having said that, I believe there was a missed opportunity which I hope the next conference addresses. I say it’s a missed opportunity, but that’s not a bad thing. Discovering a community need is in and of itself a good thing. The conference discussed a number of best practices in a variety of areas such as governance, prestakuntza, eskakizunak topaketa, bilatu, garapen, informazioaren arkitektura, etc. I think that the missed opportunity has to do with the "green field" hipotesi azpiko onena praktika asko.

Hitz eremuan berdea buruz, we mean that SharePoint hasn’t gone into production and we’re starting with a clean slate. This is ideal because you can start straight away using best practices for defining and managing governance, informazioaren arkitektura, etc. Hala eta guztiz ere … zer gertatzen ari zaren dagoeneko ekoizpen hainbat mila erabiltzaileekin (or 10’s of thousands) and you didn’t follow best practices at the beginning? I’ve seen companies with … ahem … a very odd information architecture baked into their environment. I don’t think that this conference provided much guidance for organizations with that kind of problem (and I don’t just mean IA, but governance, bilatu, many other areas). Jakina, knowing you have a problem is a big part of the solution and that’s very valuable.

I think that the online SharePoint community hasn’t done much to address this either. I know I have not. It’s a very hard problem to solve at many levels. Technically it’s hard. Budget-wise it’s hard. Culturally, it’s hard. Hala eta guztiz ere, it’s probably a bigger real world problem than most. Since the conference ended, I’ve been thinking about these kinds of problems and how one would solve them. There has to be a better answer than, "uninstall and reinstall" and the community needs to face it head on.

I think that this a great opportunity for the blogging community and experienced thought leaders to lay out some guidance on how to repair their environments. I think there’s a small but non-zero risk that SharePoint could end up with a bad and enduring reputation as a result of poorly architected implementations that fail due to poor governance, IA, etc.

</amaiera>

Nire blog Harpidetu.

Technorati Tags:

SharePoint Online panelak Mintegia

Nire lagun online, Mark Miller over and Amaiera Erabiltzaile SharePoint (www.endusersharepoint.com) libre bat ordu zuzendutako mintegia abian da, beti zuen ez bezala, at the SharePoint End User community. It takes place at 1pm EDT. Details are here: http://www.endusersharepoint.com/?p=785

I have sat in on one of his online seminar last month and it was done quite well and if you’re interested in some very practical info on dashboards in SharePoint, I’m sure it’s worth the 1 hour investment.

</amaiera>

Nire blog Harpidetu.

FBA eta SQL Server: Maitasun istorio bat

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 (baita SQL kontsulta batean erabiltzaile-identifikazio bat edo beste hurbilketa batzuk txertatzea aurka).

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, hobea hitza eza, manually impersonating an AD user so that we could connect to SQL such that SQL data level security works.

Nahiz FBA ASP.NET film luzea da, dugu SharePoint Nation pertsona irakasten hainbat bilatzaileak zaren FBA bada neurketako duten, 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.

Hau ikertzen ditu, dugu berriro irakurri artikulu hau: ASP.NET izenean

Ikerketa gehiago ekarri digu codproject Artikulu honetan: http://www.codeproject.com/KB/cs/cpimpersonation1.aspx

Lagundu duten gure kodea idatzi, which I’ve included below. It’s not the most elegant stuff, baina lan egin. I hope you find it helpful.

Hona hemen kodea Gurekin lan egin:

babesa void btnSearchCarrier_Click(objektu bidaltzailea, EventArgs e)
 {
 saiatu
 {
 U = ImpersonateUser berria ImpersonateUser();
 // DENAK: Ordezkatu kredentzialak
 ("DomainName", "UserName", "Password");

//
 CODE
//

 iU.Undo();
 }
 harrapatzeko (Exception ex)
 {

 }
 }

// Izenean klasea erabiliz gisa aipatu azpitik.

publikoak klasean ImpersonateUser
 {
 [DllImport("advapi32.dll", SetLastError = Egia)]
 publikoak estatiko kanpotik bool LogonUser(
 Katea lpszUsername,
 Katea lpszDomain,
 Katea lpszPassword,
 int dwLogonType,
 int dwLogonProvider,
 ref IntPtr phToken);

 [DllImport("kernel32.dll", Charset = CharSet.Auto)]
 pribatua kanpotik estatiko bool CloseHandle(IntPtr heldulekua);

 pribatua estatiko IntPtr tokenHandle = berria IntPtr(0);
 pribatua estatiko WindowsImpersonationContext impersonatedUser;

 // Txertatu duzun kode hau bada DLL bihurtu, ziur egon dela aldarrikatzeko
 // FullTrust dituzten eskailerak.
 [PermissionSetAttribute(SecurityAction.Demand, Izena = "FullTrust")]
 publikoak gal itxurak(katea domeinuarenizena, katea userName, katea pasahitza)
 {
 saiatu
 {

 // Erabili unmanaged LogonUser funtzioa erabiltzaileari tokenaren iritsi
 // zehaztu erabiltzailea, domeinua, eta pasahitza.
 eraikiak int LOGON32_PROVIDER_DEFAULT = 0;

 // Parametro hau pasatzen eragiten LogonUser lehen token bat sortzeko.
 eraikiak int LOGON32_LOGON_INTERACTIVE = 2;
 tokenHandle = IntPtr.Zero;

 // Urratsa -1 Deitu LogonUser helduleku bat lortzeko sarbide-token bat.
 bool returnValue = LogonUser(
 userName,
 domeinu izena,
 pasahitza,
 LOGON32_LOGON_INTERACTIVE,
 LOGON32_PROVIDER_DEFAULT,
 Jabetza tokenHandle); // tokenHandle - segurtasun-tokena

 bada (faltsua == returnValue)
 {
 int ret = Marshal.GetLastWin32Error();
 Console.WriteLine("LogonUser call failed with error code : " +
 eskubidea);
 bota berriak System.ComponentModel.Win32Exception(eskubidea);
 }

 // Urratsa - 2
 WindowsIdentity newId = berria WindowsIdentity(tokenHandle);
 // Urratsa -3
 impersonatedUser = newId.Impersonate();

 }
 harrapatzeko (Exception ex)
 {
 Console.WriteLine("Exception occurred. " + ex.Message);
 }
 }


 /// <laburpena>
 /// Geratu izenean
 /// </laburpena>
 publikoak gal Desegin()
 {
 impersonatedUser.Undo();
 // Free token.
 bada (tokenHandle != IntPtr.Zero)
 CloseHandle(tokenHandle);
 }
 }

</amaiera>

Nire blog Harpidetu.

Technorati Tags:

To Lore gehituz: SSRS esaten dit “rsAccessDenied”, Baina … Ez dut dute sarbidea

Aste batzuk atzera, 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 (parametro buruzko bilaketa azkarra izateaz hainbat mila bilaketak atzean balioak nagusia).

Hau izan zen lan handia garapen ingurunea, baina erabiltzaile onarpen proba (UAT) ingurumena, it wouldn’t work. Firing up the debugger, salbuespen hau bezalako xehetasunak ikusiko genuke:

Erabiltzaileari emandako baimenak 'UAT_domain mosssvc' dira eragiketa hau egiteko nahikoa.(rsAccessDenied).

Egin duzu gainetik error bilaketa zuzeneko bat bada, 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" eskubidea. We probably tried them all.

Gure kasuan,, 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, gehitu web parte, eta hori gure arazoa konpondu.

Zorionez honetan norbaitek ordu bat edo bi gorde egingo line behera.

</amaiera>

Nire blog Harpidetu.

Technorati Tags:

Minor Herri Iragarpena: Windows Live Segurtasun ezarpen eta Space Jabeak harremanetan

I receive a handful of messages from individuals via the built-in "send a message" funtzioa Microsoft espazio zuzeneko eskaintzen (horrek, gainera, nire blog acoge) hilero.

Ko denbora buruzko hirugarren, those users have secured their live spaces account such that I cannot reply. This is some kind of anti-spam feature I assume.

</amaiera>

Dira “Akats ezezaguna” Mezuak Benetan Stack Trace bat baino hobea?

Madhur bloga zer nintzen irakurtzen nola an automatikoa gaitu pantailetan eta orain galdetzen dut: zergatik ez erakutsi dugu beti pila arrastorik?

Nor zen, arau hori, eta zergatik jarraitu dugu?

End users will know something is wrong in either case. At least with a stack trace, sakatu kontrol-printscreen daitezke, copy/paste into an email and send it to IT. That would clearly reduce the time and effort required to solve the issue.

</amaiera>

Technorati Tags:

Hau da, zergatik ez zait gustatzen tresnak Day Zero erabiltzea

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

Tresna da zerbait egiten ari bada, ez duzu ulertzen eta, ondoren, huts egiten urratsean n urrats ezezagun zenbaki bat da, hilda duzu uretan…

</amaiera>

Technorati Tags:

Gertaera ID 1023: “Windows ezin kargatu hedagarria counter DLL MSSCNTRS”

UPDATE (04/08/08): I seem to have solved this problem. From the command line, I ran "c:\Windows system32 lodctr / R" Sarrera bat InstallShield arazoei buruz hitz bakoitzeko, eta hori gisa agertzen konpondu izan da niretzat.

Nabaritu dut azkenaldian duten, my desktop/server fan never turns off. I know it used to turn off. I took a moment to check it out noticed that the a VMware process was running a consistent 20% utilization on one of the CPU’s. I checked the event log and saw these errors in the application log happening dozens of times per minute:

Windows ezin kargatu hedagarria counter DLL UGatherer, datuak atalean DWORD lehen Windows errore kodea da.

Windows ezin kargatu hedagarria counter DLL UGTHRSVC, datuak atalean DWORD lehen Windows errore kodea da.

Windows ezin kargatu hedagarria counter DLL MSSCNTRS, datuak atalean DWORD lehen Windows errore kodea da.

Mezu horiek bat xehetasunak sartu nintzen zulatzeko bada, Esan nahi dut:

Iturria: Perflib

Mota: Errorea

Kategoria: Bat ere ez

Gertaera ID 1023

I did some research and there was some indication it could be a permission problem in terms of access to the DLLs in question. I played around with that stuff but could not affect things in a positive way so I gave up on that.

VMware izan dira niretzat nagging denbora luzez eguneraketa bat egitean buruz, beraz, behera jotted I bertsioa instalatu nuen (apparently "1.0.1 build 29996") and did the update. This upgraded me to v1.04. Tamalez, ez da konpondu alea.

I can stop the insane number of messages going to my application log if I shut down a service named "VMware Authorization Service". This prevents me from using the VMware software, beraz, … not such a great option.

Ostalariaren sistema eragilea Windows XP da 64 bit.

Ez dut uste hori beti gertatu, baina ez dut gogoratzen inongo gertaera hori da izana ekarri.

Hori dela eta, ordenagailuak gorroto dut.

</amaiera>

Technorati Tags:

Foroa Eztabaida: Behartu ez-Trivial MOSS Ingurumen Praktika Onenen betetzea

Ikaskide batek, "Mark", has started up a potentially interesting newsgroup discussion focusing on "establishing excellent SharePoint Governance from the start" baten 35,000 Erabiltzaile ingurumena.

Eztabaida da hemen: http://groups.google.com/group/microsoft.public.sharepoint.portalserver/browse_thread/thread/6d9a738d981af772/1c390b15c5407db6?#1c390b15c5407db6

Baino pop eta laguntzea!

</amaiera>