CSLA .NET

From Rockford Lhotka's Expert C# 2008 and VB 2008 Business Objects books

InventoryDemo - Error: 'Sys' is undefined

rated by 0 users
This post has 3 Replies | 1 Follower

Top 500 Contributor
Posts 33
Russ Posted: Sun, Mar 29 2009 1:24 PM
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.
Top 10 Contributor
Posts 663
sergeyb replied on Sun, Mar 29 2009 3:24 PM
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.

Top 500 Contributor
Posts 33
Russ replied on Sun, Mar 29 2009 3:32 PM
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.
Not Ranked
Posts 6
Dexter replied on Wed, Apr 1 2009 4:19 AM

Hi

You will also need set the start page to InventoryDemoTestPage.aspx.

Dexter

 

Page 1 of 1 (4 items) | RSS

Please contact Magenic for your .NET consulting
and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems