Advertisements
Feeds:
Posts
Comments

Posts Tagged ‘[MissingWebPart]WebPart class’


Title Missing server side dependencies.

Explanation
[MissingWebPart]WebPart class [8d6034c4-a416-e535-281a-6b714894e1aa] is referenced [1] times inthe database [WSS_Content_Intranet], but is not installed on the current farm.Please install any feature/solution which contains this web part. One or moreweb parts are referenced in the database [WSS_Content_Intranet], but are notinstalled on the current farm. Please install any feature or solution whichcontains these these web parts.

solution

function Run-SQLQuery ($SqlServer, $SqlDatabase, $SqlQuery)
{
$SqlConnection = New-Object System.Data.SqlClient.SqlConnection
$SqlConnection.ConnectionString = “Server =” + $SqlServer + “; Database =” + $SqlDatabase + “; Integrated Security = True”
$SqlCmd = New-Object System.Data.SqlClient.SqlCommand
$SqlCmd.CommandText = $SqlQuery
$SqlCmd.Connection = $SqlConnection
$SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
$SqlAdapter.SelectCommand = $SqlCmd
$DataSet = New-Object System.Data.DataSet
$SqlAdapter.Fill($DataSet)
$SqlConnection.Close()
$DataSet.Tables[0]
}

For this I am going to reuse the Run-SQLQuery PowerShell script that I introduced in my article on MissingSetupFile errors:

Read more »

Advertisements

Read Full Post »

%d bloggers like this: