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

RegisterClientScriptResource NullReferenceException in a Child IIS Application

I upgraded from .Net 4.5 Beta to the RTM version, and now when I have a standard WebForm page where I had a generic tag I get a NullReferenceException that looks like this: [NullReferenceException: Object reference not…
Scott Salyer
  • 2,165
  • 7
  • 45
  • 82
2
votes
2 answers

Is it possible to disable/override a ScriptResourceMapping requirement?

I upgraded a WebForms project to .net 4.5, and received this error: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive). I'd like to enable…
Jerph
  • 4,572
  • 3
  • 42
  • 41
2
votes
3 answers

Extra characters added to multiline textbox

The issue I am having is that when I create a multiline textbox, it prepends (carriage return line feed) characters. I am using .NET 4.5. I created an empty project with just a multiline textbox:
Sean
  • 23
  • 3
2
votes
1 answer

ASP.NET 4.5 MVC4 Model Binding Issue - Cannot define any models

I'm having trouble with MVC4 not being able to bind to anything. For Example: public class Question { [Key] [Required] public Int32 QuestionID { get; set; } [Required] public Int32 SurveyID { get; set; } …
rnd_keith
  • 31
  • 5
2
votes
1 answer

How to access foreign key description in ASP.Net 4.5 Web Forms model binding

In ASP.Net 4.5 Web Forms, I have a grid which uses the new Model Binding feature, backed from Entity Framework:
Mike Kingscott
  • 477
  • 1
  • 5
  • 19
2
votes
1 answer

Move Users and Passwords to new Membership database

I am trying to move my membership database, created in .Net 4, to a newly created .Net 4.5 membership database. The .Net 4.5 database has a different schema that the old .Net 4 database. So I created a new 4.5 membership database and am trying to…
Basquiat
  • 119
  • 5
  • 15
2
votes
2 answers

HTTP Error 500.0 - Internal Server Error with VS2012 .NET 4.5 local development server

I installed Visual Studio 2012 including .NET 4.5. When I make a default MVC 4 Web Api application and attempt to run it I get an Internal Server Error 500.0. I'm wondering if anyone has run into this? I re-installed .NET 4.5, I also have all of the…
2
votes
1 answer

MVC Web API, get sub items

I have a database with two tables. Countries and Cities where each city has a relation to a spesific country. In my ASP.Net Web API I can get a list of countries by a GET request to http://example.com/api/countries to run the CountriesController.…
2
votes
2 answers

alternative for web deployment projects in VS 2011

I am trying to find out what is the alternative to using the Web Deployment projects in VS2011 as they do not seem to be supported anymore. We have a number of projects where we are using them to share .ascx components among different…
Robert Ivanc
  • 1,402
  • 17
  • 32
1
vote
1 answer

Authorization in .Net 4.5 C# Api

I am using a .net 4.5 framework application which i am using as Endpoint i want to add apikey to protect it on environment basis. So In Dev, UAT and Prod Web.Config file (using transform thing to fetch values from primary Web.config file) i want to…
1
vote
1 answer

Not getting past GetAwaiter().GetResult()

I have a PostAsync method in an internal part of my code that doesn't seem to ever return a response. However, I use it synchronously via .GetAwaiter().GetResult(). The target framework is net45. public async Task PostAsync
TheDoomDestroyer
  • 2,434
  • 4
  • 24
  • 45
1
vote
1 answer

Cannot acces object from javascript

In my ASP.NET MVC application, in ..\Views\Shared_Layout.cshtml I have the following line of code: > File MyConstants.js contains below: var MyConstants =…
Willy
  • 9,848
  • 22
  • 141
  • 284
1
vote
0 answers

Some entity framework model files are not being added to the project folder 'Model'

I have an ASP.NET MVC application which is using Entity Framework. One of the projects in the visual studio solution uses Entity Framework and contains an edmx file under Model folder. Within this folder there are some model files that are…
Willy
  • 9,848
  • 22
  • 141
  • 284
1
vote
2 answers

HOWTO: Get client IP address from request in ASP.NET MVC

I have an ASP.NET MVC application (using .NET 4.5) deployed on a web server which has IIS 8.5 installed. I have created a custom controller class where I do some stuff and it inherits from System.Web.Mvc.Controller: public partial class…
Willy
  • 9,848
  • 22
  • 141
  • 284
1
vote
1 answer

What does the "-site" option for aspnet_regiis.exe do?

I have searched everywhere and can't find any documentation on this. My guess is that it inherits maybe a machine key? Thanks in advance.
HumbleBeginnings
  • 1,009
  • 10
  • 22