Posts

Showing posts from July, 2009

SharePoint | Customize List Form

Another great article about javascript code for form "My client wants a Feedback form with ‘Submit’ and ‘Cancel’ buttons and when user clicks on ‘Submit’, validations of form fields should be done and a popup should be displayed with a message ‘Feedback submitted successfully’. " CodeProject http://www.codeproject.com/KB/sharepoint/Custom_List.aspx

SharePoint and PowerShell: Lists

http://blogs.flexnetconsult.co.uk/colinbyrne/2008/02/26/PowerShellSharePointThreeWaysToDeleteAListItemIDCAMLStringMatching.aspx

SharePoint Configuration Wizard on Windows 2008 + SQL 2008 environment | SQL Exception

(Article by Henry Ong) Environment 2 Server farm (1 WFE, 1 SQL) Windows 2008 STD for both (basic configurations) WSS v3 SP2 SQL Server 2008 Scenario After installing the WSS bits, I run the SharePoint Configuration Wizard to create Central Admin. After submitting the database server, name and credential information I get the following error: An exception of type System.Data.SqlClient.SqlException was thrown. Additional exception information: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 – Could not open a connection to SQL Server) System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance na...

SharePoint 3.0/2007 PSconfig error: IIS not installed

Image
Adicionar feature do IIS7 "IIS 6 Metabase Compatibility" Fonte: http://wss.made4the.net/archive/2009/07/21/sharepoint-3-02007-psconfig-error-iis-not-installed.aspx Fonte da fonte: http://www.sharepointblogs.com/wpowell/archive/2008/11/12/moss-windows-server-2008-and-sql-2008-gotcha.aspx

SharePoint 2010 | Espermos que seja (bem) melhor

Image
- Problemas ao apagar ficheiros no SharePoint Designer (mover para pastas antes) - Problemas de seleccionar pastas no SharePoint Designer e ele voltar para trás - Crashes 503 e necessidade de reparação do search ou mesmo reinstalação - Conflitos derivados de pacotes instalados ou em falta - Falta de objectividade nos erros ("File missing!" ou "An error has occurred!") - Imensidão de erros no mínimo "esquesitos" e de resoluções engraçadas no VSeWSS (reiniciar visual studio; desinstalar e reinstalar pacotes; eliminar features em falta com o feature checker) Esperemos ver estes e outros problemas resolvidos nesta próxima versão http://www.codeproject.com/KB/sharepoint/SharePoint_2010.aspx

SharePoint | SP Feature - add and remove files

http://www.akgroup.com/Blogs/Lists/Posts/Post.aspx?List=184bd7d7%2D27ac%2D4790%2D98d5%2D74b3d754ee52&ID=46

SharePoint | No language-neutral solution exists in the store

ERRO: ### 2009-07-17 10:05:31 Error System.InvalidOperationException: No language-neutral solution exists in the store. at Microsoft.SharePoint.Tools.Reflection.ReflectionUtility.InvokeMethod(MethodBase method, Object instance, Object[] parameters) at Microsoft.SharePoint.Tools.SharePointProxies.SPProxy.InvokeGetProperty(String name) at Microsoft.SharePoint.Tools.SharePointProxies.SPSolutionProxy.get_Deployed() at Microsoft.SharePoint.Tools.SharePointProxies.SPSolutionFacade.RetractSolution(String url, Guid id) at VSeWSS.Server.Services.SPService.RetractSolution(String url, Guid id) ### 1. Connect to the MOSS configuration DB SharePoint_Config_9cca3ad9-c881-41be-9aec-ded7e6846be2. The final part of the name of this DB might differ from installation to installation so you might have to open the correct configuration DB on your server. 2. Execute the following simple delete statement and you’re done. For this you need to know the GUID of the solution you nee...

SharePoint Delete Missing Features (Object not referenced error)

Aplicativo "Missing Feature Checker" que remove das bases de dados do site, referências as features que já não existam. NOTA: recomendo backup das bds préviamente (SQL Server Management Studio Express: stop sql server; copy dbs from folder; start sql server) Pasta (normal) das DBs SQL Server 2005: c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data download Missing Feature Checker: http://cid-06457d244696ab3c.skydrive.live.com/self.aspx/WSS/MissingFeature.exe fonte: http://wsswiki.com/Visual_Studio_Extensions_For_WSS_3.0#Object_reference_not_set_to_an_instance_of_an_object Caso tenham de facto este erro: ### 2009-07-17 09:57:47 Error System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.Tools.Reflection.ReflectionUtility.InvokeMethod(MethodBase method, Object instance, Object[] parameters) at Microsoft.SharePoint.Tools.Reflection.ReflectionUtility.InvokeMethod(Type type, String methodName, Object instance, O...

