[dba-VB] Rapid Application Development: LightSwitch 2011( (nobeta)

Shamil Salakhetdinov shamil at smsconsulting.spb.ru
Mon Sep 19 04:51:11 CDT 2011


 
Hi Gustav at all --

I have got MS LightSwitch 2011 installed, and I have tried to create
LightSwitch project using NorthwindNet database from our
northwind.codeplex.com project - it didn't work resulting in a set of
(cryptic for me) error messages:

Error 5 Application definition contains critical errors. Common
Error 6 Application definition contains critical errors. Client
Error 7 Application definition contains critical errors. ClientGenerated
Error 8 Application definition contains critical errors. Server
Error 9 Application definition contains critical errors. ServerGenerated

Error 1 The EntitySet property of the AssociationSetEnd 'OrderDetail' in the
AssociationSet 
'OrderDetails' in the Domain Source 'NorthwindNETData' cannot be resolved:  
The item referenced by Id 'OrderDetails' does not match the type of the
property 
'Microsoft.LightSwitch.EditableModel.IEditableEntitySetDefinition'. 
E:\ZZZ\LS_Test_Application\LS_Test_Application\Data\ApplicationDefinition.ls
ml 892 7 

Error 2 The EntitySet property of the AssociationSetEnd 'OrderDetail' in the
AssociationSet 
'ProductOrders' in the Domain Source 'NorthwindNETData' cannot be resolved:

The item referenced by Id 'OrderDetails' does not match the type of the
property 'Microsoft.LightSwitch.EditableModel.IEditableEntitySetDefinition'.

E:\ZZZ\LS_Test_Application\LS_Test_Application\Data\ApplicationDefinition.ls
ml 900 7
Error 3 The EntitySet property of the EntitySetMapping in the DataService 
'NorthwindNETDataDataService' cannot be resolved:  
The item referenced by Id 'OrderDetails' does not match the type of the
property 'Microsoft.LightSwitch.EditableModel.IEditableEntitySetDefinition'.

E:\ZZZ\LS_Test_Application\LS_Test_Application\Data\ApplicationDefinition.ls
ml 1837 5 

Error 4 Unable to copy file 
"E:\ZZZ\LS_Test_Application\LS_Test_Application\ServerGenerated\obj\Debug\Ap
plication.ServerGenerated.dll" to 
"Bin\Debug\bin\Application.ServerGenerated.dll". 
Could not find file
'E:\ZZZ\LS_Test_Application\LS_Test_Application\ServerGenerated\obj\Debug\Ap
plication.ServerGenerated.dll'. 
C:\Program
Files\MSBuild\Microsoft\VisualStudio\LightSwitch\v1.0\Microsoft.LightSwitch.
targets 149 10 LS_Test_Application

When I have got removed one non-unique indexes from ProductDetails table
supposing that it was the cause of the above errors I have got VS going
down/restarting and presenting me a message:

+++
There are critical errors in the application definition metadata.
These errors must be fixed before the project can be loaded in the designer.
Check the errors in the errors window, and fix them in the text editor.
When you finish it, please use the "Reload" button to reload it into the
designer.
----

Sorry for my English but what they mean in the last sensence by "finish it"?
- I got it as to finish ASAP my first Lightswitch "fighting session", and so
I finsihed it :)

If anybody here have any idea how to fix the above issue that would be very
helpful here.

Thank you.

--
Shamil
 
-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: 11 ???????? 2011 ?. 15:01
To: dba-vb at databaseadvisors.com
Subject: Re: [dba-VB] Rapid Application Development: LightSwitch 2011
(nobeta)

Hi Shamil

I did consider that but funding will never be fat. The organisation counts
only a few hundred members, and as the backends are only 150 MB I will face
no scaling issue. It is exactly what LS is targeted for, so for this reason
alone I will do the test. It may, of course, prove unsatisfactory in some
way and if so I  will for sure choose the WinForms route which works very
well for me.

We have one client where I have used the click-once deployment method and it
works very well. Even the smallest modification, which I can code in
minutes, gets deployed at once as it just requires a few default clicks and
a password to the clients local FTP server and it has been published. It
can't be easier and it just works.

/gustav







More information about the dba-VB mailing list