Posts

Showing posts from October, 2009

Language Names and Codes

Earlier, I've posted a Microsoft link to LCID codes: http://technet.microsoft.com/en-us/library/cc824907.aspx#BKMK_LanguageIDs Ex.: English - "1033" Now, here's a link to language's culture infos for usage in .NET, DNN and others: http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo(VS.95).aspx Ex.: English (US) - "en-US"

DNN5 | Add language to page

Seems easy, but anyway: 1) go to "Admin", "Languages" 2) click on the upper left arrow and select "Install Language Pack" 3) upload and installed a downloaded language extention package 4) select language and click "Edit Language" 5) click "Enable" checkbox and "Update"

SharePoint | Meeting Workspace Site - No occurrences

Social Meeting Sites present me with this beautiful message: "There are no more meeting occurrences to select from." Solution: Turns out to be the masterpage I was applying. Although everything looked perfect, custom masterpages remove additional controls available to social meeting sites, within mwsdefault.master masterpage. Creating a customized masterpage for social meeting sites based on mwsdefault.master, solves the problem. http://erikswenson.blogspot.com/2009/01/sharepoint-meeting-workspace-red-headed.html Thanks to Xue-Mei Chang-MSFT

WSS 3.0 | SpellCheckEntirePage.js file not found

WSS 3.0 Error: Cannot make a cache safe URL for "SpellCheckEntirePage.js", file not found. Please verify that the file exists under the layouts directory. Don't know why it has gone missing but here's the solution: Go to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\ [your_language_LCID] copy SpellCheckEntirePage.js and SpellChecker.js to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\1033

SharePoint Web Part | Am I Editing ?

After (too) much searching, I've found a way to check if I'm at display mode, or the page is being edited at a given moment. Here are a few possible alternatives: My thanks to Avinash .

Powershell | Determine file size

$myfile = "c:\test.zip" $minsize = "100" # minimum file size is set to 100kb if(Test-Path $myfile) # if my file exists { $myfilesize=Get-ChildItem $myfile | Select-Object @{Name="Kbytes";Expression={$_.Length / 1Kb}} #clean unnecessary data $myfilesize=[regex]::replace($myfilesize, "@{Kbytes=", "") $myfilesize=[regex]::replace($myfilesize, ".[\d]*}", "") if($myfilesize -ge $minsize) { #TODO: file is greater or equal than 100kb, do something } }

Powershell | Where Am I? [hostname]

$myhostname=gc env:computername Write-Host "My host name:$myhostname." $myhostname.ToUpper() # make all letters upper case if($myhostname -eq "IIS-SERVER") { #TODO: IF I'M ON SERVER, DO SOMETHING }

Powershell | FTP download/upload client

# UPLOAD file through ftp $filename = "test.zip" $localfile="c:\"+$filename $ftphost="ftp://ftpserver" $ftp_user="username" $ftp_pass="password" $remotefile="/folder/$filename" $URI = $ftphost + $remotefile $credentials=New-Object System.Net.NetworkCredential($ftp_user,$ftp_pass) $ftp=[System.Net.FtpWebRequest]::Create($URI) $ftp.Credentials=$credentials $ftp.UsePassive=0 #active mode, 1 for passive mode $ftp.UseBinary=1 $ftp.KeepAlive=0 $ftp.Method="STOR" #upload method $read = [System.IO.File]::ReadAllBytes($localfile) #read local file contents $responseStream=$ftp.GetRequestStream() $responseStream.Write($read, 0, $read.Length) #upload file $responseStream.Close() $responseStream.Dispose() System.Net.FtpWebRequest http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest_methods.aspx How to upload a file, the PowerShell way, Anders Hesselbom, http://www.winsoft.se/2009/10/how-to-upload-a-file-the-powershell...

SharePoint Features | Debugger and more

Image
Debugging SharePoint features isn't easy. While we are runing a SharePoint site within a browser, several SharePoint processes are running simultaneously. The trick is to find out what specific SharePoint process (w3wp.exe) is being used by the site we are viewing. This way we can attach the process to Visual Studio, add breakpoints to the project and debug the solution. This is an additional feature that allows you to know the specifid PID of the SharePoint process that is running, and also lets you attach it to open solutions. SharePoint Features @ Codeplex Look for Debugger Feature (separate download)

Visual Studio | Clear History

Start, Run, "regedit" Explore HKEY_CURRENT_USER \ Software \ Microsoft \ VisualStudio \ 8 (for 2005) or 9 (for 2008) Delete all entries inside FileMRUList and ProjectMRUList (except "Default") Visual Studio History for opened files and projects will be clean

Upload Multiple Files IE Crash

Image
I have been getting this error after clicking "Upload Multiple Files..." on picture lists in MOSS 2007 So far I haven't found a solution yet but I know this: - The option is only available to IE browsers (specific Internet Explorer feature). - Its not a browser issue, but something regarding Office Instalations and probably Outlook application conflicts. Some claim to have the issue solved by reinstalling office. - If you go to "Upload Picture" instead of "Upload Multiple Pictures", and then, right-click "Upload Multiple Files..." and select "Open in new window", it works like a charm!

Cannot Edit User Info | Editor shows only account field

Image
So you want to update your user info at "My Settings"? SharePoint hides all your fields when you click "Edit" and shows only "Account" name and "Attach" file? a friend sharepointer tells us that in moss, unlike wss 3, you need to go to ssp and change it there and then update active directory http://suguk.org/forums/thread/19254.aspx Go To: SSP -> User profiles and properties --> View User Profiles --> Edit More info here

SharePoint Search | Search Unavailable or No Search Results

Image
1) make sure in run -> "services.msc", that office sharepoint search engine services are running 2) make sure all server services are running 3) make any last configurations / correct any issues http://localhost:adminport/_admin/checkfarmservices.aspx 4) go to shared services for seach configuration 5) configure at least one information repository (site) and activate indexing http://localhost/ssp/admin/_layouts/searchsspsettings.aspx * People Search http://blogs.msdn.com/sharepoint/archive/2006/12/01/getting-started-with-personalization-in-moss-2007.aspx * The search service is currently offline. Visit the Services on Server page in SharePoint Central Administration to verify whether the service is enabled. This might also be because an indexer move is in progress. Try This: - In Central Admin, Stop and Start Office SharePoint Server Search Service - In SSP Admin, go to Search Settings under Search, Click Content Sources and on the context item menu select "Start full...