test

December 11th, 2011

Failed to start the database service MSSQL$Microsoft##SSEE

November 3rd, 2009

If you have problem connecting to MSSQL$Microsoft##SSEE instance after installing SharePoint Services 3.0, check if Windows Internal Database (Microsoft##SSEE) is really installed (should be in services list and Add/remove programs).

If its not installed try this:

  1. Run regedit,
  2. Go to HKLM/Software/Microsoft/Shared Tools/Web Server Extensions/12.0/WSS/ServerRole,
  3. Change SINGLESERVER value to WFE,
  4. Run SharePoint Products and Technologies Configuration Wizard again,
  5. All should work now.

References:

Tools

Creating SharePoint (Services) 2007 Workflows using VS2008 x64

October 21st, 2009

If you are trying to create Sharepoint 2007 Workflow project and receiving error message:

A 32-bit version of SharePoint Server is not installed. Please install a 32-bit version of SharePoint Server” then try this solution.

  1. Install the following:
    • Visual Studio Extensions for SharePoint ver 1.2 or  ver 1.3 – this addin provides developers with support for building workflow-enabled applications using Windows Workflow Foundation. Compatible with the released versions of the 2007 Microsoft Office system, Microsoft Windows Vista, and the .NET Framework 3.0 Runtime Components
  2. Create a new Workflow project with STSDEV or create template Workflow project by yourself according to this tutorial.

References:

  1. sharepointbuzz
  2. stackoverflow
  3. blah!blah!BLOG!!

Development , , , ,

SharePoint Services – Alerts aren’t working

March 3rd, 2009

When a user installs an alert she receives an email “You have successfully created an alert for …” but alerts aren’t being sent from SharePoint.

Solution:

run stsadm.exe:

stsadm.exe -o setproperty -url http://mywss30server/mysite -pn alerts-enabled -pv true
stsadm.exe -o setproperty -url http://mywss30server/mysite -pn job-immediate-alerts -pv "every 5 minutes"
Resources:

Tools ,

Installing FitNesse as service

February 10th, 2009
Requirements
  1. A Java runtime – needed to run FitNesse .
  2. The srvany.exe and instsrv.exe from the Windows 2003 Resource Kit.
  3. An account on the machine that has Log On As Service rights and full rights to the directory where FitNesse runs and keeps its files.
  4. The .NET Redist if you want to use the .NET version of the FitNesse server.
  5. An account with access to the machine to install it on and sufficient rights to do that – this usually means local administrator rights.
Installing FitNesse as service
  1. Install FitNesse :)
  2. Install Java
  3. In FitNesse root folder find start.bat theres something like this:
    java -cp fitnesse.jar fitnesse.FitNesse -p 8080

    where -p is port number. You should start it and check if under http://localhost:8080 runs your installed FitNesse.

  4. Install Windows Resource Kit (or srvany.exe and instsrv.exe only)
  5. Install new service:
    instsrv.exe FitNesse "<path to the srvany.exe file>\srvany.exe" -a AcoountName -p AccountPassword
  6. Add AccountName account required rights (modify) to FitNesse folder
  7. Create file FitNesseAsService.reg:
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\FitNesse\Parameters]
    "Application"="C:\\Program Files (x86)\\Java\\jre6\\bin\\java.exe"
    "AppDirectory"="<path to the FitNesse folder>\\FitNesse"
    "AppParameters"="-cp fitnesse.jar fitnesse.FitNesse -p 8080"

    and run it. This will add required keys to the registry.

  8. And thats it. If you want to remove FitNesse service, run this:
    instsrv FitNesse REMOVE
  9. You can uninstall Windows Resource Kit (save instsrv and srvany if you want).
Source

http://fitnesse.org/InstallingFitNesseAsaService

Development, Tools , ,

Usability: toolbox

February 3rd, 2009

Spis narzędzi przydatnych przy projektowaniu stron www i nie tylko: http://ui.blox.pl

Development, Tools

Dynamiczne podpinanie zdarzeń w jQuery

