Posts

Showing posts from October, 2011

Reflection | Get Assembly's GUID for Current DLL Build

Image
Problem: Get the Hash/Guid (unique value) of the running assembly, in runtime. Solution: string myguid = Assembly.GetExecutingAssembly().GetModule("MyAssembly.dll").ModuleVersionId.ToString(); Result: 143afb59-6b87-4e8b-a187-74b57fdd3b5d

Windows SharePoint Services | Search Corrupt

Problem: WSS Search Corrupt: "Não foi possível inicializar o índice de conteúdos em Search. Erro O índice de conteúdos está danificado. 0xc0041800.Componente: a6aee81d-3681-4f22-bf00-a182c5625f4f" or "The search index is currupted" Solution: Make a full crawl, erasing the current Search DB - Open C.A., services on server, stop Search Helper Service - Start (services.msc) Search Service on the Server - Open Search Management (click Search Helper on the C.A.'s Operations) - Chose a New Search DB name - Start the Search Helper Service http://support.microsoft.com/kb/943605

PowerShell | The PowerShell Song

function Out-Text { param( [Parameter(Mandatory=$true)] $Text, [switch] $Drunk ) $object = New-Object -ComObject SAPI.SpVoice if ($drunk) { $object.Rate = -10 } $object.Speak($text) | Out-Null } Out-text "hi tiago duarte. how are you?" Check out more cool tips from PowerShell Power Tips