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

609 questions
16
votes
5 answers

How to disable System.Security.Permissions.ReflectionPermission usage in new VS2013 Asp.net template so it works on shared hosting

I created a brand new Visual Studio 2013 ASp.net MVC application off of the default MVC template. However I am getting an error message Request for the permission of type 'System.Security.Permissions.ReflectionPermission failed. Is it possible to…
greay
  • 1,605
  • 5
  • 16
  • 34
15
votes
3 answers

Upgrading to ASP.NET 4.5/MVC 4 forms authentication fails

I've just downoaded a VS 2012 along with ASP.NET 4.5 and MVC 4.0 and was kicking the tires with a sample app and found that the forms authentication that works perfectly with ASP.NET 4.0/MVC 3 no longer seems to work with the latest release. When I…
13
votes
1 answer

AspNetSession layout renderer not working

I am using NLog for logging in my asp.net 4.5 website. I have used NLog 4.0. Now I need to use session variables in my logs. So i tries to use AspNetSession layout renderer. This layout renderer is included in Nlog.Web. I have added this dll and…
Deeps
  • 517
  • 9
  • 30
13
votes
2 answers

Azure downloadtostreamasync method hangs

here is the offending code public async static Task AsyncReadBlob(string identifier) { CloudStorageAccount storageAccount = CloudStorageAccount.Parse(storageString); CloudBlobClient blobClient =…
13
votes
2 answers

The predefined type 'System.Threading.Tasks.Task' is defined in multiple assemblies in the global alias

I just have set up a new asp.net mvc 4 project, using the latest .net framework (4.5) in combination with Visual studio 2012. After I added some classes, side projects etc. I suddently notice that I'm receiving 5 times the same warning when I…
Maarten Kieft
  • 5,839
  • 3
  • 26
  • 32
12
votes
4 answers

Is it possible to pass a value to the SelectMethod of a Repeater?

ASP.Net 4.5 introduces new ways to bind data to controls like the Repeater through the SelectMethod property: calls the Codebehind method public…
magnattic
  • 11,529
  • 10
  • 59
  • 109
11
votes
6 answers

Add color options to System.Drawings.Color

In visual studio, when creating controls in the markup(or in code-behind) you can specify colors in HEX format like this: "#FFFFFF", but you also can select from the list of preset colors like: White, Wheat, Window, etc. (See screenshot). Is it…
user194076
  • 8,257
  • 21
  • 79
  • 147
11
votes
1 answer

How to use OpenID providers with unique identifier URLs in ASP.NET MVC4

The new SimpleMembershipProvider implemented in ASP.NET MVC4 allows easy, built-in support for two popular OpenID providers (Google and Yahoo) and three OAuth providers (Microsoft, Facebook, Twitter). The providers implemented in…
nekno
  • 18,739
  • 4
  • 39
  • 45
11
votes
1 answer

Strongly typed data binding and generics?

Suppose I want to bind a generic type (here: Dictionary) to a Repeater using the new ASP.NET 4.5 strongly typed data binding. Then I would have to put down KeyValuePair as the ItemType Property of the…
magnattic
  • 11,529
  • 10
  • 59
  • 109
11
votes
2 answers

Difference between <%: %> and <%#: %> in Asp.Net

I know that we can <%: %> syntax for html encoding that is introduced in .Net 4. But I was reading new features of Asp.Net 4.5, and I got that we have another type i-e <%#: %> that is used for encoding the result of databind expression. I am confuse…
Idrees Khan
  • 7,404
  • 17
  • 59
  • 110
10
votes
3 answers

How to add reference in VS 2015/.NET 4.6?

Has VS 2015 changed drastically on how references are added? I am doing a MVC web project. I wanted to use System.Configuration.ConfigurationManager in my .NET 4.6 application. I went to the the References node and Add Reference... and added…
Old Geezer
  • 10,411
  • 21
  • 87
  • 156
10
votes
2 answers

Using the same template for edit and insert in a list view

I am using WebForms .NET 4.5 and a asp:ListView and model binding. Within that I am using the: to define the appearance of the control. However 99% of the time these layouts are identical. Is there a way to…
TheEdge
  • 7,981
  • 13
  • 55
  • 117
10
votes
2 answers

ASP.NET Active Directory Search

I'm trying to create an intranet Website on ASP.NET MVC 4 using Windows Login. I have successfully done the windows login. The only thing I am stuck up with is searching the active directory with partial username. I tried searching the web and…
9
votes
1 answer

How to pass/receive multiple args to a RESTful Web API GET method?

The usual examples of GET RESTful methods that take a parameter (returning a scalar value rather than a dataset) are shown like so: public string Get(int id) { //get and return the value } ...where the val passed is typically an ID, so you can…
B. Clay Shannon
  • 1,055
  • 124
  • 399
  • 759
9
votes
0 answers

httpCompression override in web.config ASP.NET IIS7.5

I have this code in my web.config for an ASP.NET 4.5 website running in IIS 7.5
Manight
  • 490
  • 5
  • 25
1 2
3
40 41