January 23rd, 2009

Po przeładowaniu strony, zdarzenia w jQuery nie zawsze się podpinają. Trzeba to zrobić tak:

// Podpięcie zdarzeń po postbacku:
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(bindEvents);
 
// Po załadowaniu się strony.
$(document).ready(bindEvents);
 
// Podpięcie zdarzeń.
function bindEvents()
{
	// kliknięcie na tabeli:
	$("table#tableElements").click(clickOnTable);
}

Obsłużenie zdarzeń po np. kliknięciu na dynamicznie dodane nowe elementy:

// Ustawiam zdarzenia na tabeli. I wtedy nieważne czy się dodało dynamicznie nowe elementy.
function clickOnTable(event)
{
	var target = $(event.target);
 
	if (target.is('a.lnkEditMenu')) return clickEditMenu(target);
	if (target.is('a.lnkDeleteElement')) return deleteElement(target);
	if (target.is('a.lnkEditElement')) return editNoteElement(target);
};

źródło: part 1, part 2

Development ,

How to back up/convert your VSS data to SVN

January 21st, 2009

Whole process looks very simple: grab VSS, produce text file, run SVN and consume produced file.

  1. Download and install (unpack) vss2svn
  2. Run vss2svn.exe
    vss2svn.exe --vssdir \\vss\repository\path
  3. That will produce
    vss2svn-dumpfile.txt

    file which will be consume by svnadmin

  4. [Optional]: compress and send vss2svn-dumpfile.txt file. I’m using 7-zip:
    "{PathTo7-Zip}\7-Zip\7z.exe" a "%DATE% vss2svn-dumpfile.7z" "vss2svn-dumpfile.txt" -t7z -mx9 -aoa
  5. Run svnadmin, use vss2svn-dumpfile.txt
    "{PathToSVN Server}\VisualSVN Server\bin\svnadmin" load "E:\SVN Repositories\BackupVSS" < "vss2svn-dumpfile.txt"
  6. And thats it.

Whole script might look like this:

E:
CD E:\Vss2Svn\
vss2svn.exe --vssdir \\vss\repository\path
 
:: ### Optional compression, you might do this if you want send file somewhere else ###
"C:\Program Files (x86)\7-Zip\7z.exe" a "%DATE% vss2svn-dumpfile.7z" "vss2svn-dumpfile.txt" -t7z -mx9 -aoa
 
:: ### SVNAdmin ###
"C:\Program Files (x86)\VisualSVN Server\bin\svnadmin" load "E:\SVN Repositories\BackupVSS" < "vss2svn-dumpfile.txt"

Tools , , , ,

HTML encoding in JavaScript

January 15th, 2009

This little function converts HTML characters (for example brackets < >) to entities (like &lt; &gt;).

function escapeHTMLEncode(str)
{
	var div = document.createElement('div');
	var text = document.createTextNode(str);
	div.appendChild(text);
	return div.innerHTML;
}

Source: http://sanzon.wordpress.com

Development ,

Hitting the backbutton in the browser causes the fckeditor to display the HTML tags

January 13th, 2009

Add following code to file: FCKEditor\editor\fckeditor.html

window.onload = function()
{
  // 25-11-2008 Han:  Fixing the issue with the backbutton, when the back/forward button is hit then the html to display is
  // still HTMLEncoded which will cause the control to display html control sequences in the editor.
  // The easiest solution is probably to always htmldecode the value before it is beaing displayed in the editor, this can be done
  // using the statement below.
  // FCK.LinkedField.value=FCKTools.HTMLDecode(FCK.LinkedField.value);
 
  FCK.LinkedField.value=FCKTools.HTMLDecode(FCK.LinkedField.value); // THIS LINE
 
  InitializeAPI(); // existing code line
  .......
}

After adding the code line you will have to make sure that the javascript is downloaded to the client, so in your browser delete the local files ( tools->internet options->delete files).

And then it should all work as expected.

Source: FCKEditor forum

Development , ,