Category "asp.net"

How to include XmlComments for Swagger in only one API Controller (not all Controllers in the same project)?

I'm trying to add more information about one of my API routes using Swashbuckle. I only need to enable XML comments files in Swagger for one of my API routes. B

Export to excel in c# results in System.OutOfMemoryException

I have a DataTable with 200,000 rows. I want to export DataTable in excel file. But it gives System.OutOfMemoryException error. using (ExcelPackage objExcelPa

How to use C# 6 with Web Site project type?

Updated an existing Web Site project type Visual Studio 2015, I changed the Framework to 4.6. I then expected to have all those new features available in my co

There are more columns in the INSERT statement than values specified in the VALUES clause [closed]

I want to save new record in SQL table. one of this table field is "username" that I want to add record by using session and other fields are

Azure DevOps Build/Release Pipeline Transform

We're gearing up to use DevOps for our CI/CD process involving ASP.Net web applications, and I'm having trouble getting to "best practice" for the web.config tr

Programmatically creating WPF/ASP.net CRUD UI from Database

I have a requirement to build forms directly from a specific dataset format. I've gone one step of being able to create the database from the dataset using F#.

Optional section was not defined error in nested layout pages

I have a _Layout.cshtml file that contains the following line. @RenderSection("Scripts", required: false) And then I have a StorageLayout.cshtml file that spec

WEB API Google Authentication access denied

I am trying to use google authentication API to have a google log-in on my web API project. Created the OAuth and I enabled the Google+ API added the Clie

getting error 'must be placed inside a form tag with runat=server', but it is

I'm getting the above error message. However, the page in question does indeed have a tag with runat="server" attribute on it (at design time) and the control

Fresh ASP.NET Core API returns empty JSON objects

I have made a .NET Core Web API project to test it out. My problem is, that the API returns an empty JSON object, when I request the endpoint, which is locate

How to run 'dotnet dev-certs https --trust'?

I'm new in ASP.NET. Environment: Ubuntu 18.04 Visual Studio Code .NET SDK 2.2.105 I'm in trouble with some command running. I was reading tutorial at https

Bad Request - Invalid Hostname with Asp.net WebAPI project in Visual Studio 2013

I am running a very basic webAPI project in Visual Studio Pro 2013. It runs fine on localhost on my machine. I then try and go to a browser from a different mac

Problem with InsertCommand in SqlDataSource. ERROR: System.Data.SqlClient.SqlException: 'You must declare the scalar variable'@EXPEDIENTE'.'

I am a newbie and I have recently started working developing a web application, I do not have much experience so if you are able to solve the problem and explai

am try to use thead and tbody with gridview in asp.net

I want to know how to use thead and tbody in gridview in asp.net and this my html am trying to add page control presented by DataTables I have to use thead and

Multiselect dropdownlist with Checkbox in asp.net

I'm using bootstrap multiselect dropdown list with checkbox.its working well without master form.but its not working with master forms: <asp:Content ID="Con

Entity Framework Core multiple connection strings on same DBContext?

I have an Asp.Net Core app with Entity Framework Core that I initialize as follows: services.AddDbContext<ApplicationDbContext>(options => o

Trouble publishing ASP.NET project with Code First database to Azure - Permission

I cannot migrate my Code First database to Azure - Error hints at permission, but I can't figure out what's missing? I have created an empty SQL-database in Azu

Trouble publishing ASP.NET project with Code First database to Azure - Permission

I cannot migrate my Code First database to Azure - Error hints at permission, but I can't figure out what's missing? I have created an empty SQL-database in Azu

Elsa Workflow - How to implement cascade dropdown

I have two dropdowns in an activity. One of them it's populated dynamically from OptionsProvider attribute. I would to like to populate a second dropdown from t

Error in exporting fastreport to pdf on asp.net c#

I want to export .frx report that designed by FastReport as an pdf or excel file on a c# web form application like code below: public static bool ShowRepor