Archiv der Kategorie: Development

Update missing on SharePoint 2010

Hi,

in a current project i had the problem, the Central Administration tells me „Product / patch installation or server upgrade required.“ within the health analyzer. So, no worries, download the patches, install them and….heeww, they are already installed….ok, then we will run through the wizard. Wizard told me, that there is a patch missing or reqiured. I tried the psconfig with the same result.

Next try: Verify, that the SharePoint Patch Status shows the same (using URL http://<Centraladministrationurl>/_admin/PatchStatus.aspx), it looks like this:

Ok, looks like a bad thing.

Solution:
There is a parameter for using psconfig for skipping installation check in front of running. After that, sharepoint feels very comfortable and is ready for work.
To do so, use the following command:

psconfig -cmd upgrade -inplace b2b -force -cmd -installcheck -noinstallcheck

ATTENTION: As normal, some services will be unavailable or restartet during psconfig, so please make sure, you are out of busines hours!

Have fun,
Ingo

Advertisements

different WepApplications in one AppPool

Hi,

currently i am installing SharePoint and we would like to handle more than one WebApplication within one ApplicationPool.

This is an easy task using the Gui, but we will use the PowerShell to do so.

The general PowerShell cmdlet ist as follows:
New-SPWebApplication -ApplicationPool <String> -Name <String> [-AdditionalClaimProvider <SPClaimProviderPipeBind[]>] [-AllowAnonymousAccess <SwitchParameter>] [-ApplicationPoolAccount <SPProcessAccountPipeBind>] [-AssignmentCollection <SPAssignmentCollection>] [-AuthenticationMethod <String>] [-AuthenticationProvider <SPAuthenticationProviderPipeBind[]>] [-Confirm [<SwitchParameter>]] [-DatabaseCredentials <PSCredential>] [-DatabaseName <String>] [-DatabaseServer <String>] [-HostHeader <String>] [-Path <String>] [-Port <UInt32>] [-SecureSocketsLayer <SwitchParameter>] [-ServiceApplicationProxyGroup <SPServiceApplicationProxyGroupPipeBind>] [-SignInRedirectProvider <SPTrustedIdentityTokenIssuerPipeBind>] [-SignInRedirectURL <String>] [-Url <String>] [-WhatIf [<SwitchParameter>]]
All Switches are documented here: http://technet.microsoft.com/de-de/library/ff607931.aspx
In case, that you would like to install more than one WebApplication in one ApplicationPool you have to skip the switch and value for „ApplicatioPoolAccount“.

Thats it, sometimes things are easy 🙂

Ingo


Eventid 8031 visible every 15 minutes

Hi,

i had a problem at customer environment, which is caused by whatever 🙂
Ihave done many investigation and found at least a solution for this damn error message.

But let me say some words to the message i got.
First of all the message itself:
#############################################################
An exception occurred while updating addresses for connected app
{83f13686-3390-453c-9753-4b5d2726a3e0_45636645-c9c7-41d7-8e25-5f29e6cbed7c}.
The uri endpoint information may be stale. System.InvalidOperationException:
The requested application could not be found.
at Microsoft.SharePoint.SPTopologyWebServiceApplicationProxy.ProcessCommonExceptions(Uri endpointAddress, String operationName, Exception ex, SPServiceLoadBalancerContext context)
at Microsoft.SharePoint.SPTopologyWebServiceApplicationProxy.ExecuteOnChannel(String operationName, CodeBlock codeBlock)
at Microsoft.SharePoint.SPTopologyWebServiceApplicationProxy.GetEndPoints(Guid serviceId)
at Microsoft.SharePoint.SPConnectedServiceApplicationAddressesRefreshJob.Execute(Guid targetInstanceId)
###############################################################

Unfortunately there is no hint for, where to have a look or what is the source of this endpoint he is looking for (except that it is a webservice).
Aftere many times of research i found a webpage, where some users are also facing to nearly the same issue (here/ Entry added by Lance Davis AZ).

First, he prefered to do a query to SQL – SharePoint config_db like this, where YOURID will taken place by the id shown in your eventlog:

SELECT ID, Properties FROM [Objects] WHERE [Name] LIKE ‚%YOURID%‘

As next step you should use an undocumented switch within stsadm (which is still available in SharePoint 2010, YEAH), where ColumnID will be replace by the ID in the result pane in SQL:

STSADM -o deleteconfigurationobject -id <ColumnID>

Thats it!
In my case there is no need to perform a IISRESET, so it is possible to do this at runtime!
Have fun,
Ingo


Stsadm extrem slow…also on 2010

Hey Folks,

The last few days I was facing a very strange thing. A Customer environment was extremely slow and we are not sure about the reason. First we found several faulty Firewall rules, after that some other things within OS-Config, but nothing was the source of braking down the performance of any Powershell-cmdlet and also stsadm.

The Reason: SharePointfarm was installed within a DMZ behind a firewall. SharePoint had no access to internet, also no connection to http://crl.microsoft.com/pki/crl/products/CodeSignPCA.crl SharePoint 2010 needs access to at least this file to make sure, all CertificateRevocationLists are up to date. In case, no access to the internet could be granted, there are some possible ways. I have done only step 1 until now (with success :-] ), so no warranty to the other one (not checked yet):

  1. Disable the CRL check by modifying the registry for all user accounts that use STSADM and all service accounts used by SharePoint. Find yourself a group policy wizard to help you out or manually modify the registry:

    [HKEY_USERS\<userid>\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing]
    „State“=dword:00023e00

    To get the userid you can use any kind of LDAP-Browser or ADSI-Editor

    Works perfect for me, but is also a possible point of failure, if a certificate is not more valid.

     

  2. Allow your servers to directly connect to crl.microsoft.com. If your environment dictates the use of a proxy server, configure it using proxycfg. We all know, that this is the most recommended way!

     

  3. Add crl.microsoft.com to your hosts file and point it to your local machine. Some people have reported success with this, but it didn’t tested it yet.

     

  4. Download the CRLs and add them to the server manually (I haven’t tested this, but it may work):

Check out this in your environment, if you are facing some similar problems.

CU, Ingo


First Blog

Hi,
sometimes customers want solutions, which are easy to create and deploy…in mind. 🙂
Something like this is to display the Version-number within a Word-Doc. In MOSS2007 it was a high sophisticated action to display the version number.

Now, a customer asked me for that using SP2010. After my experience using 2007 I was warned. Now, after a short time of research I found an helpful article at the blog of Ola, a Swedish SharePointer. This describes the „how to“ I an easy way.
Also some Screenshots are available. Please refer to his article:

http://www.grauers.net/archive/2010/11/23/version-number-in-word-document-header-sharepoint-2010.aspx

Thanks, Ola

Bye, Ingo