Unable to open Assignment Lesson - solitaire

Topics: Developer Forum, User Forum
May 18, 2007 at 9:23 PM
Mon at 12:07 PM Reply

We have Windows Sharepoint Service 3.0 x64 running and have installed SLK. We've configured the SLK without re-compiling it onto a site with a Instructor and Learner user and inserted the assignment web part onto a sharepoint site. All seemed to be going okay. We have uploaded the solitaire.zip assingment into a documents folder. We are able to assign it to 'learner' user. The problem is that once the Learner accepts and begins the Assignment - in this case the Solitaire 'Lesson' The solitaire.zip opens up as a zip file 'folder'. Do we need to re-compile the Lesson or SLK or both?
May 21, 2007 at 11:04 AM
Hi dhollas,

You are right about re-compiling SLK to get this working. The current release does not support 64-bit platforms. You therefore need to download the latest source code (download latest changeset from the 'Source Code' tab) and compile it on your x64 platform (compile by running 'nmake TARGETARCH=x64' or 'fmake TARGETARCH=x64' in the root folder).

Starting with the next release we will always have two sets of releases, one for each platform.
May 21, 2007 at 9:16 PM
Hi VandanaPonnuru

Thanks for the reply. I have attempted to compile the source code into a release x64 without success. I had used the fmake Target_Arch=x64 rel. The compile seems to error on the src\schema compile. NMAKE : fatal error U1077: 'cd' : return code '0x1'.

Any suggestions would be appreciated



E:\My Downloads\Sharepoint Learning Kit\Source Code\SLK-20321>fmake TARGET_ARCH=
x64 rel

E:\My Downloads\Sharepoint Learning Kit\Source Code\SLK-20321>rem Copyright (c)
Microsoft Corporation. All rights reserved.

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.


-----------------------------------------------------------------
Building Release configuration of Src\SchemaCompiler
-----------------------------------------------------------------
cd Src\SchemaCompiler
"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /nol
ogo rel TARGET_ARCH=x64
devenv SchemaCompiler.sln /build Release

Microsoft (R) Visual Studio Version 8.0.50727.42.
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
------ Build started: Project: SchemaCompiler, Configuration: Release Any CPU --
----
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,170
2 /errorreport:prompt /warn:4 /define:TRACE /reference:C:\WINDOWS\Microsoft.NET\
Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framewo
rk\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.5072
7\System.Web.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System
.Xml.dll /debug+ /debug:pdbonly /delaysign+ /keyfile:SlkPublicKey.snk /optimize+
/out:obj\Release\SchemaCompiler.exe /resource:obj\Release\SchemaCompiler.Proper
ties.Resources.resources /resource:obj\Release\SchemaCompiler.BaseSchema.xml /re
source:obj\Release\SchemaCompiler.Schema.xsd /target:exe ..\Shared\SharedAssembl
yInfo.cs ..\Shared\Version.cs HelperFile.cs Program.cs Properties\AssemblyInfo.c
s Properties\Resources.Designer.cs SchemaInfo.cs SchemaTypes.cs SqlInitFile.cs U
til.cs

Compile complete -- 0 errors, 0 warnings
SchemaCompiler -> E:\My Downloads\Sharepoint Learning Kit\Source Code\SLK-20321\
Src\SchemaCompiler\bin\Release\SchemaCompiler.exe
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
devenv SchemaCompiler.sln /build Debug

Microsoft (R) Visual Studio Version 8.0.50727.42.
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
------ Build started: Project: SchemaCompiler, Configuration: Debug Any CPU ----
--
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,170
2 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:C:\WINDOWS\Microsof
t.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\F
ramework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.
0.50727\System.Web.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\
System.Xml.dll /debug+ /debug:full /delaysign+ /keyfile:SlkPublicKey.snk /optimi
ze- /out:obj\Debug\SchemaCompiler.exe /resource:obj\Debug\SchemaCompiler.Propert
ies.Resources.resources /resource:obj\Debug\SchemaCompiler.BaseSchema.xml /resou
rce:obj\Debug\SchemaCompiler.Schema.xsd /target:exe ..\Shared\SharedAssemblyInfo
.cs ..\Shared\Version.cs HelperFile.cs Program.cs Properties\AssemblyInfo.cs Pro
perties\Resources.Designer.cs SchemaInfo.cs SchemaTypes.cs SqlInitFile.cs Util.c
s

Compile complete -- 0 errors, 0 warnings
SchemaCompiler -> E:\My Downloads\Sharepoint Learning Kit\Source Code\SLK-20321\
Src\SchemaCompiler\bin\Debug\SchemaCompiler.exe
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
cd E:\My Downloads\Sharepoint Learning Kit\Source Code\SLK-20321

-----------------------------------------------------------------
Building Release configuration of Src\Schema
-----------------------------------------------------------------
cd Src\Schema
NMAKE : fatal error U1077: 'cd' : return code '0x1'
Stop.

Build completed in: 0:10

__________ Error Summary __________

NMAKE : fatal error U1077: 'cd' : return code '0x1'
___________________________________
--
"Mention TARGET_ARCH=<input architecture> as the first parameter"
"Example: fmake TARGET_ARCH=x64 rel"
--

E:\My Downloads\Sharepoint Learning Kit\Source Code\SLK-20321>
May 22, 2007 at 7:58 AM

