Impersonation only works if the client user machine and the server are on the same AD. It’s a Windows feature. You can also start impersonation in your app.
Wisej.NET doesn’t and can’t change the way IIS and Windows manage authentication. What you find in User and UserIdentity is what is returned by ASP.NET and IIS.
cookies don’t provide built in encryption. If your password is already encrypted simply store it a cookie. If it’s binary usually the approach is to store it as base64.
I have tracked this down to a setting in Default.Json namely Impersonate = true
Given the web config is set up correctly for impersonation, it appears remote logins (and local logins in some cases), fail to pick up the correct user when this is set in default.json in addition, (in verson 3.0.17) with the anonymous user being picked instead, despite the anonymous user being filtered out in the web config file.
If I remove this line from Default.json everything works again.
As it was not happening before; I am not sure whether this is a bug.
Also is it possible to define default Windows credentials in default.json, to avoid remote user’s needing to log on by entering their windows credentials?
Attempting to set this in the web config will not work.
Many Thanks
Hi Davide,
Unfortunately, we still weren’t able to reprodce this issue, try to save everything before closing the designer form and updating Visual Studio?
On that note, can you give us what version of Visual Studio you’re using and also the Wisej.NET version?
Thanks!
Alaa
Hi Huỳnh,
To answer your questions:
Attached is a modified version of your sample, it works fine now!
HTH,
Alaa
//
Hi Vincent,
We’re looking into this issue and we’ll get back to you ASAP!
Best,
Alaa
Hi Tiziano,
Thank you for your sample, there are a few things that I like to point out regarding how you’re using the background processes.
Any background service (or Hosted Service in this case) has its own separate thread, Wisej.NET’s session doesn’t exist in that thread’s scope, and since it’s not coming from the main application thread, nothing can be updated and/or pushed to the client.
You’ll have to go with another approach and see how it would update your application’s main thread.
You can follow Microsoft’s Documentation in that regard.
But the main point is, what’s happening is that when that breakpoint hits, it’s actually the service thread calling itself and since the Wisej.NET application isn’t scoped, there’s nothing to update!
It is not a Wisej.NET issue, even with a regular ASP.NET Core application this would yield the same result.
If you need additional help, we offer Professional Service packages that you can check out!
HTH,
Alaa
Hi Sascha,
Earlier this year we introduced the Wisej DemoBrowser application that showcases different demos for all controls that Wisej.NET has to offer.
In that regard, the DemoBrowser also includes all the Premium extensions and that includes EJ2 Controls .
The source code is open source too, so you can check how everything works in the background.
All premium extension controls expose the Instance parameter, so you can attach to any javascript event and route it to the server, as an example you can do something like this.kanban1.Instance.onCardDoubleClick += new WidgetEventHandler(my_event_method);
That way you can stick to writing C# code rather than having to deal with Javascript client-side code, but you can always do that too!
HTH,
Alaa
//
Hi Behzad,
The best way to change the appearance of one Control is to have a custom appearance key set to it.
However, you’ll have to use a Code editor in addition to the ThemeBuilder.
You’ll need to have a new set of appearances for both the “DateChooser” and “DateField”. These two components make the DateTimePicker you see in your application.
You can assign two completely different names to them, but make sure to adjust the DateField.List “inherit” property to your new name for the DateChooser.
As for the missing properties, you’ll have to edit the DateChooser.Day appearance, from what I understood it’s about the tile colors of the calendar, where the tile is the “Day” in the calendar.
To make it a bit simpler, I wrapped up a sample for you. please see dateTimePicker2 in Window1.cs, Default.json, and the new appearances “customDateChooser” and “customDateTimePicker”
If you need additional help with theming your application, we offer Professional Services that you can check out!
HTH,
Alaa
//
Hello Frank,
Thanks for your response. Setting up at the Theme level sets the Calendar property for the whole form. Is there a way to set the properties at control level within the form? We usually create the DateTimePicker control at runtime and hence wouldn’t know the number of DateTimePicker controls beforehand and each will have it’s own appearance.
Also, I’m trying to map the Winform Calendar properties with Wisej. I couldn’t find all the Calendar properties within the “name” dropdown in Wisej Theme builder. Can you please help me map the missing items?
Thanks
Sathya S
Mohsen,
can you please share the exact changes you made to the extension? I´ll then check and it to the original sources at GitHub.
You can post them here or send to supportATwisej.com
TIA
Frank
Hi again,
Inspected the code of the extension after downloading from github.
Now solved after adjusting the source code and attach the extension project as dependency to my project instead of nuget package.
Thanks.
PS: For instance of sharing the exception was issued in the SimpleColumnFilterPanel_Disposed of SimpleColumnFilterPanel.cs as the datagriview and datagridviewcolumn object were already disposed in SetShowFilter of ColumnFilter.cs .
Hi Ewan,
You’re able to SAML SSO 2.0 in your Wisej.NET application.
It’s also possible to use it with the newer Wisej.NET 3.0 if you decide to go with that route in the future.
HTH,
Alaa
Hi Alaa
Given I am going for the Community version initially do I need to do anything?
Hi Emiliano,
Attached is a sample app.
The event you’ll need is the DocumentCompleted even.
You can use this.iFramePanel1.Eval(“some_js_code”) to evaluate javascript in the iFrame.
on the Client side, this.iFramePanel1.Eval(“this.getWindow()”) to get the framed window, and this.iFramePanel1.Eval(“this.getDocument()”) to get the framed document.
can also do this this.iFrame1.Call(“My_js_function”) and in My_js_function use this.getWindow() or this.getDocument(). If CORS allows it it returns the window or the document objects.
HTH,
Alaa
//
Hi Emiliano,
First of all, you’ll have to make sure that the website you’re framing is from the same origin, otherwise, the browser would block all cross-frame javascript.
There’s a similar topic here on the Forum, you can read all about it here.
Best,
Alaa
//
it doesn’t happen if I switch to “.designer.cs” and the save from there…
I don’t know how to send a sample… I think is a disegner issue…
Hi Davide,
Implementing such a feature would be rather hard in a browser.
You can theoretically use the ClientFileSystem extension to make it easier and have the browser load files from your client’s File System.
But, everything would be handeled on the Server side, that means that everything would be uploaded regardless and you’ll have to compare your hash checksums on the server.
That would be expensive in terms of resources.
You can also try to use javascript for the Client side operations, but that would require calculating the Checksum as chunks otherwise the browser would crash if the file is too big.
If you need additional help with this issue, you can check out our Professional Service Packages!
HTH,
Alaa
//
Hi Davide,
Unfortunately, we couldn’t reproduce the issue!
Can you wrap up a sample and send it here?
Thanks!
Alaa
//
Hi Ewan
Did you try adding roles to allow your users to connect to your app?
The configuration you did would deny any access to your application, you should atleast define certain roles for your users to allow them to connect.
For more info, you can head over to Microsoft’s Documentation | Authorization for more details.
As for the difference between Application.User and Application.UserIdentity is the following:
The User property simply gives you “security” information, such as the user’s SID.
The UserIdentity however would return the WindowsIdentity type related to the user currently connected to the client.
You can read about them over at Microsoft’s Documentations: WindowsIdentity Class – IPrincipal Interface
HTH,
Alaa
//