visual-studio-lightswitch

Strong name signature not valid for this assembly Microsoft.LightSwitch.Model.Xaml.dll

风流意气都作罢 提交于 2019-12-11 21:13:39
问题 I deployed a desktop lightswitch application and my users are getting this error when they install the application: Strong name signature not valid for this assembly Microsoft.LightSwitch.Model.Xaml.dll This error is causing the install to fail. Does anyone know the cause of this error or where to start looking? 回答1: What happened in my case is that VS 2013 has upgraded my LightSwitch app to .net 4.5 framework. The app works ok on machines with .net 4.5 but on machines with 4.0 I get the

Lightswitch: parameter with string and integer searching properties (is it possible?)

百般思念 提交于 2019-12-11 17:12:57
问题 Just a quick question within the HTML Client side of Visual Studio 2013 Lightswitch, is it possible to set a parameter field based from a query to allow both sting and interger values to be searched... an example would be StaffID(int) and StaffName(string)... cheers guys 回答1: Sure - just add a .ToString() when you present on your int to the search query argument if Javascript isn't doing the conversion implicitly. e.g. searchString = intField.ToString() + ((intField==null)?" ";"") + strField

Lightswitch HTML - disabling the CTRL + S functionality

五迷三道 提交于 2019-12-11 06:07:23
问题 It turns out then when you have an Add/Edit screen open (dialog or full), that you can hit CTRL + S to save the screen. This avoids all validation I have coded, and also does not matter if I have disabled Lightswitch's own save button. How can I disable this? on a browse or view screen, this does not occur and the user is only able to save there web page 回答1: One option to disable the Ctrl + S is to remove the msls-save-button css class from your screen's save button. This can be done in your

Error: The application which this project type is based on was not found

妖精的绣舞 提交于 2019-12-10 14:34:15
问题 I installed VS2012 and tried to open a project that was developed using VS2012 as well by another developer. But I am getting an error message as below. I googled the error message and found most of MVC projects have same problem and found solutions to those. But mine isn't a MVC project. The original developer said it is a Light Switch and Entity Framework project. How can I start trouble shooting to find out what I am missing on my computer and to solve this problem? 回答1: The error message

how to change the connectionstrings of a lightswitch application in debug mode

白昼怎懂夜的黑 提交于 2019-12-10 13:46:17
问题 please how do i change the connection string of a lightswitch application for debugging purposes . i have followed this post http://dougseven.com/2010/08/23/data-storage-in-visual-studio-lightswitch-2/ but i can seem to get it to work. anytime i change the web.config in the applicationroot/bin/debug when i run the application in debug mode the file gets recreated with the original value in the file. i have no problem changing it when publishing the app. and when i implement the change in the

OData Default company and adjusting Service Config Files in Silverlight App being built in MS Visual Studio 2013

别来无恙 提交于 2019-12-08 10:23:18
问题 I'm building a Lightswitch application using MS Visual Studio 2013. As part of this I access data through an OData url (referencing a dynamics nav project) which does not seem to want to pick up the company data in the url. (It does without it). However then within Visual Studio I only see the column headers and no data. When I debug I get the following error message: "Cannot process the request because the default Microsoft Dynamics NAV company cannot be found. You can specify a default

Lightswitch html how to know when async iteration is done

人走茶凉 提交于 2019-12-08 03:36:37
问题 I have an async operation inside another async operation. I wonder how can i know when everything is done. Here is my code: msls.showProgress(msls.promiseOperation(function (operation) { screen.Staff.getConfirmedWaiters().then(function (result) { result.each(function (item) { item.getWaiter().then(function (result) { if (result.Gender == "Female") { confirmedGirls++; } }); }); operation.complete(confirmedGirls); }); }).then(function (result) { First I load the ConfirmedWaiters collection.

LightSwitch and Expression Blend - Will they work together?

痴心易碎 提交于 2019-12-06 12:46:07
问题 how well can LightSwitch work together with Blend? I saw in some videos that you can use custom Silverlight control in LS and naturally I can create them with Blend. But can Blend in itself be used to customize the screens of a LightSwitch application? It seems LS doesn't use Xaml but puts all screen in an application.lsml file which is invalid for Blend. Is there support coming here? Thanks in advance. 回答1: No. You will never be able to customize the LightSwitch 'Screens' in Blend, because

How do I get MS LightSwitch to recognize my View?

亡梦爱人 提交于 2019-12-06 12:13:33
I've created a View from a table in another database. I have dbo rights to the databases so viewing and updating is not a problem. This particular View did not have an "id" column. So I added one to the View by using ROW_NUMBER. Now I had a problem with a table, in the same database, not showing up in LightSwitch but that was solved by changing the id column to be NOT NULL. I haven't done any real manipulation in LightSwitch. I'm still in the Import Your Data Source stage (ie. very beginning). This View, in LightSwitch, is going to be read-only. No updating or deleting. From what I've read,

Exception: Error HRESULT E_FAIL with Microsoft LightSwitch Visual Studio 2012 RC

守給你的承諾、 提交于 2019-12-06 11:18:46
问题 I installed Visual Studio 2012 RC recently along with VS 2012 SDK and LightSwitch Extensibility Toolkit. this is the XAML code in my Client.Design -> TControl.XAML file <UserControl x:Class="CustomControls.Presentation.Controls.TControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:framework="clr-namespace:Microsoft.LightSwitch.Presentation.Framework;assembly=Microsoft.LightSwitch.Client"> <Grid Width="Auto">