You are here:   Community
Register   |  Login


  • August 05

  • rbrogan rbrogan Anyone know how to configure the HTML lightswitch client to use the new identity framework? Referenced here membership-system-for-asp-net-applications.aspx?CommentPosted=true#commentmessage and here

    I like the idea that ASP.NET Identity can be used with all of the ASP.NET frameworks such as ASP.NET MVC, Web Forms, Web Pages, Web API and SignalR, so why not lightswitch?


    about 2 years ago
  • July 30

  • Liviu Liviu Ok, Thanks.
    about 2 years ago
  • DedoOne DedoOne Will do Liviu01... As soon as I can get my desk cleared off
    about 2 years ago
  • July 26

  • Michael Washington Michael Washington Sorry I don't have the answer.
    about 3 years ago
  • imatica imatica Yes Michel, but i send a post yesterday and there are no response can you help me please?
    about 3 years ago
  • Michael Washington Michael Washington For new Visual Studio LightSwitch questions,
    It is recommended that you use the official Visual Studio LightSwitch Forums at:
    about 3 years ago
  • imatica imatica Hi Michel, i created WCF RIA, and then when i Open my APP from VS i can see information from RIA Service (information of the other database). but when i publish my App i see this error: El esquema especificado no es válido. Errores: Model1.csdl(3,4) : error 0019: El nombre de EntityContainer debe ser único. Ya se ha definido EntityContainer con el nombre 'ClientesEurowin'. I see this error on HTMLClient, on Desktop client i give Unable to load Data, please check your connection and try.... Can you help me please?
    about 3 years ago
  • July 24

  • Liviu Liviu Hi Roger,

    Would be great to post a demo here if you wish. I also tried to integrate a SOAP service but I couldn't retrieve the classes I needed from it and I ended up using a WCF ria where I have integrated that service.
    about 3 years ago
  • Liviu Liviu Hello,

    Let's say I have a data source which contains 2 tables, both added on the same screen. It is possible to save the changes I make only for one table (something like this.DataWorkspace.DataSource.TableA.SaveChanges()), or just for the entire datasource? I read on this forum that is possible to discard the changes from a datasource just for certain entities but didn't find how to save them.

    Any help is appreciated. 

    about 3 years ago
  • July 16

  • Michael Washington Michael Washington Yes see:
    about 3 years ago
  • Alex Alex Hi
    I download the project End-to-end-Example, but i note one problem.
    In the screen 'Main.js', it count the item in the list use CountOrders method. But if I add the order, using the button 'add Order',
    the count label dosen't refresh the value and not increase.

    Don't exist the manner for do this?


    about 3 years ago
  • July 11

  • Bill Bill To take the question a bit further, I've had three different developers recommend a "code first" model to create the Data Access Layer and then RIA services to handle the CRUD.

    Their point is that the heavy business logic is separated / underneath lightswitch so if in the future a mvc + responsive layout was desired; it would be less painful.

    about 3 years ago
  • July 10

  • DedoOne DedoOne I thought about using single user groups, although via a hub. The draw-back to single user groups are noted here:

    Using persistent connections is certainly another approach in which to use, rather than creating a hub. David Fowler notes the advantages of using a hub over a persistent connection here:

    Thank you for the link Michael, I’ll grab a cup of java and settle into it for a read.

    about 3 years ago
  • Michael Washington Michael Washington I also have this:
    Forms Authentication with SignalR Using Web Forms and Windows Forms
    about 3 years ago
  • Michael Washington Michael Washington It will not be posted by me but another of the Blogger, Richard Waddell. He has working code but he is polishing it and he plans to write a detailed article about it. He has a full-time job outside of LightSwitch so he works on it on the weekends. This is the reason fro the delay.
    about 3 years ago
  • DedoOne DedoOne That would be tremendously cool Michael, as there currently exists nothing out there in which to example from within the context of Lightswitch.

    Even if I did manage to get it to compile correctly, the static dictionary is not the optimal route in which to take. Holding these connections persistently within a table is the best approach.

    It would simply be very, very, very cool to push validation notifications on to a specific client.

    If I manage to accomplish this, I’ll post it here. In the interim, I’ll wait with baited breath for yours Michael.

    Once again, thanks so much for all your wonderful help.


    about 3 years ago
  • Michael Washington Michael Washington We will post a new SignalR example next month.
    about 3 years ago
  • DedoOne DedoOne

    I am trying to push server generated notifications onto the HTML Client via signalR.

    Mat Sampson has a great Blog posting on how to do it here:

    However, his example pushes the notification to ALL clients, rather than to the specific client which created/updated the record.

    Unfortunately to achieve this, the task becomes much more complicated as the User’s connection now has to be mapped. I have been unsuccessful in achieving this via a ConcurrentDictionary approach towards the context.Clients.Client(connectionId).send(message)method, at least within a Lightswitch context.

    After many hours of efforts, I fear it is currently beyond my ability to implement.

    Any help would be most welcomed.



    about 3 years ago
  • July 07

  • MTinet MTinet My 5 cents: maybe one advantage of the RIA service could be the centralization of the application and business logic and data access control, so that you would not have to implement these in all the clients that would otherwise need to connect to the external DB directly.
    Note: I think you can also do that with a LS application and connect via the ODATA interface. (I have no personal experience with this though).
    about 3 years ago
  • July 06

  • MTinet MTinet Hello all!

    I have posted my issue on the MSDN forum but I am stuck on the binding issue.
    The post can be found here:

    I have searched the web and tried many solutions but I can't get it to work and it feels like I am going in circle with this.

    To briefly explain the issue:
    I have an entity table called "Computers" and the members are ID, Name, type, and IpAddress. In addition, each computer has a list of ids of computers connected to it.
    I represent the data in LS with a "List and Detail screen" but I need to have a graphical reprensentation of the data as a network of computers.

    I guess I need to create a SL custom control and so I need to bind the entity (Computers) to it or is there another way? Also it is important that I don't only get the Computers visible on the screen as I need ALL computers in the table to build the full network (I will need logic to scroll and draw the network based on user navigation events (scroll/Zoom).

    I have a lot of challenges ahead but the biggest one at the moment is getting the list of Computers accessible from the SL custom control (binding).
    I hope you guys could point me in the right direction and guide me through this.


    about 3 years ago