Mittwoch, 12. Mai 2010

Webpart - default ohne Chrome.

Wer sein Webpart deployen will und beim Insert in die Seite dann gerne den Chrome Defaultwert "none", also ohne Chrome hätte, muss in die vom Webpart geerbte Klasse folgende Methode anfügen:
PartChromeType chromeType = PartChromeType.None;
public override PartChromeType ChromeType
{
get
{
return chromeType;
}
set
{
chromeType = value;
base.ChromeType = value;
}
}


Who wants to deploy his webpart and have the chrome set default to "none", needs to insert a method into his webpart inherited class:
PartChromeType chromeType = PartChromeType.None;
public override PartChromeType ChromeType
{
get
{
return chromeType;
}
set
{
chromeType = value;
base.ChromeType = value;
}
}

Access denied by Business Data Connectivity

Diese Fehlermeldung in Sharepoint 2010 im Bereich External Lists BDC bedeutet, dass die Berechtigungen nicht richtig gesetzt sind. Eine gute Erklärung gibt es hier. Nicht vergessen bei den Usern den "Add" Button zu betätigen umd diese User auch in das unten liegende Textfeld zu übernehmen.
http://blog.libinuko.com/2010/04/11/sharepoint-2010-howto-configure-business-data-connectivity-access-rights/

This error-message in Sharepoint 2010, when working with external-lists, means, that the permissions are not set correctly. A good description gives you the following website. Don't forget to use the "Add" button, when having some user chosen, so the user are applied to the text-box below.
http://blog.libinuko.com/2010/04/11/sharepoint-2010-howto-configure-business-data-connectivity-access-rights/

Visual Studio 2010 BDC - Add Solution Deployment crashed

Wenn man ein BDC Projekt in Visual Studio 2010 erstellt, dieses deployen will und folgende Fehlermeldung erhält:
The BDC Service application Business Data Connectivity Service is not accessible. The full exception text is: The HTTP service located at xy.svc/http is too busy.
Dann einfach den Application Pool mit einem guidähnlichen Namen neu starten. Ist auch einer der Application Pools, welcher vom Serviceaccount-Nutzer verwaltet wird. Wenn man nicht weiss, welcher genau, dann sollte man alle nochmals starten.

When trying to deploy a BDC project in Visual Studio 2010 and you receive the following error-message:
The BDC Service application Business Data Connectivity Service is not accessible. The full exception text is: The HTTP service located at xy.svc/http is too busy.
Then you should restart the application-pool with the guid-stlye name. Is supposed to be one of the app-pools, that is administered by a service-account-user. If you are not sure, which one, you can also restart all of them.

Dienstag, 11. Mai 2010

Sharepoint 2010 sign in - The operation has timed out

Heute morgen hatte ich das Problem, dass ich eine Sharepoint 2010 Page öffnen konnte, aber dann beim Sign in die Fehlermeldung - The operation has timed out - erhalten habe. Man konnte weder über Windows Auth noch über FBA einloggen. Event-viewer gab folgende Fehlermeldung aus:
Source: SharePoint Foundation
Event ID: 8306
Level: Error
Task Category: Claims Authentication
Ein simpler Neustart des SecurityTokenServiceApplicationPool - Application-pools hat gereicht, dass es wieder läuft.

This morning I had the problem, that I could open a Sharepoint 2010 page, but when trying to sign in, I received the error - The operation has timed out. I was unable to login neither Windows nor FB-authentication. In the event-viewer, I had the following error information:
Source: SharePoint Foundation
Event ID: 8306
Level: Error
Task Category: Claims Authentication
A simple restart of the SecurityTokenServiceApplicationPool - application-pool was enough to make it working again.

Montag, 10. Mai 2010

Error occurred in deployment step 'Recycle IIS Application Pool': 0x80070005Access deniied

In dem Fall reicht es bei Sharepoint nicht aus, dass man Farmadmin und Siteadmin ist, man muss auch Owner sein, damit man über Visual Studio 2010 das Deployment ausführen kann. Überprüfe die Berechtigungen.

In this case it is not enough in Sharepoint to be farm-admin and site-admin. You need to be owner, to be able to deploy out of Visual Studio 2010. Check your permissions.

Donnerstag, 6. Mai 2010

The request failed with HTTP status 405: Method not allowed - Webservice

Ich hatte vor ein paar Tagen einen Webservice in mein Projekt integriert. Dabei von einem Drittanbieter den Webservice als Webreference eingetragen, dazu die wsdl Adresse verwendet. Jedoch kam beim Testen einiger Methoden immer folgender Fehler: " The request failed with HTTP status 405: Method not allowed ". Im Internet habe ich nicht viel gefunden, ausser, dass man Einstellungen an der machine.config vornehmen sollte. Die Lösung war dann doch trivialer. Ich habe die wsdl Adresse im Browser aufgerufen. Dort im unteren Bereich die zuständige asmx Adresse gefunden. Die Url der Webservice Referenz überschrieben mit der asmx Url und schon hat es funktioniert. Resultat, wsdl ruft das Schema auf, asmx führt die Methode aus.
- überschreiben der Url heisst, die Klasse, welche ich aufgerufen habe über den Webservice, hatte eine Property mit Url, dort die asmx Adresse eingegeben und anschliessend den Request ausgeführt -
!Immer aufpassen ob es sich um http oder https handelt!

