app-startup

OWIN Startup class not detected

半世苍凉 提交于 2020-04-30 08:46:18
问题 I was trying to implement OWIN WS Federation in an existing application. It's a web application in asp .net VB. I have added all the references from the Nugetpackages List of refernces added Then I added the startup class in 2 files as a Partial class. StartupAuth.vb: Imports System.Configuration Imports System.Globalization Imports System.Threading.Tasks Imports Microsoft.Owin.Extensions Imports Microsoft.Owin.Security Imports Microsoft.Owin.Security.Cookies Imports Microsoft.Owin.Security

OWIN Startup class not detected

ぐ巨炮叔叔 提交于 2020-04-30 08:45:32
问题 I was trying to implement OWIN WS Federation in an existing application. It's a web application in asp .net VB. I have added all the references from the Nugetpackages List of refernces added Then I added the startup class in 2 files as a Partial class. StartupAuth.vb: Imports System.Configuration Imports System.Globalization Imports System.Threading.Tasks Imports Microsoft.Owin.Extensions Imports Microsoft.Owin.Security Imports Microsoft.Owin.Security.Cookies Imports Microsoft.Owin.Security

Cannot set visibility or call Show, ShowDialog or EnsureHandle after a window has been closed

百般思念 提交于 2020-01-14 02:51:29
问题 This is my App constructor for my WPF application: public partial class App { public App() { Run(new Login(false)); } } And this is my Login constructor: public Login(bool ignoreSettings) { InitializeComponent(); if (ignoreSettings) { TxtUsername.Text = SettingsSaver.LoadUsername(); TxtCrmUrl.Text = SettingsSaver.LoadCrmUrl(); return; } if (string.IsNullOrWhiteSpace(SettingsSaver.LoadUsername()) || string.IsNullOrWhiteSpace(SettingsSaver.LoadCrmUrl())) return; try { CrmConnector.ConnectToCrm(

Improve perceived WPF app startup time

爱⌒轻易说出口 提交于 2020-01-12 07:31:27
问题 I have a WPF database viewer application: It's a simple main window containing a user control with a data grid showing the data extracted from an SQLite database. The problem is that this application takes 6 seconds to start until it is usable. I tried building the user control (and doing all the data loading) in the constructor of the main window: The splash screen will be shown 5s this way, then followed by 1s of empty main window until the application is ready to be used. Users said that

Improve perceived WPF app startup time

主宰稳场 提交于 2020-01-12 07:30:29
问题 I have a WPF database viewer application: It's a simple main window containing a user control with a data grid showing the data extracted from an SQLite database. The problem is that this application takes 6 seconds to start until it is usable. I tried building the user control (and doing all the data loading) in the constructor of the main window: The splash screen will be shown 5s this way, then followed by 1s of empty main window until the application is ready to be used. Users said that

iOS app crashes when first opened by URL Scheme

折月煮酒 提交于 2020-01-03 18:31:22
问题 My app handles URL Schemes. When it is already running and gets called from another app, it behaves correctly and without a problem. However, when it is completely closed (as in not-in-background-mode), and another app calls it, it crashes immediately. I've already set the "Wait for executable to be launched" option so I could debug the application:willFinishLaunchingWithOptions: but it seems that it is not getting called. I've also implemented -application:openURL:sourceApplication

Start RScript without DOS box (on Windows)?

落花浮王杯 提交于 2020-01-01 10:13:00
问题 For a tcltk application, I would like to start an R script without opening a console window or starting a DOS box. I already figured out that by creating a link to RScript.exe I can force the console window to start minimized, but I wonder if I can avoid the console window at all? 回答1: You want to "run R in batch mode". It's quite straightforward; there are some instructions here. EDIT: I don't see a console window; here are the steps I took. 1) I created a file named r.bat containing the

Application_Start versus OnInit versus constructor

大城市里の小女人 提交于 2019-12-23 09:26:10
问题 I've gone rounds with this ever since I started programming classic ASP 12 (or so) years ago and I've never found a great solution because the architecture of ASP and ASP.NET has always been a swamp of bad practices, magic shared singletons, etc. My biggest issue is with the HttpApplication object with its non-event events ( Application_Start , Application_End , etc.). If you want to do stuff once for the entire lifespan of an HTTP application, Application_Start is the obvious place to do it.

Slow startup of xamarin app

怎甘沉沦 提交于 2019-12-22 08:15:43
问题 We are developing a cross platform app on a PCL, but for the time being we are only using android devices for testing. Our concern is that its taking about 6 to 8 seconds (depending on which device we test it) to start the app, which is very slow. After placing a few breakpoints we saw that the timing is consumed pretty evenly. We did notice this particular parts took longer: 1s before reaching onCreate() on MainActivity (there's a splash screen before which only has one image and a

Mac OSX: how to know if app automatically launched at session startup/login?

最后都变了- 提交于 2019-12-06 02:42:22
问题 The users of my app can choose if they want (or not) launch my app at their session startup. To do this, I use LSSharedFileListRef as described here : How do you make your App open at login? What I want now is to know if my app has been launched automatically at session startup or via a click on the icon in the dock. Indeed, I have to do different actions in these two cases. I have got the feeling that it is not possible to use the parameters of the notification in the following delegate