All Questions

Filter by
Sorted by
Tagged with
223 votes
5 answers
77k views

Retargeting solution from .Net 4.0 to 4.5 - how to retarget the NuGet packages?

I have migrated a solution that is currently targeting .NET 4.0 in VS2010 to VS2012 and now I would like to re-target it to .Net 4.5 What I am not sure about is the NuGet packages. For example EF5, ...
Ivan Zlatev's user avatar
  • 13.1k
104 votes
15 answers
55k views

Can Visual Studio 2012 be installed side-by-side w/ Visual Studio 2010?

Will Visual Studio 2012 interfere/break .NET 4 and/or Visual Studio 2010 if installed side-by-side on the same instance of Windows?
Chris Pietschmann's user avatar
45 votes
9 answers
18k views

Visual Studio keeps overwriting NewtonSoft.Json.DLL with an older version

Visual Studio is overwriting the correct version of NewtonSoft.Json.DLL that I have configured in both my project references and the NuGet package file with an older version when I build any other ...
lecklind's user avatar
  • 471
39 votes
1 answer
14k views

HttpClient.PostAsync knocks out the app with exit code 0

Everything was working today until it stopped... Below is the minimum source code (I'm using VS 2012 Update 1, .Net 4.5). When I run it, app exits upon calling client.PostAsync() and so it never ...
Maxim's user avatar
  • 992
37 votes
3 answers
27k views

What happened to regtlibv12?

I have a clean install of Windows 8 on a partition, with Visual Studio 11/2012 Professional installed and I cannot find regtlibv12.exe inside C:\Windows\Microsoft.NET\Framework\v4.0.30319. Below is a ...
JMK's user avatar
  • 27.7k
30 votes
4 answers
44k 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 ...
berke762's user avatar
  • 429
26 votes
2 answers
71k views

Not allowed to load assembly from network location

I've recently set up a new Windows Server 2012 R2 environment and installed Visual Studio 2012. Now I'm having a problem with multiple .NET 4.5 project's I migrated from my old server, a Windows ...
Stijn's user avatar
  • 2,030
26 votes
7 answers
9k views

VS2012 $(exists) only accepts scalar values

Okay, this is more of a build error than a programming error. I have never had much reason to get my hands dirty with builds, so this error is baffling me. I have tried googling this error with ...
Madeline's user avatar
  • 645
26 votes
1 answer
21k views

Web.config with XDT transform to do partial replace

I am in a situation where I just want to update a part of a the URL of a WCF endpoint. Right now we do this by including different configs with all the endpoints per 'variety'. This is tedious to ...
ranieuwe's user avatar
  • 2,278
21 votes
5 answers
94k 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 ...
lhan's user avatar
  • 4,615
20 votes
9 answers
21k views

SignalR: $.connection is undefined

I'm using Visual Studio 2012 Ultimate RC, SignalR 0.5.1 and Jquery 1.7.2 in an MVC4 application. I have looked at: MVC4 SignalR "signalr/hubs" 501 Not Implemented Error But it does not ...
Bas's user avatar
  • 26.9k
20 votes
4 answers
24k views

Installing Visual Studio 2012 Ultimate on Windows 8

While trying to install the Visual Studio 2012 ultimate trial on Windows 8 Release Preview I got the following error message The .Net Framework installed on this machine does not meet the minimum ...
Robin Maben's user avatar
  • 22.7k
19 votes
5 answers
11k views

Visual Studio 2012 Randomly reporting: "The referenced component X could not be found"

I recently migrated and re-tartgeted a solution from VS 2010 and .NET 4.0 to VS 2012 and .NET 4.5. However now all of a sudden and randomly VS 2012 reports almost all cross-project references as: "...
Ivan Zlatev's user avatar
  • 13.1k
18 votes
5 answers
34k views

Get Type by Name

In my code I am trying to get a type by name. When I was using a string argument I failed. Then I have tried to do the follwing in the Quick watch window: Type.GetType(typeof(System.ServiceModel....
Yaugen Vlasau's user avatar
17 votes
1 answer
1k views

Why would an empty delegate event handler cause a CA1061 warning?

Update: This occurs when the Code Analysis option "Suppress results from generated code (managed only)" is turned off, and Rule Set is set to "Microsoft Basic Design Guideline Rules". On 2013-04-26, ...
Sean's user avatar
  • 429
16 votes
2 answers
30k views

Dlls not deployed to GAC - SharePoint 2013, Visual Studio 2012, .Net FW 4.5

When I create a simple SharePoint 2013 project in Visual Studio 2012 and I want to deploy it, it deploys fine, but Dll is not in the Global Assembly Cache. In Advanced tab, I have added project ...
gradosevic's user avatar
  • 4,955
16 votes
2 answers
12k views

How do I kick off an entity stored procedure in EF6 async and not wait for a return?

I'd like to just punt a call over to the SQL Server and not wait for a return. I have an imported Entity Function from a Stored Procedure that I'd like to call asynchronously this way in Entity ...
dirq's user avatar
  • 978
15 votes
1 answer
10k views

.Net 4.5 Svcutil generates two operations with the same name (Method and MethodAsync)

I am consuming a predefined wsdl with svcutil a la: svcutil some_service.wsdl one of the methods generated has the following signature: [System.ServiceModel.OperationContractAttribute(Action="http:/...
vossad01's user avatar
  • 11.8k
15 votes
5 answers
15k views

Compilation issue in Visual Studio 12 Professional with a C# project

The project worked fine in Visual Studio 2010, and we upgraded to Visual Studio 2012; however, now it does not compile. We get the following error: Error 2 Task could not find "AL.exe" using the ...
user1460904's user avatar
14 votes
2 answers
14k views

Supported runtime v4.0 in app.config after upgrading VS11 Beta to VS2012 RC

After upgrading from VS11 Beta to VS2012 RC - I've modified from targeting .NET 4.0 to .NET 4.5. I notice in app.config following section <startup> <supportedRuntime version="v4.0" sku="....
friend's user avatar
  • 1,919
14 votes
0 answers
1k views

Where are .NET 4.5 assemblies located? [duplicate]

Possible Duplicate: Where is the .Net Framework 4.5 directory? usually you would find them under C:\Windows\Microsoft.NET\Framework But I can't see it after installing Visual Studio 11 (Beta), ...
Houman's user avatar
  • 65.1k
13 votes
4 answers
7k views

Is EntityFramework available for Windows 8 Store Apps?

Is EntityFramework available for Windows 8 Store Apps? I'm using Visual Studio 2012 Express for Windows 8. I'm starting to wonder because I can't make it work. I installed the Entity Framework ...
Antoine Gamond's user avatar
12 votes
1 answer
12k views

Type or namespace name 'async' could not be found

In VS2012.2 I have a week-old ASP.NET MVC 4 app targeting .NET 4.5 that, if I use the async keyword, works as expected. In a class library project created around the same time, targeting 4.5, I ...
Luke Puplett's user avatar
  • 43.3k
12 votes
2 answers
13k views

How can I get one-click publishing to work after upgrading to .NET framework 4.5

I am upgrading an app from .NET3.5/EF3.5 to .NET4.5/EF5, using Visual Studio 2012. One-click publishing runs, but generates the following warning messages: Item 'Microsoft.Windows.Installer.3.1' ...
Tim's user avatar
  • 1,755
12 votes
2 answers
15k views

Visual Studio 2012 - Can't find System.Transactions assembly in .NET 4.5 framework

I'm trying to add a reference to System.Transactions in a C# Visual Studio 2012 project, but System.Transactions isn't available among the framework assemblies, as you can see for yourselves in the ...
aknuds1's user avatar
  • 66.8k
12 votes
3 answers
17k 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 ...
Eonasdan's user avatar
  • 7,647
12 votes
2 answers
10k views

HTML table tag with col, colgroup, tbody, and thead throws compile error in Visual Studio 2010 and Visual Studio 2012

I have a .NET 3.5 web site with a table tag that contains col, colgroup, tbody and thead tags. This is a server side tag with the runat="server" attribute. This table was working fine in Visual ...
Jeff's user avatar
  • 637
12 votes
6 answers
21k views

Visual Studio 2012 InstallShield LE .NET Framework 4.5 Prerequisites

We have an application that was built using Visual Studio 2010 targeting the .NET Framework 4.0. We are upgrading the application to use .NET Framework 4.5 and is being written with Visual Studio 2012....
Ristogod's user avatar
  • 975
11 votes
3 answers
8k views

XNA 4.0 with C# .NET 4.5?

I want to write an XNA game using .NET 4.5, so that I can use one of the new features that isn't in .NET 4.0. Is there any way to do this? VS2012 doesn't have XNA listed anywhere in the list of New ...
Xenoprimate's user avatar
  • 7,813
11 votes
1 answer
17k views

How do I use ILMerge with .NET 4.5 in AfterBuild?

We want to upgrade our solution with several projects to .NET 4.5. We already use Visual Studio 2012. We use ILMerge to merge the assemblies to a single EXE. Our current .csproj file for the main ...
Christian Fredh's user avatar
11 votes
3 answers
39k views

.NET Framework 4.0 does not install when 4.5 is already installed

I use Visual Studio 2012 for a WPF project needing (at least) .NET Framework 4.0. I have 4.5 already installed, but people with Windows XP cannot install the application (because 4.5 does not ...
Michel Keijzers's user avatar
10 votes
4 answers
14k views

Visual Studio 2012 How to debug "Unable to add reference to project x" error?

In Visual Studio 2012 in a blank new Class Library I am trying to add reference to an existing project in the solution, also a Class Library, MonoGame.Framework.Windows8 (https://github.com/mono/...
markmnl's user avatar
  • 11.3k
10 votes
5 answers
12k views

Visual Studio 2012 missing frameworks

I have installed Visual Studio 2012 today, and i was excited, because i wanted to experiment with the latest framework version (.net 4.5). But it seems like Visual Studio 2012 doesnt show .net 4.0 and ...
Biohazard's user avatar
  • 103
9 votes
2 answers
4k views

CopyAllFilesToSingleFolderForPackageDependsOn no longer supported by vs12

I am using the visual studio 2012 package feature for websites, and I have a custom target to collect some sub folders into the package destination prior to zipping the folder.. This used to work well ...
aromasca's user avatar
  • 821
9 votes
2 answers
2k views

DeploymentItem behaving differently in VS2010 and VS2012

I have a VS2010 solution that I'm trying to upgrade to VS2012. I'm having a problem with the MSTest unit tests in VS2012. All of the tests include DeploymentItem attributes on the test class. [...
Jonathan Taylor's user avatar
8 votes
1 answer
7k views

SQLite with VS2012 and .NET 4.5 -- ANY CPU Build

I've tried looking through the answers for related questions, but haven't found anything that isn't a few years old (unsure if they are still the go-to answer) or that answers my question fully. ...
CODe's user avatar
  • 2,263
8 votes
3 answers
3k views

Creating Delegation token - can't create a SecurityTokenService

I'm trying to build a system working with ADFS and claims. At the moment, this is just a "toy" implementation. I've built a very simple MVC web application, set it up using the "Identity and Access......
Damien_The_Unbeliever's user avatar
8 votes
2 answers
1k views

How do I determine the number of concurrent requests from an async httpclient during execution?

I have a simple console application which looks like this: private static StringBuilder sb = new StringBuilder(); private static HttpClient client = new HttpClient(); private static ...
user17753's user avatar
  • 3,101
7 votes
4 answers
5k views

.NET 4.5 Beta DbGeography NotImplementedException

I have a brand new server which I installed the .NET 4.5 Beta redistributable on. I am getting a NotImplemented exception when trying to use the spatial features. This code... var x = DbGeography....
craig.tadlock's user avatar
7 votes
2 answers
6k views

What version of Blend supports WPF 4.5, Portable Class Library?

I am setting up the project structure for a new greenfield application. Our initial release will only support a WPF client, but we want to eventually roll out Metro and Silverlight clients as well. ...
PatrickV's user avatar
  • 2,109
7 votes
2 answers
6k views

ASP.NET Resources (resx) doesn't work after migration to .NET 4.5

a installed Visual Studio 2012 and migrate my Web Apps to .NET 4.5. I had many resx files in App_GlobalResources and always it works. After migration resx files generates in designer "namespace MyApp....
Jan Remunda's user avatar
  • 7,870
6 votes
2 answers
4k views

Build error when using VS 11, .NET 4.5 and Entity Framework

In Visual Studio 2010, my solution was using .NET 4.2 (Entity Framework June 2011 CTP) so I could use spatial types in Entity Framework. When I upgraded to Visual Studio 11 Beta, it wouldn't build ...
Ray Saltrelli's user avatar
6 votes
4 answers
6k views

System.Tuple defined in multiple assemblies

I just installed VS 11 within Windows 8. When I got the latest of a solution built with VS 2010, then built it, I'm getting this error (in VS 11): The predefined type 'System.Tuple' is defined in ...
Bob Horn's user avatar
  • 33.9k
6 votes
3 answers
14k views

Mixed mode assembly is built against version '2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime

I'm using Visual Studio 2012 and the .Net Framework 4.5 I have 2 Solutions: 1) WPF Application 2) Class library (dll) The Class Library contains 3 buttons and a control that has to be inside a ...
Emmanuel Medina's user avatar
6 votes
2 answers
5k views

DbContext code generation stategy fails with Entity framework 5 and VS 2012

I have a WPF project in .NET framework 4.5 (VS 2012) and downloaded Entity Framework 5 using NuGet package to the solution.All the documentation regarding Entity Framework 5 says that the Default Code ...
Dennis Jose's user avatar
  • 1,589
5 votes
4 answers
2k views

Implementing read-only properties with { get; }

Why doesn't this run: class Program { static void Main(string[] args) { Apple a = new Apple("green"); } } class Apple { public string Colour{ get; } public ...
whytheq's user avatar
  • 35k
5 votes
3 answers
19k views

Crystal reports with Visual Studio 2012

I'm using crystal reports for creating my reports. I'm using Visual Studio 2012. I use VS2010 to create the reports then I add them to the solution in VS2012. The problem is that I'm getting an ...
sadkaoui imen's user avatar
5 votes
1 answer
454 views

Significance of the Route Name in MVC 4

I was looking at the Routing Concepts of MVC and specifically at the below line: routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // Route Pattern new { controller = "Home", ...
now he who must not be named.'s user avatar
5 votes
3 answers
8k views

Error Upgrading To .NET 4.5

I'm trying to upgrade from VS2010 .NET 4 to VS2012 .NET 4.5 and I'm getting the following error in each Project that I've set to .NET 4.5 when they try to build. The expression "[Microsoft.Build....
Hubris's user avatar
  • 1,932
5 votes
1 answer
1k views

Is my build script for targeting multiple target frameworks working correctly?

I wrote a little MSBuild script to build my project on multiple versions. When I run it from VS2012 Command Prompt it works, I don't get any errors or exceptions. However when I compare the produced ...
Ufuk Hacıoğulları's user avatar