SharePoint Designer | Server Error: masterpage referenced cannot be deleted

server error: this item cannot be deleted because it is still referenced by other pages how stupid is this: -> create new folder "delete" -> mode unwanted masterpages to "delete" folder -> delete folder named "delete" And that's it! Crazy ain't it? http://metahat.blogspot.com/2007/10/server-error-this-item-cannot-be.html

SharePoint | Add Masterpage as Feature

Heather Solomon on fire http://www.heathersolomon.com/blog/articles/servermstpageforsitecollect_feature.aspx

Visual Studio 2008 | Generate GUIDs

Tools -> Macros -> Macros IDE New Module, and inside the module, paste: Sub Create_GUID() DTE.ActiveDocument.Selection.Text = System.Guid.NewGuid().ToString("D").ToUpper() End Sub To assign a keyboard shortcut to enable instant GUID pasting: Tools, Options, "Show All Settings", Keyboard Write "guid" underneath "show commands containing" and search the previously created macro. Press some keyboard keys in "Press shortcut keys" at "Assign" item. http://www.wirwar.com/blog/2007/11/03/generating-guids-in-the-visual-studio-ide

Windows Command Line | Run as Admin

Dentro da linha de comandos, correr um programa como admin: runas /user:Administrator [comando] correr linha de comandos em modo admin: acessorios, command line (botao direito), "run as administrator"

Deploy WebParts as a Feature

http://www.sharepointnutsandbolts.com/2007/05/deploying-web-parts-as-feature.html

SharePoint | Debug SharePoint Receivers

http://www.sharepointnutsandbolts.com/2007/03/how-to-debug-sharepoint-feature.html

SharePoint | Debug SharePoint Receivers

http://www.sharepointnutsandbolts.com/2007/03/how-to-debug-sharepoint-feature.html

SharePoint Solution Installer | Web-Scoped error

"Feature xxxxx is Web-scoped, and can not be added to the Site" Solução: Remover linhas no Setup.exe.config: <add key="FarmFeatureId" value="GUID"/> <add key="FeatureId" value="GUID"/> Probs: A feature não será activada pelo setup, terá que ser activada manualmente. Fonte: http://jritmeijer.spaces.live.com/blog/cns!8A48A27460FB898A!1263.entry SharePoint Solution Installer http://www.codeplex.com/sharepointinstaller SharePoint Solution Installer Download v1.2 http://sharepointinstaller.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=29075

SharePoint SPThemeReceiver Dynamic Feature

Mais um grande post sobre implementações the features com atribuição dinâmica de nomes. Must-have http://www.grahamzero.com/thoughtfactory/2007/06/automatically_a.html

SharePoint CRASH | 503 Service Unnavailable

All your SharePoint Sites (Central Admin included) are 503 error crashing? - This may have happened because of conflicting features and other server changes. - You also probably moved your notebook to another location, or changed your connection do Internet/Network. As a result, SharePoint will not recognize the previously configured address at C:\windows\system32\drivers\etc\hosts file If you just add [Active_Network_IP] [Your_computer_name] to the hosts file, it is very likely that you have your problem solved. If not, follow these steps: 1) C:\windows\system32\drivers\etc File: "hosts" Delete line: your_ip your_pc # Added by Office SharePoint Server Search (your_date your_time). 2) Start, Run, "Services.msc" Stop and Start: - Windows SharePoint Services Search - Office SharePoint Server Search 3) (I think this one is optional, you can try skipping it) Control Panel, Network devices, Network Device (lan, wan) Desactivate IP v6 (checkbox) 4) Start, Run, "inetm...

Como apagar pastas escondidas em powershell

Get-ChildItem C:\Pasta_Base -Include '.svn' -Recurse -Force | ?{$_.PSIsContainer} | %{Remove-Item $_ -Recurse -Force} http://www.fpschultze.de/smartfaq+faq.faqid+269.htm

Powershell Coders

grandes capacidades do powershell http://www.johndcook.com/PowerShellCookbook.html#a19

Import & Export IIS Configuration (App pools & sites)

exportar tudo para backups! http://www.phishthis.com/2008/05/27/how-to-export-your-iis-config-from-one-box-and-import-on-another http://thebackroomtech.com/2009/03/05/howto-export-iis-70-web-server-configuration