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
4
votes
1 answer

.NET 4.5 and WCF Request Compression

We have a web application hosted on a third party hosting environment. The server application exposes some WCF RESTFUL services to our iPad applicaitons. The WCF services are .svc-less and are registered in Glonbal.asax file. Sample: …
Aref Karimi
  • 1,822
  • 4
  • 27
  • 46
4
votes
3 answers

ASP.NET 4.5 Bundling in Debug Mode - Stale Resources

Is there any way we can make the ASP.NET 4.5 Bundling functionality generate GUID's as part of the querystring when running in debug mode (e.g bundling turned OFF). The problem is when developing locally, the scripts/CSS files are generated like…
4
votes
1 answer

SimpleMembershipProvider WebSecurity.InitializeDatabaseConnection failing with an empty sql database

I just added a sqlserver connection string. fresh new database. I checked the connection is fine on server explorer. Then referenced it in…
MoXplod
  • 3,813
  • 6
  • 36
  • 46
4
votes
1 answer

C# .net 4.5 async delegate

This does not throw compile error, but why? public async void DoSomething(object arg){ ... } Action myAnonActionDelegate = DoSomething; Shouldn't "DoSomething" have a signature of type Func as opposed to Action? In fact…
Alwyn
  • 8,079
  • 12
  • 59
  • 107
3
votes
1 answer

Is it possible to call async Page_Load in asp.net 4.5?

I wish to know whether it possible to call async Page_Load in asp.net 4.5 like async controllers in ASP.Net MVC 4. If it is possible, how do we use async events in asp.net?
Prasanth
  • 3,029
  • 31
  • 44
3
votes
1 answer

Removing ASP.NET_SessionId from an ASP.NET application

I am changing session state in: It changed correctly, but one issue I am facing is default the "ASP.NET_SessionId" is also showing. I didn't understand what I am going wrong. How can I fix…
sarathy
  • 33
  • 2
3
votes
1 answer

Calling PLSQL Procedure in ASP.NET

I have a project to be started immediately using VS 2013, .NET 4.5.1 and Oracle 12. What I need to do is Using the API that is provided to me, I need to call the procedures that are in PLSQL and get the value of the parameters. From those values I…
Parkavi
  • 157
  • 1
  • 4
  • 17
3
votes
2 answers

Integrating async await into synchronous methods

I've been banging my head against a wall for two days now, and frankly I'm annoyed with myself because I just can't seem to get it. I'm in a webapi context. During this request I need to send some data to one of our other systems, this system is…
Jack Pettinger
  • 2,715
  • 1
  • 23
  • 37
3
votes
1 answer

UseLegacyPathHandling is not loaded properly from app.config runtime element

I'm trying to use the new long path support at my app. In order to use it, without forcing clients to have the newest .NET 4.6.2 version instelled on their machines, one should only add those elements to his app.config (see the link for more info…
Ofir H
  • 31
  • 5
3
votes
1 answer

How to debug: Multiple assemblies with equivalent identity have been imported?

I just upgraded an MVC project from .NET 4.0 to 4.5 and I'm getting some errors when trying to build. I have no idea where to start debugging this, so any pointers in the right direction would be appreciated. Or a solution, of course. Multiple…
Martin Hansen Lennox
  • 2,837
  • 2
  • 23
  • 64
3
votes
1 answer

Trouble after trouble trying to integrate custom Javascript into an ASP.NET webforms app

I'm in a pickle here.... I'm trying to create a new, pretty much standard ASP.NET Webforms app targetting .NET 4.5.2. I've done it many times before - but never ran into these problems (and can't quite figure out WHY they happen now and never…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
3
votes
1 answer

Get legacy CAS Model value programmatically in ASP.NET

I use VS 2012 and ASP.NET 4.5. How can I know if legacy CAS model is enabled programmatically in C# (executing my code in ASP.NET 2.0 - CLR 2.0 , and ASP.NET 4.5 (CLR 4.0) ? and which level ?
Kiquenet
  • 14,494
  • 35
  • 148
  • 243
3
votes
1 answer

Lazily initializing AutoMapper

I've been doing some performance stats on an ASP.NET 4.5 Webforms app, which seems a bit sluggish on initial startup after a fresh deployment. One of the points I noticed is that creating the AutoMapper maps does take some time. Since those maps are…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
3
votes
3 answers

Web Api 2: [Required] for value types?

Using the [Required] data annotation in Web Api input models only seems to check for reference types being instantiated to null: public class MyInputModel { [Required] // This works! ModelState fails. public CustomClass MyCustomProperty {…
Dave New
  • 38,496
  • 59
  • 215
  • 394
3
votes
1 answer

What are differences between ASP.NET4 and ASP.NET5 Http pipelines?

I have had a read on what's new in .NET4.6 and one of the things is ASP.NET 5 which I am quite excited about. One of the new things is New modular HTTP request pipeline, however there is no more info on how exactly is it going to change. The only…
Matas Vaitkevicius
  • 58,075
  • 31
  • 238
  • 265