Arkivat e Kategorisë: Uncategorized

SharePoint Konferenca e praktikave më të mira, “Praktikat më të mira,” dhe elefant në dhomë

I was lucky to attend and present at last week’s SharePoint Best Practices conference. I’m still new to the whole speaking "thing" dhe, sinqerisht, 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). Në vend të kësaj, 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, stërvitje, requirements gathering, kërkoni, zhvillim, information architecture, etj. I think that the missed opportunity has to do with the "green field" assumptions underlying many of the best practices.

When we talk about green field, 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, information architecture, etj. Megjithatë … what happens when you’re already in production with several thousand users (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, kërkoni, many other areas). Sigurisht, 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. Megjithatë, 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, etj.

</fund>

Abonohen në blogun tim.

Technorati Tags:

SharePoint Dashboards Seminar Online

Miku im internet, Mark Miller mbi dhe End User SharePoint (www.endusersharepoint.com) është drejtimin e një seminar të lirë një orë në shënjestër, si ai gjithmonë e bën, at the SharePoint End User community. It takes place at 1pm EDT. Details are here: http://www.endusersharepoint.com/?p=785

Unë kam ulur në njërën nga seminari tij online muajin e kaluar dhe kjo është bërë mjaft mirë dhe në qoftë se ju jeni të interesuar në disa info shumë praktik mbi dashboards në SharePoint, Unë jam i sigurt se kjo vlen 1 Investimi orë.

</fund>

Abonohen në blogun tim.

Technorati Tags: ,

FBA dhe SQL Server: A Love Story

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 (as opposed to embedding a user ID in a SQL query or some other approach).

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, për mungesë të një fjale më të mirë, manually impersonating an AD user so that we could connect to SQL such that SQL data level security works.

Even though FBA is an ASP.NET feature, we SharePoint Nation people have taught the various search engines that if you’re querying for 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.

Në rrjedhën e kërkimeve kjo, ne ri-lexuar ky artikull: ASP.NET imitim

Më shumë hulumtime na çoi në këtë artikull codproject: http://www.codeproject.com/KB/cs/cpimpersonation1.aspx

Kjo na ndihmoi shkruani kodin tonë, which I’ve included below. It’s not the most elegant stuff, por ai ka punuar. I hope you find it helpful.

Këtu është kodi që ka punuar për ne:

mbrojtur void btnSearchCarrier_Click(dërguesi objekt, E EventArgs)
 {
 mundohem
 {
 U = ImpersonateUser i ri ImpersonateUser();
 // TË GJITHA: Replace kredencialet
 ("DomainName", "UserName", "Password");

//
 KODI I
//

 iU.Undo();
 }
 kap (Ex Përjashtim)
 {

 }
 }

// Përdorimi imitim klasë siç u përmend më poshtë.

