Hello,
Can you please attach a a screenshot of the DevTools console?
TIA,
Alaa
You need to set in Default.json
Snippet
“impersonate”: true
Then you can do this:
Snippet
// Because "impersonate": true is now active, // this picks up the client's Kerberos/NTLM identity: var identity = WindowsIdentity.GetCurrent(); var adUser = identity?.Name ?? "unauthenticated"; Debug.WriteLine($"Logged-in AD user: {adUser}");
Hi Wilfred,
IIS Express doesn’t support ASP.NET Core. ASP.NET core uses kestrel and is self hosted.
IIS on the other hand has the ASP.NET Core Bridge Handler which is native (not managed).
Also, Authentication by IIS is not handled by Wisej.NET, and unfortunately it’s out of scope for the free tier support that this forum offers!
If you’d like additional support, you can order a professional support package.
For more info, please visit our Services section on our website.
Best Regards,
Alaa
OK, so actually using the IIS Express profile when starting the page in the debugger.
Uncommenting this line in web.config:
Snippet
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
And uncommenting and changing to this:
<aspNetCore stdoutLogEnabled="false" hostingModel="InProcess" processPath="bin\Debug\net9.0\MGRegnskapWisej.exe" arguments="" />
In startup.cs I added this:
Snippet
app.MapGet("/whoami", (Microsoft.AspNetCore.Http.HttpContext ctx) => ctx.User.Identity?.Name ?? "unauthenticated") .RequireAuthorization();
And I can confirm that when browsing to /whoami it is working.
But when I browse to http://localhost:54429/ I get a blank page. And no code in Program.cs is executed.
So the question is can it work in IIS Express and what am I missing now?
I have uppdated the launchSettings.json for the IISExpress profile:
The project’s properties enable Windows Authentication and disable Anonymous Authentication. Open the launch profiles dialog:
Snippet
{ "profiles": { "MGRegnskapWisejWebDesktopApplication": { "commandName": "Project", "launchBrowser": true, "environmentVariables": { "WEBSITE_PATH": "$(MSBuildProjectDirectory)" }, "applicationUrl": "http://localhost:5000" }, "WSL": { "commandName": "WSL2", "launchBrowser": true, "launchUrl": "http://localhost:5000", "environmentVariables": { "ASPNETCORE_URLS": "http://localhost:5000", "WEBSITE_PATH": "$(MSBuildProjectDirectory)" }, "distributionName": "" } }, "iisSettings": { "windowsAuthentication": true, "anonymousAuthentication": false, "iisExpress": { "applicationUrl": "http://localhost:54429", "sslPort": 0 } } }
But it is still not working.
Alaa Thanks for your respons.
I have attachmet sample project without bin folder.
Thanks
Nicky
Tanks Julie for your explanation and suggests.
I chose to use the HTML approch on cell format event.
I Know to embedd .png or emoji icon whith this code:
’emoji
e.Value =”<span role=’add’ style=’cursor:pointer; margin-right:10px; font-size:20px;’>➕</span>”
‘png
e.Value =”<img src=’resources/Add_01_24.png’ role=’add’ style=’cursor:pointer; width:20px; margin-right:10px;’ />”
But if I want to use .svg icon from wisej themes i don’t know how do this.
I tried with this:
e.Value = “<svg role=’add’ class=’icon’ style=’width:20px;height:20px;fill:green;margin-right:10px;’>” &
“<use xlink:href=’#icon-error’></use>”
where ‘#icon-error’ is the thema icon,
but not work. The problem for me is how to reference to theme icon in HTML syntax.
Any suggestion?
Try the UserControl attached and use a monospaced font like Courier New
Yes, this should be possible using the letter-spacing property:
https://www.w3schools.com/cssref/pr_text_letter-spacing.php
Here’s what it looks like in plain HTML:
<input type=”text” style=”letter-spacing: 2px;” placeholder=”Spaced letters”>
style=”letter-spacing: 2px;” is the css that you would need
-Julie
It’s working as expected, not a bug.
When a datagridview is data bound the rows are all virtual. They get created and destroyed all the times allowing the grid to handle unlimited number of rows. There is no instance of a cell that can be used like that.
The real rows must be created.
One way is to use datagrid1.Fill(data) instead of DataSource = data.
Another way is to iterate the rows and force the creation of the real rows:
Private Sub DataGridView1_DataBindingComplete(sender As Object, e As DataGridViewBindingCompleteEventArgs) Handles DataGridView1.DataBindingComplete
For i As Integer = 0 To DataGridView1.RowCount - 1
Dim r = DataGridView1.Rows(i)
Next
End Sub
In any case, the control should be created only in Clone() not in New().
The best approach is not to use a child control. It uses a lot of memory for large data sets. Datagrids should not be used like the datarepeater. It’s better to format the cell content using html to display buttons or icons or anything else and detect the click using the Role property of the click event. In html just add role=’delete’, role=’add’ and when clicking on the html in a cell the click event will carry the role string.
Hi Nicky,
You can use the appSettings.json approach like you mentioned above, however if you’re running into issues with running queries on the DBContext, then it could be an issue of how you’re injecting the service into the Service Container.
I recommend heading to our documentation about Dependency Injection.
Can you wrap a small runnable sample that would showcase the issue?
Best Regards,
Alaa
Hi Frank,
I have attached an example developed with Wisej 3.5
Ciao Gabriele,
It’s probably a permissions issue. Check out these AndroidManifest permissions:
https://developer.android.com/training/data-storage/manage-all-files
https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE
https://developer.android.com/reference/android/Manifest.permission#WRITE_EXTERNAL_STORAGE
https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE
I believe there are other ways to access the files in that directory, but would be more difficult to implement.
Best,
Levie
Hi Gabriele,
apologies for this late answer but I had to research a bit.
Here is the status:
Sorry for any confusion.
Best regards
Frank
For the overall control, you can use a TableLayoutPanel. You would need to have some merged columns (ie colspan=2) in order to get the layout right.
For the blue grids (see attached pictures), you could use a single row datagridview inside of the tablelayoutpanel.
If you require further assistance or want us to produce a sample for you, you can purchase a consulting package at https://wisej.com/services-packages/
You’ll just need to look at how it’s implemented in the sample. There is no separate extension or nuget package for SAP 3D Viewer.
-Julie
Hi Angelo,
please provide us with a compilable test case that includes the binding that does not work for you
and we can investigate further.
Best regards
Frank
Hello Julie,
thank you very much for the quick reply. I have looked at your code, my scenario is slightly different, but I have found the error.
But that shouldn’t be relevant. I opened the Page1.vb[Design] designer view -> Properties -> MenuBar ->MenuItems(Collection) ->spacer and set Enabled to False. Thought that was it.
With the help of your code I regocnized that at the file Page1.Designer.vb the line
Me.spacer.Enabled = False
is missing. Add this and the problem is solved.
But now it becomes strange. Opening the Page1.vb[Design] designer view again, navigating to spacer -> Enabled = True. Leaving the dialog on OK or on Cancel
Me.spacer.Enabled = False
is missing again at Page1.Designer.vb.
For now, I will pay careful attention on Page1.Designer.vb and the problem is solved for me.
Ottilie
See here: https://docs.wisej.com/docs/getting-started-1/license-activation#server-license
Try deleting the .lic file and regenerating it and see if that solves your issue.
Just for reference, this link may be helpful as well: https://docs.wisej.com/deployment/troubleshooting/license-activation
-Julie
I’m not sure how yours is set up, but when I try to reproduce, the spacer does not change back color on hover. See my sample.
-Julie