DCSIMG
March 2012 - Posts - KMoraz's Sandbox

March 2012 - Posts

No Silverlight project specified for Silverlight output

When building a mixed solution with C# 4.0 and Silverlight projects, the following error may mislead you to believe something is wrong with the Silverlight project:

MSBUILD : error : Copying file C:\Dev\Sources\MyProject\MyProject.Web\debug\bin\MyProject.xap failed. No Silverlight project specified for Silverlight output

In fact, what the error means is that the building of a XAP file cannot be done since there are no assemblies in the given output folder.

The solution, is changing the Output path in the Silverlight project properties under the Build tab to the main web project instead of “\bin\Debug” and \bin\Release”.

Alternatively you can edit the Silverlight’s .csproj file under both Release and Debug property groups. I.e.:

<OutputPath>..\MyProject.Web\ClientBin\</OutputPath>

Visual Studio 2010 Error On Source Control Explorer

Today I've encountered a strange error when opening the Source Control Explorer:

Team Foundation Error

Method not found: 'Boolean Microsoft.TeamFoundation.VersionControl.Client.Workspace.OwnerNameMatches(System.String)'.

TeamExplorer_With_VS2010

That denied any use of the source control.

I’ve tried re-applying Visual Studio 2010 SP1 and TFS 2010 SP1 but to no avail.

Eventually, only after a complete uninstallation and reinstallation of Visual Studio 2010 SP1 the error has gone. Hmmpf.

TFS 2010 Server Domain and Database Move – Command Summary

cd "%PROGRAMFILES%\Microsoft Team Foundation Server 2010\Tools"

:::::: BRING TFS OFFLINE
TfsServiceControl quiesce
iisreset /stop

:::::: CONFIG DATABASE
TFSConfig PrepSQL /sqlinstance:tfs
TFSConfig RemapDBs /DatabaseName:tfs;Tfs_configuration /SQLInstances:tfs /continue
:: run again for verification:
TFSConfig RemapDBs /DatabaseName:tfs;Tfs_configuration /SQLInstances:tfs /continue

:::::: CONFIG PERMISSIONS
TFSConfig Accounts /ResetOwner /SQLInstance:tfs /DatabaseName:TFS_Configuration
TFSConfig Accounts /add /AccountType:ApplicationTier /account:NEWTFS\TFSAdmin /SQLInstance:tfs /DatabaseName:TFS_Configuration
TFSConfig Accounts /add /AccountType:ReportingDataSource /account:NEWTFS\TFSAdmin /SQLInstance:tfs /DatabaseName:TFS_Configuration
TFSConfig Accounts /add /AccountType:ApplicationTier /account:NEWTFS\TFSService$ /SQLInstance:tfs /DatabaseName:TFS_Configuration
TFSConfig Accounts /add /AccountType:ReportingDataSource /account:NEWTFS\TFSReports$ /SQLInstance:tfs /DatabaseName:TFS_Configuration
:: Optional - register DB instance:
:: TFSConfig RegisterDb /sqlInstance:tfs /databaseName:Tfs_Configuration

:::::: CHANGE DOMAIN
TFSConfig identities /change /fromdomain:TFS /todomain:NEWTFS
TFSConfig Accounts /change /AccountType:ApplicationTier /account:TFSService$ /password:******
TfsSecurity.exe /server:https://tfs/tfs /im n:NEWTFS\TFSAdmin

:::::: REPORTING SERVER
:: Check that only current server is listed:
RSKeyMgmt.exe -l
:: Optional – encrypt key for SSRS:
:: rsconfig -c -sTFS -dTFS -awindows -uNEWTFS\TFSReports$
:: Remove old entry:
RSKeyMgmt.exe -r 7f46c503-1aba-48bd-a731-f3440077fb32
:: Test SSRS datasource:
http://localhost/Reports/Pages/DataSource.aspx?ItemPath=%2fTfs2010ReportDS

::::::PURGE VERISON CONTROL CACHE (http://support.microsoft.com/?kbid=2025763)
del "%PROGRAMFILES%\Microsoft Team Foundation Server 2010\Application Tier\Web Services\_tfs_data\%tfsInstanceGuid%\Proxy"

::::::BRING BACK ONLINE
iisreset /start

Posted by kmoraz | with no comments