A few days ago, I integrated a third party web-service into my project. Therefore I created a web-reference and added the wsdl address of the web-service. When testing some calls to the methods of this service, I received the following error: " The request failed with HTTP status 405: Method not allowed ". On the internet I just found articles about changes in the machine.config. The solution was more trivial. I looked at the wsdl address in the browser and in the bottom part I found the asmx address for the web-service. I overwrote the property of the web-service reference and it worked. Result, wsdl calls the schema and asmx performs the methods.
- overwriting of the url means, that the class I called through the web-service, had a property called Url, and there I passed the asmx address und after that I performed the request -
!Always check if it is a http or https address!

Montag, 3. Mai 2010

Webservice certificate invalid

Ich hatte folgendes Problem. Beim Aufrufen eines Webservice, bekam ich folgenden Error:
The remote certificate is invalid according to the validation procedure
Dieser besagt, dass das Zertifikat, welches benutzt wird anscheinend nicht gültig ist. Damit man diesen Fehler ignorieren kann, vor dem Aufruf und der Arbeit mit dem Webservice folgenden Code einfügen:
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;

// add this to your code before you make your web service call.
System.Net.ServicePointManager.ServerCertificateValidationCallback +=
delegate(object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors sslError)
{
bool validationResult = true;
return validationResult;
};


I had the following problem. When calling a webservice I received this error:
The remote certificate is invalid according to the validation procedure
This error means, that the certificate of the requested page is not valid. To ignore this error, you have to add the following code, before working and calling with the webservice:
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;

// add this to your code before you make your web service call.
System.Net.ServicePointManager.ServerCertificateValidationCallback +=
delegate(object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors sslError)
{
bool validationResult = true;
return validationResult;
};

Donnerstag, 29. April 2010

Sharepoint 2010 File Share Search does not work

Das Einrichten einer Verzeichnis Suche ist teilweise mit ein paar Hindernissen verbunden. Folgendes sollte beachtet werden, damit es funktioniert:
1. Zuerst auf dem Server ein Verzeichnis erstellen.
2. Anschliessend dort als Share und Security den User mit Read Permission ausstatten, welcher auch im Sharepoint die nötigen Berechtigungen hat.
3. Anschliessend durch mappen des Verzeichnisses mit dem gewählten User testen, ob man direkt Zugriff hat. Wenn nicht, dann stimmen die Berechtigungen nicht.
4. Sollte alles funktionieren, dann diese Server-adresse, welche man zum Mappen benutzt hat in den Crawler in Sharepoint eingeben.

Setting um the file-share-search does have some obsticles sometimes. You should consider the following steps, to make it work:
1. Create a directory on the server.
2. Then set the user (is supposed to be your SP user) you want to have access to as a share and give him in the security tab the read-permissions.
3. Try to map the directory with the user credentials that your Sharepoint would use. If the mapping works, then sharepoint should be able to get to this directory as well. If it did not work, your permissions are not set correctly.
4. Enter the address you used for mapping into the crawler in Sharepoint.

Sharepoint 2010 Crawler

Wenn man beim Einrichten eines Crawlers den Eindruck hat, dass er nicht die komplette Webseite gecrawled hat, dann liegt das vielleicht daran, dass man die Crawl Rule für "Crawl complex URLs (URLs that contain a question mark - ?)" vergessen hat. Hierzu einfach neue Crawl Rule erstellen und als Pfad http://* eingeben. Somit werden auch URLs mit einem Fragezeichen gecrawled.

While setting up a crawler, if you have the impression, that not the complete website has been crawled, then the reason might be, that you have forgotten to set the crawl-rule for "Crawl complex URLs (URLs that contain a question mark - ?)". There for setup a new crawl rule and use the path http://*. Now also URLs with a question mark will be crawled.

Mittwoch, 28. April 2010

Probleme beim local-sites search in Sharepoint - Issues with local-sites search

Wenn es Probleme beim Crawlen der local-site gibt. Folgendes hat mir geholfen.

If you are experiencing problems with the local-site search. This one helped me.

http://svengillis.blogspot.com/2008/10/access-denied-when-crawling-moss.html

Meine Fehlermeldung im crawling-log war/my error in the crawling-log was:
Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a SharePoint repository, verify that the account you are using has "Full Read" permissions on the SharePoint Web Application being crawled. (The item was deleted because it was either not found or the crawler was denied access to it.)