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
0
votes
4 answers

EF 5.0 inserting null into smallint column

I have a column with SQL type of smallint (EF type of Int16) that I want to insert a null value into but when I use the below code I get the error that null can not be converted to short. How can I get this one line if statment to allow me to insert…
user1365911
0
votes
2 answers

There has to be a better way to add these using LINQ, right?

I am new to LINQ and and come up with the below to add new information to my DB using LINQ and EF5 but I am sure there is a more efficant, better, way to do this I just don't know it. I was hoping to get some input on what I can do to acceive the…
user1365911
0
votes
3 answers

Unable to bind LINQ results to drop down

I am new to link and was following How to bind LINQ data to dropdownlist to try and bind my data to a drop down list using LINQ but I am getting the error "Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery) is not supported. Instead…
user1365911
0
votes
1 answer

Trouble Saving object and Child Objects to the database?

I am having trouble to see what i need to correct or add to my controller in order to have my data saved to the database. See below what i have so far. Create method [HttpPost] public ActionResult Create(Team model) { if…
0
votes
1 answer

How to add a view for child action in a one-to-one relationship Given Create method below?

I have 3 entity classes; Team, TeamContact and TeamAddress. Relationships -Team one-to-one TeamContact -TeamContact one-to-on TeamAddress Create Method [HttpPost] public ActionResult Create(Team model) { if (ModelState.IsValid) …
Komengem
  • 3,662
  • 7
  • 33
  • 57
0
votes
1 answer

How To install ASP 4.5 when VS 2012 is installed

I want to install ASP 4.5 on a machine where Microsoft Visual Studio 2012 is installed. .net 4.5 is installed with visual studio. So on this machines there is no 4.5 folder in %Windows%\Microsoft.NET\Framework64 theres only v4.0.30319 which is .net…
Boas Enkler
  • 12,264
  • 16
  • 69
  • 143
0
votes
1 answer

Making vs2010 project dll compatible with visual studio 2012

I have created a project using vs2010 ,now i am using vs2012 but i am geting error as Error 1 The type 'Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.IInstrumentationEventProvider' is defined in an assembly that is not referenced.…
user1681166
  • 221
  • 2
  • 5
  • 15
0
votes
0 answers

modify the asp.net membership to support open id

I am currently setting up my mvc 4 web application with the out of the box membership functionality included in .net. I would like to expand this functionality to support open id providers such as facebook, twitter, my open id, dotnetopenid etc…
amateur
  • 43,371
  • 65
  • 192
  • 320
0
votes
1 answer

VS2012 - Button Not Posting Back

This has to be simple. Still, I've noticed VS2012 acting very erratic - sometimes it won't generate the designer file entries for example. Has anyone got any idea what might be going on here? I've tried adding the button both in code and by dragging…
IrishChieftain
  • 15,108
  • 7
  • 50
  • 91
0
votes
1 answer

asp.net 4.5 model binding usercontrol within formview

How can I bind usercontrol within formview. If I not use usercontrol everythings work fine , when I move to inputs in usercontrol model binding is not working.
tolahs
  • 1
0
votes
1 answer

Visual Studio 2012, ASP.NET Web Forms & HTML5

I have a question related to Web Forms. Do the ASP.NET Web Controls provided in Visual Studio 2012 emit HTML5 as output? I understand we can use custom controls or content adapters to make web control emit HTML5 even with Visual Studio 2010 and…
Jazz
  • 1
  • 1
  • 1
0
votes
1 answer

MVC 4 bundling not working when deployed Windows Server 2012 RC

I have MVC 4 web app developed on the VS2012 RC that works perfectly on the local machine. But unfortunately looses all styling and JS links on the Windows Server 2012 running IIS8. I am using bundling in App_Start/BundleConfig.cs following…
user1526174
0
votes
1 answer

Asp.net 4.5 "multi-core jitting" not working

I'd like to take advantage of the new multi-core jitting feature in .net 4.5. My web.config is set to targetFramework="4.5" The application pool framework in IIS is set to v4.0 (from what I understand, that is correct) My processor is an i7 with 4…
Chris Haines
  • 6,445
  • 5
  • 49
  • 62
0
votes
1 answer

sporadic NullPointerException in CurrentModuleContainer.Get Asp .Net code when doing async handling

I have an Asp .Net application for which I'm using the new async/await paradigm with .net 4.5 RC. I am using the new task-based async http handler HttpTaskAsyncHandler for handling http request. In my code i'm doing some I/O streaming a file to the…
rony l
  • 5,798
  • 5
  • 35
  • 56
0
votes
0 answers

Using T4MVC with .NET 4.5 in Visual Studio 2012 RC

Does anyone know if this is possible? I can get it to work OK if I build for 4.0 compatibility but when I use 4.5 all my tests fail with the familiar; System.Security.VerificationException: Method …
cirrus
  • 5,624
  • 8
  • 44
  • 62