asp.net-mvc Questions
3
I'm using VS 2019 and working with an ASP.NET MVC project.
I got merge conflicts that had to be resolved manually. The problem is that the button for “Merge changes in merge tool” at the top of the...
Scyphozoan asked 20/5, 2021 at 13:16
9
Solved
So i'm getting this error on my mvc project while working on my form.
The error indicates that I haven't closed the form tag properly.
However, as you'll see below, I have closed it properly.
<f...
Domain asked 27/11, 2020 at 9:55
2
I have set up reCAPTCHA v3 on my ASP.NET MVC project. Everything is working fine and is passing back data properly.
So the code below depends on another dll I have, but basically, the response is ...
Idel asked 18/9, 2019 at 17:47
7
I am using aspnet 5 and MVC 6.
I have created a view component using the instructions in HERE but when I run my website I get an error
A view component named 'XX' could not be found.
AT
@Compo...
Slung asked 25/11, 2015 at 18:4
1
I have two questions. I installed Unity and Unity MVC packages to start investigating it. I got some simple controller constructor injection working by registering some types, so it's going well. I...
Bunker asked 14/11, 2017 at 1:26
7
Solved
I using default ASP.NET MVC 4 validation bundle in my application. In view I have a date field in the format of "dd/MM/yyyy" and jquery validation failed to validate the format. Then I added the be...
Markup asked 31/12, 2013 at 6:16
3
Solved
String or binary data would be truncated. The statement has been terminated.
System.Data.SqlClient.SqlException (0x80131904): String or binary data would be truncated
Sectional asked 1/7, 2016 at 6:3
2
Solved
I have a controller that looks like this
IHttpWrite httpWrite;
[HttpPost]
public async Task<HttpResponse> Post(Request req)
{
return await httpWrite.Write(req, Response);
}
that calls th...
Leighannleighland asked 31/10, 2018 at 14:20
6
Solved
Given the following Razor code:
<tbody>
@foreach (Profession profession in Model)
{
<tr>
<td>@profession.Name</td>
<td>@profession.PluralName</td>
<td&...
Dichotomize asked 28/10, 2011 at 9:44
3
While trying to display currency with the attribute [DataType(DataType.Currency)] and using @Html.DisplayFor(model => model.Variable), the format is not displaying correctly on my OS X computer ...
Chapel asked 11/9, 2017 at 21:51
4
Solved
I am using ClosedXML to generate spreadsheets from C# (asp.net-mvc) and it works great. I have one additional requirement so I wanted to get some feedback on how I could achieve this.
I want to sa...
Kinata asked 1/4, 2014 at 13:6
3
I am using Asp.net 6 web API in my project and I am confused about understanding routing functions. Previously when we build API we use to use following middleware
app.UseRouting()
...Other middle...
Woodworking asked 29/4, 2022 at 20:57
3
Out of the blue our Azure web app is spewing out errors regarding a Culture that is not supported. We load up a list of countries to show on the front page but this is suddenly giving errors. The s...
Cashbox asked 25/1, 2017 at 12:25
4
Solved
I've tried all the solution available at StackOverflow and VS developer community but I'm unable to resolve the error saying.
A product matching the following parameters cannot be found:
channelI...
Dogwatch asked 30/11, 2017 at 16:24
5
Solved
I'm using ASP.NET Core as a REST API Service.
I need access to request and response in ActionFilter. Actually, I found the request in OnActionExcecuted but I can't read the response result.
I'm try...
Spiegelman asked 5/12, 2018 at 6:37
6
Solved
I've checked lots of posts about this error but not been able to fix the problem yet.
I have simple MVC5 website built in VS2013 running on Windows 8 pro. When the site was created the option for...
Gagnon asked 12/2, 2015 at 17:17
3
I was working on a simple record management web app in ASP.NET MVC. The build was successful. However, when I go to Package Manager Console, I always get this error.
The type initializer for 'Syst...
Syncytium asked 21/12, 2015 at 3:5
11
Solved
I can't get intellisense for my own html helpers. My CustomHtmlHelpers.cs looks like this:
using System.Web.Mvc;
using System.Text;
using System.Web;
namespace laget.Web.Helpers
{
public stati...
Elephus asked 24/2, 2011 at 20:23
3
C# 11 has introduced, required modifier, which can be used a below:
public required string FirstName { get; init; }
public required string LastName { get; init; }
[Required]
public required stri...
Baptistery asked 30/3, 2023 at 17:21
1
I'm learning about Clean and Vertical Slice Architecture for the first time and I'm having trouble understanding where Authorization and Authentication would fit in if we are using ASP.NET Core Ide...
Prevailing asked 7/4, 2022 at 14:55
5
Solved
I've got a DB connection string that I'm creating in my web.config:
<connectionStrings>
<add name="DBConn" connectionString="Data Source=<db svr>;Initial Catalog=<...
Bamby asked 15/1, 2010 at 10:26
4
Been looking through and trying all guides i found on this topic but no luck. I am running and MVC project with HTTPS and want to access the debug site with some remote mobile devices to test out t...
Geoponics asked 31/8, 2017 at 16:54
12
Solved
How can I restart(recycle) IIS Application Pool from C# (.net 2)?
Appreciate if you post sample code?
Locke asked 30/10, 2008 at 11:54
11
Solved
Has anyone tried Crystal Reports with Visual Studio 2022?
I have an ASP.NET MVC app using Bootstrap and Crystal Reports. Wondering if I can run and maintain it in Visual Studio 2022...
Ale asked 28/11, 2021 at 14:9
6
Solved
I'm getting the follow error when trying to run my ASP.NET project. Can anyone advise?
Could not load file or assembly 'System.Web.Helpers' or one of its dependencies. The located assembly's manif...
Mincey asked 12/3, 2017 at 23:4
1 Next >
© 2022 - 2024 — McMap. All rights reserved.