Infosys Microsoft Alliance and Solutions blog

« Problem in Debugging .NET Reflection Code | Main | ASP.NET MVC eBook Tutorial released »

Oslo Repository creation not successful?

A couple of weeks back I was trying to set up the Olso SDK (January 2009 CTP) on my system when I met with this problem. What was the problem? The problem was that whenever the setup tried to install the Repository database, it failed. The error message that I saw on the console didn’t help me much, neither did the entry in the RepositorySetup.log in the temp folder. Something which was very evident while going through the setup was that Repository setup GUI only supported creating a repository database on the default instance on the current machine. Another restriction is that the Oslo repository database can only be created on the 2008 version of SQL Server. Now the resolution to this problem was to do the setup by running the CreateRepository.exe by specifying the correct instance name of the SQL Server 2008 on our machine using /s switch.

The problem, cause and the resolution is given below:

Problem:

Oslo Repository creation not successful.

The RepositorySetup.log in temp folder says:
[2/19/2009 - 9:1:59]Start execution of: "C:\Program Files\Microsoft Repository\CreateRepository.exe" /s:. /v+
Microsoft (R) code name "Oslo" Repository Creation Tool version 3.0.1619.5
Copyright (c) Microsoft Corporation. All rights reserved.
Message: Creating repository database ...
Cannot assign a default value to a local variable.
Must declare the scalar variable "@login".
[2/19/2009 - 9:2:0]Completed execution of: "C:\Program Files\Microsoft Repository\CreateRepository.exe" /s:. /v+

Cause:

  • The Repository setup GUI only supports creating a repository database on the default instance on the current machine.
  • A Repository database can only be created on the 2008 version of SQL Server.

Resolution:

Run the CreateRepository.exe by specifying the actual instance using the /s switch.

D:\MS Oslo\My Samples\GeeksModel>"C:\Program Files\Microsoft Repository\CreateRe
pository.exe" /s:<MachineName>\<DBInstanceName> /v+
Microsoft (R) code name "Oslo" Repository Creation Tool version 3.0.1619.5
Copyright (c) Microsoft Corporation. All rights reserved.

Message: Creating repository database ...
Created repository database Repository on SQL Instance :<MachineName>\<DBInstanceName>
Message: Repository database statistics:
Message: Repository Status: Status=ONLINE, Updateability=READ_WRITE, UserAccess=
MULTI_USER, Recovery=SIMPLE, Version=655, Collation=Latin1_General_CI_AS, SQLSor
tOrder=0, IsAnsiNullsEnabled, IsArithmeticAbortEnabled, IsAutoCreateStatistics,
IsAutoUpdateStatistics, IsFullTextEnabled, IsLocalCursorsDefault
Message: Repository Size:    2048.00 MB
Message: Repository Owner: sa
Message: Repository Created: Feb 19 2009

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Please key in the two words you see in the box to validate your identity as an authentic user and reduce spam.

Subscribe to this blog's feed

Follow us on

Blogger Profiles

Infosys on Twitter