13
votes
7answers
8k views

MVC4 Scaffolding Add Controller gives error “Unable to retrieve metadata…”

I'm using RTM version of Windows 8 and VS 2012 Ultimate. I have a MVC4 project using SqlCe 4.0 with a code first entity framework model. Model is very simple: public class MyThing { ...
13
votes
4answers
3k views

ASP.NET MVC 4 + Ninject MVC 3 = No parameterless constructor defined for this object

Before we start, I know this is a very common question and I've been using Ninject for many moons without issues, but now it's come up and I can't figure out a fix. Also, no, none of the results on ...
26
votes
3answers
10k views

How to add Web API to an existing ASP.NET MVC 4 Web Application project?

I wish to add an ASP.NET Web API to an ASP.NET MVC 4 Web Application project, developed in Visual Studio 2012. Which steps must I perform to add a functioning Web API to the project? I'm aware that I ...
18
votes
4answers
14k views

asp.net 4.5 custom membership provider configuration throws strange exception [duplicate]

My web site was initially written in MVC 4.0 RC using VS2010, . I have just downloaded and installed VS2012, and upgraded my project to Dotnet Framework 4.5. In my project I'm using a Custom ...
2
votes
3answers
2k views

MS Identity and Access Tool MVC 4

This VS 2012 extension is meant to allow me to add a local Development STS to my MVC application http://visualstudiogallery.msdn.microsoft.com/e21bf653-dfe1-4d81-b3d3-795cb104066e I follow the very ...
9
votes
4answers
10k views

visual studio 2012 RC Could not load type System.Web.Http.RouteParameter

I had VS 11 Beta, .net 4.5 and MVC 4 beta installed on my PC. I just downloaded the latest RC and now I get this error message when I try to run web projects. I tried reinstalling .net 4.5 and ...
6
votes
1answer
3k views

MVC 4 Intranet Authentication with Custom Roles

I have spent some time searching and found a lot of confusing answers, so I will post here for clarification. I am using MVC4 VS2012 created an Intranet site using domain authentication. Everything ...
6
votes
2answers
1k views

Visual Studio 2012 Web Publish on Windows 8 RTM Fails Browser Launch

I'm developing an ASP.NET MVC 4 site using Visual Studio 2012 Premium on Windows 8 RTM x64. When I right click on the web application and choose Publish, Visual Studio 2012 returns the message: "fail ...
11
votes
5answers
10k views

MVC 4 Connectionstring to SQL Server 2012

I've created a brand new MVC 4 application in C# using Visual Studio 2012. I'm trying to connect to a brand new SQL Server 2012 (Standard) instance but I can't seem to get my connection string set ...
3
votes
3answers
2k views

MVC4 SignalR “signalr/hubs” 501 Not Implemented Error

Update: Switching to IIS Express instead of the Visual Studio Development Server fixed the 501 error. I'm trying to get SignalR working in my MVC4 application but I am running into a strange 501 ...
2
votes
2answers
1k views

VS2012 RTM missing .net 4.5 and mvc project templates

On Windows 8 RTM and just installed Vs2012 Ultimate RTM, I'm unable to create a .net 4.5 project nor a .net 4 or 4.5 ASP.NET MVC project. I've done a repair of VS2012, which did not fix it. Is there ...
2
votes
1answer
1k views

Why am I getting this “Invalid object name 'dbo.*'” error with MVC4?

I get this error: Invalid object name 'dbo.ImageMetas'. On this line: return View(db.Images.ToList()); Where my database context looks like this: public class GalleryContext : DbContext { ...
1
vote
1answer
354 views

MVC4 asp.net accessing kml file in view

I have a problem in my MVC4 project in visual studio 2012. I build a backoffice in symfony2 and there i can display google maps with polygons loaded from a kml file. Now i am trying to do the same ...
1
vote
1answer
469 views

ASP.net MVC 4, How to keep routing to default document after project publishing

I created a new MVC 4 project from the internet application template in VS 2012 express, for details click here When I wanted to publish it, I got: HTTP 403.14 - Forbidden I searched for a solution, ...
0
votes
2answers
556 views

ASP.NET MVC 4 C# - Internet Application Template using default SimpleMembership, Error: System.Data.SqlClient.SqlException: Login failed for user xxx

I am running the application locally (localhost), and since I have already registered, I log in properly and then can navigate regularly through all the pages of my application. Then without logging ...

1 2
15 30 50 per page