Questions tagged [asp.net-4.5]

Refers to the version 4.5 of the ASP.NET web application framework introduced with the .NET Framework 4.5

Refers to the version 4.5 of the ASP.NET web application framework introduced with the .NET Framework 4.5

616 questions
1
vote
2 answers

How to add Azure AD sign-in to old Webform solution? Framework 4.5

After looking at many code-sites and tryed out code sampels and ideas, I can't find a working way for my situation: I just want my old webforms app to get Azure AD sign in possibilities. The old webapp is still selling very well so plan is to extend…
1
vote
3 answers

Cannot reach an otherwise reachable web API, with dots in URL

I have a web service deployed on IIS 8.5 (Windows Server 2012 R2) which has to be called passing four arguments. They are not optional, and are to be included directly in the URL, without a query string, as such: ..…
StackLloyd
  • 409
  • 2
  • 9
1
vote
1 answer

MachineKey in web.config going out of sync between two IIS applications

We've got an ASP.NET 4.5 WebAPI service that is hosted on two seperate AWS instances that are behind a load balancer. Both of these machines have a standard system.web configuration section containing the machineKey element with both the decryption…
1
vote
1 answer

How to get a value from HTML table based on row-level checkbox in C#?

I have an aspx page including three HTML tables. One of the tables in HTML is shown below: …
Eray Balkanli
  • 7,752
  • 11
  • 48
  • 82
1
vote
2 answers

TypeScript output isn't being combined

I have the following setup: tsconfig.json { "compileOnSave": true, "compilerOptions": { "module": "none", "outFile": "js/app.js" } } MyApp.Main.ts class Main { constructor() { Utilities.init(this); …
qJake
  • 16,821
  • 17
  • 83
  • 135
1
vote
1 answer

ASP.Net Webforms - pages clientIdMode

I am in the process of upgrading a legacy ASP.Net Website (Web Forms) from .NET 3.5 to .NET 4.5. I recently noticed after the upgrade some ASP.Net controls were re-named from ctl00_Content_dropDown1 to ctl00$Content$dropDown1 in the HTML, breaking…
Kyle B
  • 2,328
  • 1
  • 23
  • 39
1
vote
1 answer

Entity Framework C# - DbGeometry POLYGON doesn't work

i have a problem with WKT and DbGeometry working together. When i use POINT as geometry like this example it works good. DbGeometry myGeometry1 = DbGeometry.FromText("POINT (30 10)"); DbGeometry myGeometry2 = DbGeometry.PointFromText("POINT (30…
1
vote
0 answers

How can I avoid a false positive in potentially dangerous Request.Form value

I recently recieved an error email from a user trying to log in using a valid randomly generated password that appears to have some unicode. A potentially dangerous Request.Form value was detected from the client (Password="zG&2W") How can I…
Chad
  • 1,512
  • 1
  • 16
  • 40
1
vote
1 answer

Request time out 500 in asp.net4.5

When CPU Utilisation riches 70% to 80 % at that time when user call web service method for e.g like time 12.01.00 but it riches to database server after one minute like 12.02.00 and database server gives response in fraction of milliseconds for that…
Jyoti
  • 19
  • 3
1
vote
1 answer

Asp.Net Forms Authentication SSO between 4.5 and 4.6.1 web applications

Sigle-Sign-On between 4.5 framework application and 4.6.1 framework application is not working. My current and previous web applications are hosted under the same IIS website. One is 4.5 version and another is 4.6.1 version. But my cookie create in…
1
vote
1 answer

Ef's .Include with ParallelFor

I am having issue with caching data in memory with EF's Include(). var data = _context.Users .Where(x => x.IsTrainee) .GroupJoin(_context.Feedbacks.Include(x => x.User), u => u.UserId, f => f.AddedFor, (u, f) => new {u,…
1
vote
1 answer

Cant query or insert on mysql database using EF6

Ive been working with a local MySQL database which has been working fine until we deployed to a server. The webapi was able to query and do any CRUD operations while the database was locally. Since it was deployed I got this error: "Can't create…
marsalal1014
  • 1,897
  • 3
  • 17
  • 24
1
vote
0 answers

Can I Inject user request data into model in action filter using MVC style DI

I am creating an Action Filter and in OnResultExecuted I would like to check the request for a complex object which I have a set of models to represent the data. I prefer to not manually parse the request and instead use something similar to the…
matthewdaniel
  • 1,842
  • 4
  • 21
  • 35
1
vote
1 answer

upgrade to .NET 4.5

I recently had a C# web solution where I had to upgrade from .NET 3.5 to .NET 4.5 to upgrade TLS 1.2 security. I changed the build setting in the properties of each project of the solution which now builds just fine. I am also able to update the…
Davidp04
  • 145
  • 1
  • 7
  • 17
1
vote
2 answers

How to create MVC Extension Method for Dynamic type

I want to create Extension methods for dynamic type, but for some or the other reason i get error while compiling the code. below is my code sample The method which i am using is public List getStates() { return new List(){ …
Lijin Durairaj
  • 4,910
  • 15
  • 52
  • 85
SchoolID