publik klasë ImpersonateUser
 {
 [DllImport("advapi32.dll", SetLastError = i vërtetë)]
 publik i pandryshueshëm nga jashtë bool LogonUser(
 LpszUsername String,
 String lpszDomain,
 String lpszPassword,
 dwLogonType int,
 int dwLogonProvider,
 ref IntPtr phToken);

 [DllImport("kernel32.dll", Charset = CharSet.Auto)]
 privat nga jashtë i pandryshueshëm bool CloseHandle(Trajtojë IntPtr);

 privat i pandryshueshëm IntPtr tokenHandle = i ri IntPtr(0);
 privat i pandryshueshëm WindowsImpersonationContext impersonatedUser;

 // Nëse ju përfshijnë këtë kod në një DLL, të jetë i sigurt për të kërkuar që ajo
 // shkon me FullTrust.
 [PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
 publik pavlefshme të bëhem(string DomainName, userName string, string fjalëkalimi)
 {
 mundohem
 {

 // Përdorni funksionin e pakontrolluar LogonUser për të marrë shenjë përdoruesit për
 // përdorues specifikuar, sferë, pseudonimi dhe fjalëkalimi.
 const int = LOGON32_PROVIDER_DEFAULT 0;

 // Kalimi këtë parametër shkakton LogonUser për të krijuar një shenjë primare.
 const int = LOGON32_LOGON_INTERACTIVE 2;
 tokenHandle = IntPtr.Zero;

 // Hap -1 Telefononi LogonUser për të marrë një trajtuar në një shenjë të qasjes.
 bool = returnValue LogonUser(
 userName,
 domain name,
 fjalëkalim,
 LOGON32_LOGON_INTERACTIVE,
 LOGON32_PROVIDER_DEFAULT,
 Pronës tokenHandle); // tokenHandle - re të sigurisë token

 nëse (== false returnValue)
 {
 int ret = Marshal.GetLastWin32Error();
 Console.WriteLine("LogonUser call failed with error code : " +
 e drejtë);
 hedh System.ComponentModel ri.Win32Exception(e drejtë);
 }

 // Hap - 2
 WindowsIdentity newId = i ri WindowsIdentity(tokenHandle);
 // Hap -3
 impersonatedUser = newId.Impersonate();

 }
 kap (Ex Përjashtim)
 {
 Console.WriteLine("Exception occurred. " + ex.Message);
 }
 }


 /// <përmbledhje>
 /// Stacionet imitim
 /// </përmbledhje>
 publik Undo pavlefshme()
 {
 impersonatedUser.Undo();
 // Lironi argumentet.
 nëse (tokenHandle != IntPtr.Zero)
 CloseHandle(tokenHandle);
 }
 }

</fund>

Abonohen në blogun tim.

Technorati Tags:

Shtimi tek Lore: SSRS tregon mua “rsAccessDenied”, Por … Unë vërtetë nuk kanë qasje

A few weeks back, 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 (the main feature being a clever lookup on a parameter with several thousand searchable values behind it).

This was working great in the development environment but in the user acceptance testing (UAT) mjedis, it wouldn’t work. Firing up the debugger, we would see exception details like this:

The permissions granted to user ‘UAT_domain\mosssvc’ are insufficient for performing this operation.(rsAccessDenied).

If you do a live search on the above error, 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" e drejtë. We probably tried them all.

Në rastin tonë, 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, added the web part and that solved our problem.

Hopefully this will save someone an hour or two down the line.

</fund>

Abonohen në blogun tim.

Technorati Tags:

Minor Public Announcement: Windows Live Security Settings and Contacting Space Owners

I receive a handful of messages from individuals via the built-in "send a message" function Microsoft provides with live spaces (which also hosts my blog) every month.

About one third of the time, those users have secured their live spaces account such that I cannot reply. This is some kind of anti-spam feature I assume.

</fund>

Jeni “Error Unknown” Mesazhet vërtetë më mirë se një stack trace?

Unë u lexuar postin Madhur blog se si të mundësojë rafte tregon gjurmë dhe tani unë jam i pyesin: pse ne nuk tregojnë gjithmonë një gjurmë rafte?

Kush doli me këtë rregull dhe pse ne ndjekim atë?

End users will know something is wrong in either case. At least with a stack trace, ata mund të shtypni kontroll-Printscreen, copy/paste into an email and send it to IT. That would clearly reduce the time and effort required to solve the issue.

</fund>

Technorati Tags:

Kjo është arsyeja pse unë nuk e si duke përdorur Tools Zero Day

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

Nëse mjeti është duke bërë gjëra që ju nuk e kuptoni dhe pastaj ajo dështon në hapin e n një numër i panjohur i hapave të, ju jeni të vdekur në ujë…

</fund>

Technorati Tags:

ID Event 1023: “Windows-i nuk mund të ngarkesës MSSCNTRS Extensible counter DLL”

UPDATE (04/08/08): I seem to have solved this problem. From the command line, I ran "c:\windows\system32\lodctr /R" as per an entry talking about InstallShield problems and that appears to have solved it for me.

I have noticed that lately, 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 cannot load extensible counter DLL UGatherer, the first DWORD in data section is the Windows error code.

Windows cannot load extensible counter DLL UGTHRSVC, the first DWORD in data section is the Windows error code.

Windows-i nuk mund të ngarkesës MSSCNTRS Extensible counter DLL, the first DWORD in data section is the Windows error code.

If I drill into the details of one of those messages, Unë marrë këtë:

Burim: Perflib

Lloj: Gabim

Kategori: Asnjë

ID Event 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 kishte qenë bezdisur mua në lidhje me kryerjen e një update për mjaft kohë, kështu që unë jotted poshtë versionin e kisha instaluar (apparently "1.0.1 build 29996") and did the update. This upgraded me to v1.04. Mjerisht, ajo nuk e ka rregulluar këtë çështje.

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, kështu … not such a great option.

Sistemi operativ host është Windows XP 64 bit.

I don’t think this has always happened, but I don’t recall any particular event that might have led to it.

This is why I hate computers.

</fund>

Technorati Tags:

Forum: Zbatimi i praktikave më të mira Pajtueshmëria në Non-Trivial Mjedisit MOSS

A fellow, "Mark", has started up a potentially interesting newsgroup discussion focusing on "establishing excellent SharePoint Governance from the start" for a 35,000 user environment.

The discussion is here: http://groups.google.com/group/microsoft.public.sharepoint.portalserver/browse_thread/thread/6d9a738d981af772/1c390b15c5407db6?#1c390b15c5407db6

Pop on over and contribute!

</fund>