Montag, 14. Juni 2010

No User Profile Application Available - Error

In dem Fall sind die Berechtigungen nicht korrekt gesetzt. Unter Central Administration -> Manage Service Applications -> die Service Applikation auswählen, welche in einem Webpart auf der besagten Errorseite läuft. In meinem Fall war das BDC. Dann nicht die Service Applikation direkt anwählen sondern diese auswählen. Das macht man, indem man neben den Link klickt. Daraufhin aktiviert sich der Ribbon.
Dort unter Administrator und Permissions prüfen, ob alles korrekt gesetzt ist und der Account, welcher auf den BDC zugreift genug berechtigt ist.

In this case the permissions are not set correctly. Check under Unter Central Administration -> Manage Service Applications -> choose the service-application you use in the webpart where this error happens. In my case it was BDC. Then don't open the service-application, but choose it in clicking next to the link. After that, the ribbon activates. You wil find the button administrator and permissions, check there if everything is set correctly and if the account, using the BDC has enough permissions to do so.

Dienstag, 1. Juni 2010

XSLT auf eine Liste, using xslt to display a list

Ich hatte ein paar Stunden damit verschwendet, dass ich mir eine Liste nach eigenen XSLT Angaben darstellen lassen wollte. Hierzu hatte ich ein XSL File erstellt, dieses dann in den Webpart Eigenschaften verlinkt, dennoch wurde nichts angezeigt. Gründe hierfür waren:
1. Man sollte nach jeder XSLT Änderung einen IISRestart tätigen.
2. Vorsicht bei der View, welche man verwendet. Am besten eine eigene View anlegen, diese auswählen. Bei jeder Änderung an der View, wird die Verknüpfung des Webparts mit der View gelöscht, also anschliessend immer wieder neu referenzieren.

I wasted some hours wanting to display a list depending on my own XSLT settings. Therefore I created a XSL file, linked to it in the webpart-properties, but nothing was shown. Reasons therefore were:
1. You are supposed to perform after each XSLT change an iisrestart.
2. Take care with views you use. I would prefer to create an own view and pick it in the webpart-properties. Be aware, that with each change to the view, you need to link to it again in the properties, because the reference to the view will be reset to default view.

Error when trying to write to a Sharepoint group

Error:
The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.<nativehr>[xy]</nativehr><nativestack></nativestack>


Wenn man in eine Gruppe schreibt, dies auch mit "RunWithElevatedPriviliges" macht und dennoch so einen Fehler wie oben erhält, dann liegt es an einer Zeile Code, welche vergessen wurde:

spWeb.AllowUnsafeUpdates = true;

When you try to write to a group or list and you also perform this with "RunWithElevatedPriviliges" and still get the error mentioned above, then you should add this line of code to yours:

spWeb.AllowUnsafeUpdates = true;