The first time SLK is compiled on a box, strong name verification should be disabled. Look at the following workitem which describes a similar problem, Unable to build LearningComponents and the solution to get it working.


May 26, 2007 at 9:14 PM

VandanaPonnuru wrote:

The first time SLK is compiled on a box, strong name verification should be disabled. Look at the following workitem which describes a similar problem, Unable to build LearningComponents and the solution to get it working.




Hi VandanaPonnuru
Thanks for the reply. The "Unable to build LearningComponents" link was helpful. We have followed the instructions without success. These are the actions we've taken in an attempt to solve the compiling errors. We modified the make file in the Compression solution by comment-out the Unit Test. We have run and checked the results of SkipVerification.bat using sn -Vl The sn -Vl reports Assembly/Strong Name *,abc4ed181d6d6a94 with All users. Additionally, We have attempted to solve any wssadmin.exe cache issue by using the net stop and start of the "Windows SharePoint Services Administration" without success. We've restarted the system and rerun the nmake TARGET_ARCH=1 without success.

We have run the Gac.bat which reports;

Microsoft Windows Version 5.2.3790
(C) Copyright 1985-2003 Microsoft Corp.


C:\dev\SLK>gac.bat
Failure adding assembly to the cache: The system cannot find the file specified.
Failure adding assembly to the cache: The system cannot find the file specified.
Failure adding assembly to the cache: The system cannot find the file specified.
Failure adding assembly to the cache: The system cannot find the file specified.
Failure adding assembly to the cache: The system cannot find the file specified.
Failure adding assembly to the cache: The system cannot find the file specified.
List of MLC and SLK DLLs in the Global Assembly Cache:
Microsoft.LearningComponents.Compression, Version=1.0.0.0, Culture=neutral, PublicKeyToken=abc4ed181d6d6a94, processorArchitecture=x86
Microsoft.LearningComponents, Version=1.0.799.0, Culture=neutral, PublicKeyToken=abc4ed181d6d6a94, processorArchitecture=MSIL
Microsoft.LearningComponents.SharePoint, Version=1.0.799.0, Culture=neutral, PublicKeyToken=abc4ed181d6d6a94, processorArchitecture=MSIL
Microsoft.LearningComponents.Storage, Version=1.0.799.0, Culture=neutral, PublicKeyToken=abc4ed181d6d6a94, processorArchitecture=MSIL
Microsoft.SharePointLearningKit, Version=1.0.0.0, Culture=neutral, PublicKeyToken=abc4ed181d6d6a94, processorArchitecture=MSIL
Restarting IIS...

Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted

C:\dev\SLK>

Should we attempt to remove these items from the GAC?

Any suggestion would be appreciated.

May 28, 2007 at 11:12 AM

It looks like the build has not succeeded. Please make sure that no errors are reported during the build process. A small correction in what you mentioned above - If you are building for a 64-bit architecture the command to use is 'nmake TARGET_ARCH=x64'.

May 29, 2007 at 6:05 AM
Thank for your reply VandanaPonnuru. We have been partial successful with a build. We have removed the SlkPublicKey.snk from within the SchemaCompiler project and the build executed much further along. This is the point where the build presently errors.

------ Build started: Project: SlkDll, Configuration: Debug Any CPU ------
SlkDll -> C:\dev\Slk\Dll\bin\Debug\Microsoft.SharePointLearningKit.dll
gacutil -i C:\dev\Slk\Dll\bin\Debug\Microsoft.SharePointLearningKit.dll
Microsoft (R) .NET Global Assembly Cache Utility. Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.

Assembly successfully added to the cache
========== Build: 4 succeeded or up-to-date, 0 failed, 0 skipped ==========
cd C:\dev\Slk
cd Solution
"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /nol
ogo deb
rmdir /s /q Build 2> nul
mkdir Build
copy ..\..\Src\Compression\MRCI\bin\Debug\Microsoft.LearningComponents.M
RCI.dll Build
The system cannot find the path specified.
NMAKE : fatal error U1077: 'copy' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC
\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC
\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\dev>


This item appears during compiling the MCRI and is the only warning we've noticed -1>.\MRCI.cpp(445) : warning C4018: '<' : signed/unsigned mismatch

Any suggestions would be appreciated.

Jun 10, 2007 at 8:02 PM
Hi VandanaPonnuru. Thanks for you support on this thread. We have had further process in the x64 build by using the nmake TARGET_ARCH=1 option. The following are the reported errors.

Any comments or suggestions would be appreciated

Validating Web Site
C:\dev\Slk\Samples\ReportPages\TestBuild\Web.Config(27): Build (web): Could not
load file or assembly 'Microsoft.LearningComponents.SharePoint, Version=1.0.799.
0, Culture=neutral, PublicKeyToken=abc4ed181d6d6a94' or one of its dependencies.
The system cannot find the file specified.

Validation Complete
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\Co
mmon7\IDE\devenv.COM"' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC
\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC
\BIN\nmake.exe"' : return code '0x2'
Stop.
Jun 29, 2007 at 8:29 AM
Hi dhollas,

SLK has already been built at this point. The error message that you are seeing is part of a sample and appears harmless. Also, this does not indicate that the generated binaries are erroneous. You could go ahead with deploying the generated solution.
Turning this into an Issue item, to investigate and fix.
Jun 29, 2007 at 8:30 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.