InventoryDemo - Error: 'Sys' is undefinedInventoryDemo - Error: 'Sys' is undefined
Old forum URL: forums.lhotka.net/forums/t/6698.aspx
Russ posted on Sunday, March 29, 2009
I am receiving Error: 'Sys' is undefined when I tried to get the Inventory Demo (3.6.2RC) working.
Where did I go wrong?
Steps:
1) I downloaded the cslalightcs-3.6.2-090322 and the lightsamples-3.6.2-090322 files.
2) I unzipped them as peers in my C:\Code\CSLA\ folder.
3) I doubleclicked on the cslalightcs-3.6.2-090322\clsacs\cslacs.sln file to open the csla solution.
4) I selected release mode and then successfully built the solution.
5) I closed VS2008.
6) I doubleclicked on the cslalightcs-3.6.2-090322\clsalightcs\cslalightcs.sln file to open the cslalight solution.
7) I selected release mode and then successfully built the solution.
8) I closed VS2008.
9) I doubleclicked on the lightsamples-3.6.2-090322\CslaLight\cs\InventoryDemo\InventoryDemo.sln file to open the InventoryDemo solution.
10) I deleted the Csla reference from the InvDal project references.
11) I added a reference to the C:\Code\CSLA\cslalightcs-3.6.2-090322\cslacs\Csla\bin\Release\Csla.dll that I built in step 4 to the InvDal project.
12) I deleted the Csla reference from the InventoryDemo project references.
13) I added a reference to the C:\Code\CSLA\cslalightcs-3.6.2-090322\cslalightcs\Csla\ClientBin\Csla.dll that I built in step 7 to the InventoryDemo project.
14) I deleted the Csla reference from the InventoryDemo.Web project references.
15) I added a reference to the C:\Code\CSLA\cslalightcs-3.6.2-090322\cslacs\Csla\bin\Release\Csla.dll that I built in step 4 to the InventoryDemo.Web project.
16) I deleted the Csla reference from the InvLib.Client references.
17) I added a reference to the C:\Code\CSLA\cslalightcs-3.6.2-090322\cslalightcs\Csla\ClientBin\Csla.dll that I built in step 7 to the InvLib.Client project.
18) I deleted the Csla reference from the InvLib.Server project references.
19) I added a reference to the C:\Code\CSLA\cslalightcs-3.6.2-090322\cslacs\Csla\bin\Release\Csla.dll that I built in step 4 to the InvLib.Server project.
20) I selected debug mode and then successfully built the solution.
21) I pressed F5 to run the application. A Windows Internet Explorer window opens and the loading indicator show 100% and I receive a webpage error stating "Line 1: Error: 'Sys' is undefined". If I click on yes to debug the JScript Debugger highlights the 3rd line containing "Sys.Application.add_navigate (__navigateHandler); When I close the debugger VS2008 hightlights line 198 in Csla.Silverlight.Navigator.cs.
Thanks in advance for any help.
Russ.sergeyb replied on Sunday, March 29, 2009
Make sure you start up project is the web host.
Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation
-----Original Message-----
From: Russ [mailto:cslanet@lhotka.net]
Sent: Sunday, March 29, 2009 2:24 PM
To: Sergey Barskiy
Subject: [CSLA .NET] InventoryDemo - Error: 'Sys' is undefined
I am receiving Error: 'Sys' is undefined when I tried to get the Inventory Demo (3.6.2RC) working.
Where did I go wrong?
Steps:
1) I downloaded the cslalightcs-3.6.2-090322 and the lightsamples-3.6.2-090322 files.
2) I unzipped them as peers in my C:\Code\CSLA\ folder.
3) I doubleclicked on the cslalightcs-3.6.2-090322\clsacs\cslacs.sln file to open the csla solution.
4) I selected release mode and then successfully built the solution.
5) I closed VS2008.
6) I doubleclicked on the cslalightcs-3.6.2-090322\clsalightcs\cslalightcs.sln file to open the cslalight solution.
7) I selected release mode and then successfully built the solution.
8) I closed VS2008.
9) I doubleclicked on the lightsamples-3.6.2-090322\CslaLight\cs\InventoryDemo\InventoryDemo.sln file to open the InventoryDemo solution.
10) I deleted the Csla reference from the InvDal project references.
11) I added a reference to the C:\Code\CSLA\cslalightcs-3.6.2-090322\cslacs\Csla\bin\Release\Csla.dll that I built in step 4 to the InvDal project.
12) I deleted the Csla reference from the InventoryDemo project references.
13) I added a reference to the C:\Code\CSLA\cslalightcs-3.6.2-090322\cslalightcs\Csla\ClientBin\Csla.dll that I built in step 7 to the InventoryDemo project.
14) I deleted the Csla reference from the InventoryDemo.Web project references.
15) I added a reference to the C:\Code\CSLA\cslalightcs-3.6.2-090322\cslacs\Csla\bin\Release\Csla.dll that I built in step 4 to the InventoryDemo.Web project.
16) I deleted the Csla reference from the InvLib.Client references.
17) I added a reference to the C:\Code\CSLA\cslalightcs-3.6.2-090322\cslalightcs\Csla\ClientBin\Csla.dll that I built in step 7 to the InvLib.Client project.
18) I deleted the Csla reference from the InvLib.Server project references.
19) I added a reference to the C:\Code\CSLA\cslalightcs-3.6.2-090322\cslacs\Csla\bin\Release\Csla.dll that I built in step 4 to the InvLib.Server project.
20) I selected debug mode and then successfully built the solution.
21) I pressed F5 to run the application. A Windows Internet Explorer window opens and the loading indicator show 100% and I receive a webpage error stating "Line 1: Error: 'Sys' is undefined". If I click on yes to debug the JScript Debugger highlights the 3rd line containing "Sys.Application.add_navigate (__navigateHandler); When I close the debugger VS2008 hightlights line 198 in Csla.Silverlight.Navigator.cs.
Thanks in advance for any help.
Russ.
Russ replied on Sunday, March 29, 2009
Thanks Sergey.
I just set the InventoryDemo.Web project as the startup project and ran it again. This time I received a blank page in the browser. I then set the InventoryDemoTestPage.aspx as the start page and it now loads perfectly!
Thanks again
Russ.Dexter replied on Wednesday, April 01, 2009
Hi
You will also need set the start page to InventoryDemoTestPage.aspx.
Dexter
Copyright (c) Marimer LLC