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

Is the App_Browsers folder still required in ASP.NET 4?

Is the App_Browsers folder still required in ASP.NET 4 sites/applications? I've had this in my site for years, containing only a w3cvalidator.browser file to make the site validate in the W3C validator. Now that Microsoft are very pro-standard,…
EvilDr
  • 8,943
  • 14
  • 73
  • 133
4
votes
0 answers

How will OAuthWebSecurity.RegisterGoogleClient be affected by google's oauth migration?

I am evaluating using Microsoft's built in OAUTH wrappers, specifically looking at OAuthWebSecurity.RegisterGoogleClient which is included with .net 4.5. Looking at the documentation from Google they site a series of deprecations for various oauth…
Aaron Sherman
  • 3,789
  • 1
  • 30
  • 33
4
votes
2 answers

Binding asp:DropDownList SelectedValue to a Boolean doesn't work - any workarounds?

Our UX team doesn't like the checkbox for handling a boolean - they want a asp:DropDownList with two options for true/false. My bool has to be bound using <%# Bind("") %>, as it's in the edit template of a asp:GridView. Here is my…
Nick Niebling
  • 317
  • 3
  • 12
4
votes
3 answers

Add a reference to the System.IdentityModel.Tokens DLL

How do I add a reference to the System.IdentityModel.Tokens dll? It does not seem to come up in the Nuget Package Manager. Do I need to download the DLL? I have .Net 4.5 installed. The following code will not compile without the…
ADH
  • 2,971
  • 6
  • 34
  • 53
4
votes
6 answers

How to hide page name and querystring in ASP.NET?

I want to set URL Masking in asp.net to hide page name and querystring in URL. Currently i am setting below code to perform url rewriting in Global Application File. routeCollection.MapPageRoute("Login", "Login", "~/frmLogin.aspx"); But i want to…
Chirag
  • 317
  • 7
  • 19
4
votes
1 answer

Startup.cs method app.MapSignalR() not generating hubs in signalR-2.0

I'm getting 404 not found error since browser is unable to find /signalr/hubs. I'm using signalR-2.0.0-rc1 in a normal web application (not mvc). Following is the the related web.config settings
HCJ
  • 529
  • 1
  • 6
  • 14
4
votes
2 answers

'Microsoft.AspNet.Web.Optimization' vs 'Microsoft.AspNet.Web.Optimization.WebForms'

What is the difference between these two libraries: https://www.nuget.org/packages/Microsoft.AspNet.Web.Optimization/1.1.0 https://www.nuget.org/packages/Microsoft.AspNet.Web.Optimization.WebForms/1.0.30506
4
votes
2 answers

How to use key down event with Html text box helper in MVC4

How do you add a key down event with this text box? @Html.TextBox("txtbx1", "", new {...} )
Ell
  • 83
  • 1
  • 1
  • 7
4
votes
1 answer

appears to break when upgrading to .Net 4.5 + VS 2012

After upgrading an ASP .Net project from .Net 4.0 w/ Visual Studio 2010 to .Net 4.5 with Visual Studio 2012, the JavaScript code on certain pages stopped working. This was because the "name" attribute on some element (for example, form elements)…
BrianCooksey
  • 1,543
  • 1
  • 12
  • 19
4
votes
2 answers

Dependencies not loading or partially loading

I am trying to work with the MS Lync UCMA 4.0 sdk and just switched to using Visual Studio 2012 (becuase .NET 4.5 Framework is required). I can't figure out what is going on here, I've set the Target CPU to x64 and the Target Framework to .Net…
4
votes
2 answers

How do I install the .NET Framework 4.5 reference libraries on Windows Server 2008 R1?

I have an application whose deploy process builds the source code on the server I'm deploying to. My production server is Windows 2k8 (not 2k8 R2). My app is not compiling as the reference assemblies for .NET Framework 4.5 are not present. I've…
Josh Kodroff
  • 27,301
  • 27
  • 95
  • 148
4
votes
4 answers

setting HttpContext.Current.User throws null reference exception

This is a WCF Oneway operation. HttpContext.Current.User is cleared in those operations, that is the reason I added a behavior that saves the User before it is cleared. Later I want to re-set the HttpContext.Current.User with the value I saved but…
taminov
  • 591
  • 7
  • 23
4
votes
1 answer

How to send a PIN verification CODE to a smartcard using APDU - Using .NET

I am able to connect to the card and now I need to verify the PIN but I´m not able to figure out which code should I use to perform the verification // Verify PIN //HERE IS WHAT I´M NOT SURE WHAT TO USE - Just an Example byte[] pin = new byte[] {…
Guilherme Longo
  • 2,278
  • 7
  • 44
  • 64
4
votes
1 answer

Error while running via virtual directory using Office Interop

I have used Office Inter op library for converting office docs to PDF. I am getting the PDF well if i run through Visual Studio, but i am getting the following error while running via virtual directory. Retrieving the COM class factory for component…
Anoop
  • 95
  • 1
  • 7
4
votes
1 answer

What happened to HttpResponseMessage in .NET 4.5, is there an alternative?

My project was building for .NET 4 and the version of System.Net.Http it was referencing was version 2. I just upgraded to .NET 4.5 because I wanted to do some of this routing stuff and it required me to reference version 4 of the System.Net.Http…
NibblyPig
  • 51,118
  • 72
  • 200
  • 356