locked
DssEnvironment.Initialize fails when called from XNA game RRS feed

  • Question

  • The following code inserted either in the game constructor or in the override to Game.Initialize fails:

     

    Code Block
    DssEnvironment.Initialize(50000, 50001);

     

     

    Part of the debugger output is as follows:

     

    * DssRuntimeLoader: CreateEnvironment [12/25/2007 05:51:16]

    'CyclopsB.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.Build.Utilities\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

    'CyclopsB.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.Build.Framework\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Framework.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

    'CyclopsB.exe' (Managed): Loaded 'crsssnjx', No symbols loaded.

    'CyclopsB.exe' (Managed): Loaded '2-onbpd5', No symbols loaded.

    'CyclopsB.exe' (Managed): Loaded 'C:\Users\Carlos\Documents\3DExistence\SVN\GPU\CyclopsB\CyclopsB\bin\Microsoft.Cci.dll', No symbols loaded.

    Rebuilding contract directory cache. This will take a few moments ...

    'CyclopsB.exe' (Managed): Loaded '7gnltnmi', No symbols loaded.

    *** Exception during initializeTongue Tiedystem.InvalidOperationException: The contract directory cache file in the store is invalid

    at Microsoft.Dss.Services.Serializer.DataCache.<Initialize>d__6.MoveNext()

    Contract directory cache refresh complete

    *** Exception during initializeTongue Tiedystem.InvalidOperationException: The contract directory cache file in the store is invalid

    at Microsoft.Dss.Services.Serializer.DataCache.<Initialize>d__6.MoveNext()

    *** "TaskExecutionWorker:HandleException": ExceptionTongue Tiedystem.InvalidOperationException: http://schemas.microsoft.com/xw/2005/01/subscriptionmanager.html

    at Microsoft.Dss.Core.DssRuntimeLoader.CreateServiceInternal(Type serviceType, String contract, ServiceInfoType serviceInformation)

    at Microsoft.Dss.Core.DssRuntimeLoader.CreateServiceInternal(Type serviceType, String contract)

    at Microsoft.Dss.Core.DssRuntimeLoader.CreateServiceWithNewPartner(Type serviceType, String contract, Type partnerType, String partnerContract, ServiceInfoType init)

    at Microsoft.Dss.Core.DssRuntimeLoader.<StartCoreServices>d__23.MoveNext()

    at Microsoft.Ccr.Core.TaskExecutionWorker.ExecuteTask(ITask& currentTask, DispatcherQueue p)

    at Microsoft.Ccr.Core.TaskExecutionWorker.ExecutionLoop()

     

    This is in a Windows Vista 64-bit environment in which the game is running as a 32-bit program. Any help in overcoming this obstacle would be most welcome.  Thanks.

     

     

    Tuesday, December 25, 2007 2:16 PM

Answers

  • I have overcome this obstacle.

     

    The problem was that I was missing MSRS files in the bin\ folder. This is the complete list of files that have to be in the project bin\ folder in addition to the project exe file:

     

    • dssenvironment.dll
    • ccr.core.dll
    • ccr.adapters.winforms.dll
    • dssbase.dll
    • dssruntime.dll
    • dssruntime.proxy.dll
    • dssruntime.transform.dll
    • dsshost.exe

     

    The solution to the problem is detailed also in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2344094&SiteID=1

    Tuesday, December 25, 2007 11:58 PM