As the title says, I have the problem that the form defined in the start module and called by the Show() method is shown fine, but the Main() method is called again then in an endless loop.
I have checked carefully by comparing to a new and correctly working application from the Wisej templates; Default.json, Default.html, Startup.vb, web.config… no difference.
Also, I have created a simple new Form from scratch with two controls to be shown at startup; same behaviour.
The IISexpress log shows nothing suspicious; simply a “GET” http://localhost:5000/ at the beginning of each loop.
I’m really stuck here; any help is higly appreciated! Thanks!
Hi Robert,
By any chance, are you writing/rewriting a file that happens to be inside the “bin” folder?
Usually, the app will keep restarting whenever a file is either written or overwritten inside of the bin folder.
Best,
Alaa
In the meantime, I could narrow down the issue to the code executed before the form is shown. Here, a database query (Access DB) is made to get some basic information the application uses. If this query is skipped, the form shows up corrently without restarting. The query is executed and populates an array without error. Question: Is it possible in a Wiesej application, to have some global data in the Module where also the Main() method resides? The mentioned array is also declared here.
Wisej version is 3.2.5; I’m running from Visual Studio 2022.
Any other ideas what causes this issue? Thanks!
What version of Wisej are you using?
Can you provide a sample so that we can try to reproduce? You mentioned that you created a simple new Form from scratch with two controls to be shown at startup-can you zip that and attach that to this forum post?
Is this a deployment, or are you just running it from Visual Studio?
-Julie
Please login first to submit.