visual-studio-lightswitch

LightSwitch + MySQL error: Nested Transactions are not supported

允我心安 提交于 2020-01-11 04:06:11
问题 Trying to connect to and modify existing data in a MySQL table. The reading working fine but when trying to save a change, the following error occurs. An error occurred while starting a transaction on the provider connection. See the inner exception for details. Inner exception message: Nested transactions are not supported. Using MySQL Connector Net 6.4.3 Answer I found an answer that works in my case. Add the code below to the datasource code using System.Transactions; namespace

Lightswitch html client override default save button

旧城冷巷雨未停 提交于 2020-01-07 09:04:53
问题 I want to be able to override the default save button on the html client however i cant seem to find the control to do so. I want to write some validation behind it and allow the user to select an option but I just cant seem to find it. I know the silverlight client you can override it but just cant seem to override it in the html client. thanks 回答1: It's achieved using beforeApplyChanges. example: (Please excuse any typos/syntax errors, you get the rough idea!) myapp.AddEditScreen

how to debug delete button action in Lightswitch?

左心房为你撑大大i 提交于 2020-01-07 03:08:18
问题 I am supposed to find a bug in Lightswitch C# application written in VS2012 which causes application to hung when delete button is clicked. I am new to LS and have problem figuring out how to find the internal code is executed when that button is selected. Even when I try to override action of this button debugger doesn't stop there. Debugging just my code is turned off, on screen data binding I see some name I cannot find in the code. Anybody here has some experience with lightswitch to

Lightswitch Desktop Application Wont Install in XP SP3

巧了我就是萌 提交于 2020-01-06 19:40:26
问题 I have a desktop application developed with Lightswitch using Visual Studio 2012. The app installs perfectly on a Windows 7 machine but when I try to install it on an XP SP3 machine I get: setup.exe is not a valid Win32-Application I've tried using: editbin setup.exe /SUBSYSTEM:WINDOWS,5.01 /OSVERSION:5.1 but then I get the following error: the procedure entry point InitializeCriticalSectionEX could not be located in the dynamic link library Kernal32.dll I've spent ages getting this rapid

Setting font in light switch textboxes

会有一股神秘感。 提交于 2020-01-06 02:35:26
问题 I am trying to set set the font of a TextBox in LightSwitch. I am not sure if there is a problem with my code, or if this just isn't possible. The code executes, and I have stepped through it to make sure it executes, and all code is reached and executed, but there is not change to the controls on the screen. My code is: private void SetMono(string controlName) { var ctrl = this.FindControl(controlName); if (ctrl != null) { ctrl.ControlAvailable += (s, e) => { if (e.Control is TextBox) // I

Setting font in light switch textboxes

℡╲_俬逩灬. 提交于 2020-01-06 02:35:06
问题 I am trying to set set the font of a TextBox in LightSwitch. I am not sure if there is a problem with my code, or if this just isn't possible. The code executes, and I have stepped through it to make sure it executes, and all code is reached and executed, but there is not change to the controls on the screen. My code is: private void SetMono(string controlName) { var ctrl = this.FindControl(controlName); if (ctrl != null) { ctrl.ControlAvailable += (s, e) => { if (e.Control is TextBox) // I

Form Authentication and Active users in LightSwitch Web App

こ雲淡風輕ζ 提交于 2020-01-03 05:39:28
问题 Is there any way i can trace when user has Login (i.e. insert time of login in a log table) and how many users are currently active. I am using Form Authentication. I have search but i got stuff regarding custom login page. Is it possible to trace this using form authentication? i have tried to insert a log into table on Application_LoggedIn Private Sub Application_LoggedIn() Dim A = Application.Current.CreateDataWorkspace.ApplicationData.Logtable.AddNew() A.name = User.Name A.time = DateTime

Lightswitch v1 Desktop Application doesn't work on 64bit client

ε祈祈猫儿з 提交于 2019-12-25 05:31:51
问题 I have made a Lightswitch v1 (2011) Desktop application on Visual Studio 2010 Professional. My OS is 32 bit Windows 7 Professional. The application connects to an SQL Server 2005 database, using SQL Server Authentication. On clients running 64 bit Windows, my application is unable to load data. (It shows the dreaded red-X, that everyone using Lightswitch is all too familiar with). I was able to enable tracing and get a detailed error message, but still don't know what to do about it. Error

403 - Forbidden: You do not have permission to view using the credentials that you supplied

那年仲夏 提交于 2019-12-24 23:32:41
问题 After resolving some issues with deployment of my LightSwitch app to Azure, I was able to get the Azure Management Portal to report that everything was up and running fine. However when I try to access the site, I receive: Server Error 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied. This happens regardless of whether I have HTTPS required or not and regardless of the browser used. When this point is reached,