Wednesday, August 25, 2010

Self-hosted WCF service with SSL certificate security

Spent the whole day trying to force my self-hosted service to respond.

Finally what has helped is two lines below to execute (port, certhash, path and user name are up to you. Not sure about appid yet :-) ):

netsh http add urlacl url=httpS://+:2202/PatientService user=DOMAIN\user

netsh http add sslcert ipport= certhash=ea81a9b4c330247f966d23d7e21266171f92cd47 appid={4EF5AB95-0A11-43b1-842C-51D56687CC7A}

Now need to understand - WHY??

Thursday, July 08, 2010

Trying Word 2010

See how to post directly from Word

Tuesday, April 20, 2010

SQL Server 2008 setup: Error "Restart Computer Failed"

When trying to install SQL Server 2008 I found that it requires me to restart computer even after I did it two times.
It was really bad.

However, there are kind people around!
Especially here:
So the reason was in pending after-reboot file copying requested (and never performed)

I believe this might cause some mistakes if you really have pending files, so make sure to reboot first.

Thursday, February 04, 2010

Needed to script the MS SQL database including data.

Strangely :-), but Microsoft did it well:

Visual Studio 2008 also have such tool built in.

(However I am not sure about complex databases (like encrypted) yet...)

Friday, January 22, 2010

how can I set the authentication mode for a SQLServer from code?

HKLM\Software\Microsoft\Microsoft SQL Server\\MSSQLServer\LoginMode
1 = integrated only, 2-mixed

For you will need to use MSSQL.n, where n relates to the instance you are interested in. You can find the right value by looking at HKLM\Software\Microsoft\Microsoft SQL Server\Instance Names\SQLame, and looking for the value that matches your instance name. SQL Express has an instance name of SQLEXPRESS, and the default SQL 2005 instance has a name of MSSQLSERVER. (on my box ...\Instance Names\SQL\SQLEXPRESS has a value of MSSQL.4)

From here:

Thursday, January 21, 2010

Good explanation of what "Company culture" really is