All Questions
Tagged with .net-6.0 asp.net-mvc
138
questions
0
votes
1
answer
37
views
How to create a custom object from a register page
I want to create a Department object that doesn't exist yet an assign it a AppUser along side a Person object then add it to database during the registration process with .net 6.0 ef identity ...
0
votes
1
answer
52
views
WebOptimizer cache busting not working on Azure
I am using ASP.NET Core Web Optimizer. It has cache busting feature that will append a unique string to the end of script or CSS links.
A sample of the appended string is like this: ....script.js?v=...
1
vote
1
answer
40
views
How to insert a custom object into an User using foreign key
I'm currently having problem with displaying a custom object property because the program doesn't seem to insert the associated value from the table with appropriate foreign key.
Here are the codes
...
0
votes
1
answer
43
views
Trouble posting contents of file input to controller action using jquery in ASP.Net Core 6.0
I am attempting to post a file to a controller action in order to save it, and have run into two different problems, when using $.post to post the data as shown here:
$("#setting-form").on(&...
0
votes
1
answer
63
views
.Net 8.0 after immediately running it displays "Cookie.Expiration is ignored, use ExpireTimeSpan instead"
I have Converted my mvc application from .net core 2.2 to .net 8.0, but when it is running, it is not showing login page instead of it is throwing error like below,
I am using Redis session. I have ...
0
votes
1
answer
22
views
Table header shifting the right after clicking button
I have a table that works beautifullly but for some reason when I click on my testing button the table headers shift to the right. I tried using `style="position:fixed" and I tried taking ...
0
votes
1
answer
75
views
.Net6 how to open pdf after returning it as a file and download
I generate a pdf in my controller and return it as a file.It downloads it but what i want is i want to open it automatically after download but not in browser, i want it to be opened in whatever the ...
0
votes
0
answers
83
views
Dotnet API Error indicating: The System.Text.Json.JsonElement type isn't configured for serialization within this ObjectSerializer instance
I have dynamic models structured in columns and content within Dotnet API. The error indicates that the "System.Text.Json.JsonElement" type isn't configured for serialization in this ...
0
votes
0
answers
77
views
JSON exception during MongoDB deserialization
I am encountering a 'System.Text.Json.JsonException' with the message "'O' is an invalid start of a value" while attempting to deserialize MongoDB BSON documents using the ASP.NET Core ...
0
votes
0
answers
20
views
How can I set the session in the action method and get the session value in _Layout .cshtml on the drop down on change event in .net 6 MVC?
I have requiremnet of multilingual for a web page . based on the language select in drop down the whole pages will change to specific language which are coming from DB for each fields of the page.
...
-1
votes
1
answer
183
views
TXTextControl .NET - Localization and satellite assembly installation
Tx Text Control USER INTERFACE TRANSLATION
I am trying to understand how to build a satellite assembly but I am not really grasping the idea of how to begin.
So far, I have been running the project in ...
0
votes
1
answer
42
views
Why am I not receiving data from a form loaded in a partial page?
I am loading a partial in the homepage, like this:
<div class="container">
@await Component.InvokeAsync("ProdutosConsultores");
</div>
And in this partial I am ...
0
votes
2
answers
382
views
Can not use BackgroundService as a HostedService in Program.cs
I am using a BackGroundService to do some tasks and those tasks include api calls and db operations so i am using a middleware and dbcontext inside this BackgroundService. I added it as a hosted ...
-1
votes
1
answer
108
views
Write TDD test with Mock for Web API project with dot net 6.0 and Unit Of Work
I have a Web API project, I use Unit Of Work pattern with dot net 6.0 and want to write test for it.
I have a controller like below and a function in it for authentication:
public AuthController(...
-1
votes
1
answer
79
views
Differences in Cryptography between .NET Core 6 and ASP.NET MVC on .NET 4.5
I am using this method in an ASP.NET MVC app on .NET 4.5, and on a .NET Core 6 app. I don't get the same result decryptedValues.
I debug and I found that decryptedByteCount in ASP.NET MVC is 20, but ...