Questions tagged [visual-studio-lightswitch]

Microsoft Visual Studio LightSwitch is a rapid application development tool for creating data centric Silverlight or HTML5 applications.

LightSwitch is a rapid application development tool for creating data centric Silverlight or HTML5 applications. Silverlight client can be extended using custom controls and RIA Services data sources. LightSwitch applications focus solely on data entry and provide no built-in support for reporting, although 3rd party reporting extensions are available. Applications created with LightSwitch can be deloyed as Windows desktop applications (using the WCF service host to create local RIA services), in a 3 tiered LAN configuration, as web applications hosted on IIS 7, or using the Microsoft Azure platform.

Visual Studio LightSwitch version 1.0 was released on July 26, 2011. It appears in two configurations: a simplified version of Visual Studio that can only build LightSwitch applications, and as a project type within Visual Studio Professional or better. A trial copy can be downloaded from the Microsoft website here.

Other useful resources include:

1073 questions
3
votes
0 answers

Lightswitch application error: Unable to load one or more of the requested types

I have a LightSwitch 2013 RC project that fails with the error "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information" on launch. I don't know where to put a breakpoint, or a try..catch…
Kobus Herbst
  • 415
  • 2
  • 12
3
votes
1 answer

How to remove "Generation date" from auto-generated LightSwitch class

i have auto-generated LightSwitch class //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.17929 // // Changes to this…
Timur Lemeshko
  • 2,747
  • 5
  • 27
  • 39
3
votes
2 answers

visual studio 2012 lightswitch HTML Project error can't load application item provider sequence contains no element

It is the first time for me to use lightswitch and when trying to start a new Lightswitch HTML project on Visual Studio Pro 2012 I get the following error: cannot load application item provider sequence contains no element This may indicate the…
3
votes
2 answers

Lightswitch - Hiding Columns

FindControl seems to only reference the name of the grid, not the column name inside the grid. I can't find any documentation or examples regarding FindControlInCollection either. I don't have any sophisticated logic to wrap this in at this point.…
weweber3
  • 31
  • 2
3
votes
4 answers

LightSwitch v1 shows red X and unable to load data

I have made an application using Visual Studio LightSwitch 2011 (v1) running on Visual Studio 2010 Professional. It is a desktop application, and I use SQL Server Authentication to connect to the database. (Same username/password for all…
Omaer
  • 817
  • 1
  • 7
  • 22
3
votes
1 answer

Saving images in Azure Blob Storage using Lightswitch 2012

I have a lightswitch application which currently stores all data in SQL Azure - including images. But I would like to keep the images separately in Azure Blob Storage and all non-binary data as it is. So the outcome of saving an entity in the…
3
votes
0 answers

Kendo Grid with Lightswitch HTML

AM attempting to use Kendo Grid with Lightswitch. I can get data binding working with local data. When I bind to lightswitch data, nothing shows up. Code looks like this myapp.BrowsePeople.People_render = function (element, contentItem) { var…
3
votes
2 answers

Save binary file to DB

I know there are many threads on the subject, and I have try to implement (translate) this one into C# from VB. Table fileContainer = {string FileName, binary File} Here is my try: partial void FileContainersAddAndEditNew_Execute() { …
Tim
  • 289
  • 3
  • 23
3
votes
1 answer

Reuse generic command in multiple lightswitch screens

I am designing a LightSwitch 2012 application to manage requests, and I want to be able to update the request state with the same reusable code across all of my screens. For example, A user can change a request state in the approval screen, the…
DTreth
  • 87
  • 5
3
votes
2 answers

Formatting Cell in a generated Word document

I am generating invoices from within my LightSwitch billing application, and after an invoice is generated, the SubTotal, SalesTax and Total Due cells in the Word document are not of the correct format. I have gone through every single menu option,…
Arrow
  • 2,784
  • 8
  • 38
  • 61
3
votes
1 answer

override column sort light switch

I have a [Updates] table with [Version] column which is stored as a varchar in the sql server, and as a string in my entities. How can I override the default comparer for that specific column?
IgalBer
  • 33
  • 3
3
votes
1 answer

lightswitch how to suppress the "Save changes before closing" message when no new data entered

I have a default data entry screen in Lightswitch. Problem is, when the user does not wish to enter a new record, the user closes the screen to navigate elsewhere. Upon closing the form, the user is presented with the "Save changes before…
Shawn de Wet
  • 5,642
  • 6
  • 57
  • 88
3
votes
0 answers

Lightswitch entity level permissions is not working correctly in internet explorer

I think I found a bug in lightswitch and I searched throughout google to try to find someone else who has the same problem, but haven't had any luck so far. Seems that lightswitch caches the entities' delete/insert/update/view permissions into some…
3
votes
1 answer

Combobox and Lightswitch

I have a table with the Field gender that I would like to turn into a custom control (Edit:ComboBox) with fields of Male and Female. Relatively new to Lightswitch and I am not sure how to go about doing that aspect. I have tried looking but couldn't…
Mike Diaz
  • 2,045
  • 4
  • 32
  • 55
3
votes
2 answers

VS LightSwitch debug unable to load data

I have just installed Visual Studio LightSwitch 2011. Every screen that I've created has the same red X with the message "Unable to load data." I'm creating a desktop application which will have all components, including tech database, on the same…
Verbose
  • 31
  • 5