Hi Alex,
We tried in many ways but always get a valid session. The Wisej session is restored in Wisej.Core.HttpModule (configured in Web.config) when processing HttpApplication.BeginRequest for pages ending in aspx or cshtml. But in some cases the thread firing BeginRequest is different from the thread executing the Asp.Net page.
You can also restore the Wisej session using Application.RestoreSession(context). You can place that in Page.Loado or Page.Init, or anywhere before using the Wisej session.
Try this and let me know:
protected override void OnLoad(EventArgs e)
{
Wisej.Web.Application.RestoreSession(this.Context);
}
Best,
Luca
Thank you. Logged. We also added new ContextMenu.Show() methods to use the several positioning options offered by the library.
Best,
Luca
Hi Alex,
Sorry about that. Will add. You can also install the latest Microsoft compilers for VS2013 here: https://www.nuget.org/packages/Microsoft.Net.Compilers/
You’ll get the syntax errors in the editor only but the compiler will work since it’s the same as in VS2015.
Best,
Luca
After March 2017.
Best,
Luca
Hi Alex,
1) WebView is like the windows forms WebBrowser control. As you can read on https://developer.android.com/guide/webapps/webview.html
“If you want to deliver a web application (or just a web page) as a part of a client application, you can do it using WebView. The WebView class is an extension of Android’s View class that allows you to display web pages as a part of your activity layout. It does not include any features of a fully developed web browser, such as navigation controls or an address bar. All that WebView does, by default, is show a web page.”
2) The end product of Wisej.Mobile is an APK that includes a WebView. A WebView can do one of two things: load its content from an URL or can include JavaScript that controls your Android application. I don’t know whether Wisej.Mobile allows for both options.
3) According to Luca’s previous answers, Wisej.Mobile is like Wisej.Web but using mobile controls instead of web controls.
4) Yes, just like any other APK.
5) Not as soon as we all want 😉
If you must go for native developement, be prepared:
Estimate time as you would do for a Wisej.Web project, then multiply by… it depends on the project size.
If the APK must run everywhere, you must have a generous maintenance contract so you can update the project whenever your client finds a very cheap tablet that has some issues with your app.
Now I understand why there are so many updates on mobile apps. It’s not about new features; it’s about new devices.
I expect Wisej.Mobile to take us back to the more normal web world. 🙂
Dear Frank,
Thanks for your answer.
However, this is exactly what I’m doing. In fact, when I run the application you sent, I see the same Null reference exception I saw in my code. Wisej.Web.Application.OpenForms is null, exactly as Wisej.Web.Application.Session was null, in what I had tried.
Best,
Alex
Hi Alex,
here is a basic sample for that kind of integration that should also give you an understanding for your problem.
http://wisej.s3.amazonaws.com/support/attachments/Wisej.AspNetFormIntegration.zip
Is the ASP page perhaps in a different site of the same server ?
Hope that helps.
Best regards
Frank
Hi guys,
Can I ask/suggest to reconsider the order of answers to a support forum thread? With the pushing upwards of the “great answers”, “best answer” etc, it becomes impossible to follow the flow, at least form me, i.e. somebody who was not involved in the conversation from start, so I haven’t seen the answers before. In the present thread, the answer dates are ordered: November 9/9/14/10/18/18/17/15/15/15/11/10 … With the final being somewhere in the middle and the best answer being on top, which, however was not the final.
Best,
Alex
Hi Tiago and Luca,
A few days ago I was asked to give an estimate of time/cost for an application that will run on Android and iOs… And since I wouldn’t like to start learning native development right now, I would like to ask some questions from a completely illiterate’s on mobile development point of view:
Best regards,
Alex
It is working for me now and quite nicely.
It seems that my test application is cross linked to a windows form that is not visible in my project.
Frank, I have successfully recreated the issue in a sample app. I just emailed it to you, please confirm you received it.
The app consists of two forms and a single user control. Window1 contains a single login button, which fires an event to display Window2. On Window2_Load I call the function “LoadACrapTonOfUserControls()” which instantiates UserControl1 20 times using this line.
object hostObject = Activator.CreateInstance(typeof(UserControl1));
This causes UserControl1 to not be displayed in Window2. If you comment out the “LoadACrapTonOfUserControls()” function, UserControl1 is displayed properly. This exactly recreates the issue we have in our application.
Now it’s time for an early happy hour.
Thanks
Andrew
Hi Sebastian,
I have setup a small sample that shows to extract the URL parameters:

Download the sample here
Hope that helps.
Best regards
Frank
Hi Andrew,
it´s possible that we are already working on a related issue and it could already be fixed in our build.
Are the long running tasks invoked in your MainForm on load ? We will try to reproduce the problem on our side.
A screen capture video could help, please send it to frank@iceteagroup.com , thanks !
I will contact you privately if we need more information or a webex session to track it down.
Best regards
Frank
Hi,
yes it is already been worked on.
We´ll keep you updated.
Best regards
Frank
See the icon on the Window, and see the icon in Taskbar.
Thanks.
Hi Mark,
We don’t have plans to write a converter. Our sister service company fecher has a suite of converters from WinForms, VB6 and VWG (not sure) to .NET and Wisej. However, we’ll provide a simple (incomplete) basic guide is the help docs.
Best,
Luca
We found the issue related to this – being fixed.
/Luca
Rough ETA -> before xmas.
Best,
Luca
Sure we can fix it. Would you please attach a screebshot so I make sure we are looking at the same thing?
Thanks,
Luca
Hi Sebastian, the arguments go after the URL:
http://localhost/myapp?arg1=hello
In your code you will find the startup arguments in Program.Main(NameValueCollection args) and always in Application.QueryString (which uses the same collection as HttpContext.QueryString).
AlertBox.Show(Application.QueryString[“arg1”]);
Best,
Luca
