Content
Cost of hosting ASP.NET Core Blazor Server App Vs MVC
To host a Blazor Server App, an Azure Service that can handle SignalR is needed. To host a MVC App, serverless or app service is only needed. Out of these two, which is more cheaper to host for an application that has 10,000 users and 500 users active…
When is a .cshtml file appropriate in Blazor (server side)?
The sample app created by Visual Studio for a server side Blazor creates _Host.cshtml and Error.cshtml. Everything else is a .razor file. So... when, if ever, should we be creating a .cshtml file? And why are these two files cshtml instead of…
Is there a way to say an entry is unique across 2 column values?
My question is in the context of Entity Frameworks talking to SQL Database. I have a class as follows: public class County { public int Id { get; set; } public string Name { get; set; } public int StateId { get; set; } …
Change listview layout_below in code
Hello It's xamarin android platform i have a listview <ListView android:layout_width="match_parent" android:id="@+id/dgvresult" android:layout_below="@id/title1" …
How to display message as invoked
Hello i have a list of sunset for each day for a period of a month like the date and time sunset i would like to check every seconds if sunset time has arrived and then display a message. i implemented using a timer but the message is not displayed …
Unable to read Nikon EXIF tags
I've encountered a problem reading certain EXIF tags from Nikon cameras. I've tested images taken with couple different Canon cameras (no problems) and several Nikon cameras (D850, D5, D6, Z9). With the images from the various Nikon cameras, .NET (I'm…
Once again when will MS fix VS 2022
So I have now spent another couple of hours trying , pleading with Visual Studio to get it together. Notice the status msg, "All Succeeded" meaning no errors but VS shows errors and I have not been able to get rid of them. Clean, Rebuild,…
System.IO.FileNotFoundException: 'Could not load file or assembly
I have an application in .net core. the application was running fine, but the error started coming after I installed dotnet add package Microsoft.AspNetCore.Authentication.Negotiate --version 6.0.14 Once I installed this package and put this line of code…
Why are there variables of interface type, in c#
private ICollection<Resistor_Info> _resistorlist; “ICollection” Can be a type?
how to fix : Could not load file or assembly 'Azure.Core'
I have a .net framework 4.2 Test Project, which calls methods in .net 4.2 a class library called Interface. Interface references another class library that holds the nuget 'azure.core' in the test project , I tried adding a bindingRedirect to…
Is it accurate to view a .razor file as primarily a HTML file?
I am writing a blazor server side app. As I create the .razor files, I'm coming to view them as HTML files (heavy on the bootstrap) where in places I bring in an @event, @variable, and @directive as needed. It's real close to using JavaScript instead of…
web config page access and permission not working with Global asax Routing
How do I give permission to a web page or web form for all users in web config file when routing is done in the Global asax file? This is how I grant permission to all users in the web config file for a page named topic.aspx <location…
Get a list of files in a directory in descending order by creation date.
I have created a folder that a user can copy and paste a monthly newsletter PDF into. Trying to get the monthly newsletter PDF list of files and sort them by the day they were created on the crownfile page, and then select the last recently modified file…
Is it possible to show empty label value if the value of a column used for date or time is null?
I have column for Name, Date and another one for Time. If the values of date and Time columns are null or empty, how do I get to still show the label value in null data value? Is this Possible? please how can I do that?. Here is what I mean in the…
How can I create an app icon on iOS?
I don't know how to create an app icon for my iOS application. I have tried to use Assets.xcassets but it's not working in Visual Studio for Mac 17.6 Preview (17.6 build 402) after adding Maui to my .csproj…
How should I structure my Entity Framework access/query classes
I've placed all my EF model classes that represent my tables in the Models folder along with my DbContext class - as recomended. I now want to create a class for each table that access the DB using DbContext and the appropriate model class. This is the…
Access Color inside Resources' Colors
Hi, I am trying to access a Color inside the Resources->Colors.xaml but getting this error: System.Collections.Generic.KeyNotFoundException: The resource 'ConnectedIconLight' is not present in the dictionary. at at…
Where to store Access Token after Web API Authentication?
I am having 2 application components: Web API protected with JWT WEB APPLICATION WEB APPLICATION authenticates user with login page (username, password) to the WEB API and gets the Access-token & Refresh-token. Where do I store the…
How to load and run a .NET 6 project without .SLN file using VS 2022--
So basically my problem is - how do I run a .Net 6 Core project that does not have a .sln file. I downloaded a sample code from github for a project but when I went ahead to browse the code I discovered that the project does not have any .sln file. There…
Request length difference Azure app service deployed on Windows and Linux
Hi, I have one application implemented using web api 6 which is deployed on windows flavor. which is causing issue while trying to upload even 100 mb file "the page was not displayed because the request entity is too large." How can increase…