All Questions
Tagged with .net-4.5 visual-studio-2013
102
questions
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 ...
26
votes
6
answers
11k
views
c# Resharper 'No Tests Found in Project' / 'Inconclusive: Test wasn't run'
I've got ReSharper v8.2.1 installed. I have a VS2013 solution that contains several test projects. Most of them work just fine. However, one project is giving me trouble.
In the Solution Explorer, I ...
23
votes
2
answers
26k
views
authentication and authorizing in ASP.NET MVC 5
Asp.net MVC 5 seems to have left behind using the AuthorizeAttribute class where you could create a custom authorize attribute by implementing the AuthorizeAttribute class, override its methods and ...
22
votes
4
answers
29k
views
'Forms' is not a member of 'Windows'
I tried to change the Target Framework on my app recently from .NET Framework 4.5 to 4.5.2, but if I do I get the following error when trying to build: "'Forms' is not a member of 'Windows'" (that is, ...
22
votes
3
answers
18k
views
Reference could not be added because of same name
Since the update to VS 2013 I have the behaviour that I cannot add a reference to 2 projects with the same name. I did the following:
Added 3 solution folders A, B and C.
Added a project of type ...
17
votes
2
answers
7k
views
Visual studio 2013 + .Net 4.5.1 + Edit and continue 64 bit: not working
Supposedly vs 2013 added support for edit and continue 64 bit (see http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/26/debugging-support-for-64-bit-edit-and-continue-in-visual-studio-2013.aspx)....
16
votes
5
answers
35k
views
visual studio 2013 on windows xp
Is it possible to run Visual Studio 2013 on Windows XP?
I heard that it is not possible to install .NET Framework 4.5 on Windows XP. What if I want to use Visual Studio 2013 for .NET 4.0 on Windows ...
9
votes
3
answers
2k
views
Why is an old project name still being referenced in the temp files on Visual Studio
I created and fully baked an MVC C# intranet PROJECT_A.
Then I created and fully baked a WebForms C# intranet PROJECT_B.
Now I need to merge the two into a combo MVC/WebForms C# PROJECT_C.
I've done ...
9
votes
1
answer
14k
views
Unable to set next statement when debugging
I am debugging my project in VS2015 and an exception is thrown in my code.
When I try to set the next statement I get the error message displayed below. When I debug the same solution in VS2013 I am ...
9
votes
2
answers
912
views
Directory.GetFiles - different output dependent on OS
I have a simple program. It runs .NET 4.5 and is built in Visual Studio 2013.
D:\\MyDir is full of .xlsx files and no .xls files. When I run the program on Windows 8.1 x64, the filter for *.xls ...
9
votes
1
answer
6k
views
The program '[4432] iisexpress.exe' has exited with code -2147023895 (0x800703e9)
I have very frustrating issue with IIS Express. When I start debug everything is ok, but after few requests IIS hangs and crashes. My browser (Chrome Version 37.0.2062.120 m) waits for the response ...
8
votes
7
answers
7k
views
How to edit the Typescript 1.4 "specified task executable location"?
I'm updating a project to use the latest versions of everything.
I just updated the MVC 4 project from .Net 4.0 to .Net 4.5.1. I then updated the nuget packages(uninstalling some, and re-installing ...
6
votes
1
answer
2k
views
Where is the VC++ 2012 Runtime Bootstrapper package in Visual Studio 2013?
I have a .NET 4.5.2 application that's deployed via ClickOnce. It uses the Magick.NET library, which requires the Visual C++ Redistributable for Visual Studio 2012. I've tried it with the 2013 package,...
6
votes
1
answer
12k
views
App_Global.asax.compiled and App_Global.asax.dll missing? WebApi .NET 4.5 project
During our adventures of building a 'simple' API using WebAPI we've had our fair share of issues as any project does, however I am unable to find any such resource that can explain the following ...
6
votes
1
answer
2k
views
How do I enable IntelliSense in VS 2013 for <rewrite> in transform .config?
I decided I wanted to move some rewrite rules into our web.release.config and web.staging.config files in order to keep the rewrite rules relevant to the environments our different configurations run ...
5
votes
2
answers
1k
views
Using VS 2013 and .net 4.5.1 but still getting “Changes to 64-bit applications are not allowed”
I'm using VS 2013 Ultimate with Update 2 on Win 8.1 x64 and VS won't let me use edit and continue on a simple console application. The console app is set to use .net 4.5.1 and AnyCPU but whenever I ...
5
votes
1
answer
3k
views
How to convert a Portable Class Library (PCL) to a normal class library?
I have a Portable Class Library (PCL) that needs conversion to a normal class library (targeted only at .NET 4.5).
I've tried editing the .csproj file, with no success. I'm wondering how to do this?
5
votes
2
answers
4k
views
c# GridViewColumns missing assembly reference
I am trying to use 'System.Windows.Controls.GridViewColumn' within Visual Studio 2013, .net 4.5, but I am receiving this error :
The type 'GridViewColumn' was not found. Verify that you are not
...
4
votes
2
answers
3k
views
'System.Guid' is not an attribute class
I am creating a new dll application with Visual Studio 2013 based on .net 4.5.
When trying to define the Guid attribute on my class like this:
[Guid("4245366B-0484-4A41-A2E8-C7D9FC3A4ED7")]
The ...
4
votes
1
answer
3k
views
Adding multiple oracle schemas in visual studio 2013 and EF
I have a serious problem that needs to be resolved.
In my server explorer in VS2013, I set up a connection to the database with valid user and password credentials.
So I have a schema called: ...
4
votes
1
answer
3k
views
How do I get Visual Studio 2013 to allow me to target .NET Framework 4.5.2?
I've got a project that has some references that were giving me the following issue:
The primary reference "reference" could not be resolved because it was
built against the ".NETFramework, ...
4
votes
1
answer
4k
views
App Manifest Ignored
I am developing an app in Visual Studio 2013 on Windows 7 x64 that requires administrator privileges but it appears my manifest is being ignored:
<?xml version="1.0" encoding="utf-8"?>
<...
4
votes
0
answers
434
views
Unable to remove DotNetConfig.xsd schema reference when targeting 4.5.1
I have a configuration file that has element errors throughout and intellisense does not work. The main problem is a "The global element 'configuration' has already been declared." warning. I ...
4
votes
2
answers
6k
views
MVC 5, WIF (System.IdentityModel) & ADFS not actually authenticating, errors on federated signout
I'm wading through the creation of a claims-based MVC site in Visual Studio 2013.
Some things I learned so far:
System.Identity is in, Microsoft.Identity is out
Many of the tutorials, including ...
3
votes
3
answers
9k
views
Determine if an object is a DateTime and not null as a condition within ternary
I have an array of objects:
object[] myArray
This array can contain int, string, DateTime data types and so on.
Now I am trying to check if an object within myArray is of type DateTime and not ...
3
votes
2
answers
2k
views
how to configure entity framework 6 for sqlite in visual studio 2013
How can I configure entity framework 6.x for Sqlite in Visual Studio 2013.
I want to configure my win-form application for SqLite with Entity Framework 6.x. I need process step by step described.
I ...
3
votes
2
answers
6k
views
Azure Active Directory and Windows Authentication
I'm using Visual Studio 2013, .NET 4.5. and trying to find out if it's possible to authenticate against Azure Active Directory with a web app using windows authentication instead of organizational ...
3
votes
1
answer
2k
views
Within a .vcxproj file what are the possible values for the <ConfigurationType> and what do those values mean?
Within a .vcxproj file what are the possible values for the ConfigurationType and what do those values mean? -Or- where can I find this information on MSDN? I have had difficulty sellecting a good ...
3
votes
1
answer
708
views
Getting a System.AccessViolationException with targeting framework .Net 4.5.2
Sometimes I get a System.AccessViolationException in my C# application, running on .Net 4.5.2. It seems that, the issue only occurs during debugging in Visual Studio 2013.
I had the same issue ...
3
votes
1
answer
1k
views
Unable to target .NET Framework 4.5 in Visual Studio 2013
For my project I'm required to target Microsoft .NET Framework 4.5, but am unable to do so.
Installed programs:
Whenever I try to install .NET Framework 4.5, it tells me it's already installed:
3
votes
1
answer
671
views
Why don't my Tasks show in the Visual Studio Tasks window?
I'm creating some Tasks using this code:
private Task PollSomething()
{
return Task.Run(
async () =>
{
while (!_cts.Token.WaitHandle.WaitOne(...
3
votes
0
answers
196
views
Using Windows.Web.Http.Filters.HttpBaseProtocolFilter in console application
Is it correct and possible to use Windows.Web.Http.Filters.HttpBaseProtocolFilter in console app on C#? If yes, how to add it into the project?
3
votes
1
answer
1k
views
Install .Net 4.5 on Windows 10 (4.5 and 4.6 versions are missing)
I cannot install .NET Framework 4.5 nor 4.6 on windows 10
The situation is as follows:
On my machine I had
Windows 10 installed (upgraded from Windows 8.1)
Visual Studio 2013 Community Edition
...
2
votes
2
answers
6k
views
Configure Service Reference... - Object reference is not set to an instance of an object
I am working with Visual Studio 2013, .NET4.5.
Originally I was WCF service consumer but due to lack of resources in team that deals with subsystem I took over development of both sides of WCF ...
2
votes
2
answers
6k
views
Error "; expected" lambda expression
When I build the project I am getting error:
; expected
at below line (at => symbol). I google the issue but did not found anything.
public sealed class SqlError : baseclass
{
public ...
2
votes
2
answers
476
views
Missing .net 4.5 property in PortableLibrary code
I'm writing a Windows Phone framework with Windows 8 in mind. That means I'm creating a Portable Class Library (PCL) to be used in both platforms.
Right now my PCL is targeting .NET 4.5, Windows ...
2
votes
1
answer
11k
views
Invoke-Sqlcmd not working after PowerShell 4 install
I installed PowerShell 4 over the weekend and ever since then, I get the error "The term 'Invoke-Sqlcmd' is not recognized as the name of a cmdlet, function" when I try to run the Invoke-Sqlcmd ...
2
votes
2
answers
1k
views
Garbage tags showing up in MVC views after installing VS 2013 + .Net 4.5.1
In my ASP.Net MVC 4 application, there are several places where we are either manually rendering a view to a string or intercepting some part of the rendering pipeline. For example:
public static ...
2
votes
1
answer
5k
views
WCF Error The target principal name is incorrect from Autogenerated client and configuration
I am working with Visual Studio 2013, .NET4.5.
Originally I was WCF service consumer but due to lack of resources in team that deals with subsystem I took over development of both sides of WCF ...
2
votes
1
answer
2k
views
Getting a System.AccessViolationException only during debug
UPDATE
I've changed the question with my latest findings and simplified as much as possible.
I have the following piece of code
public virtual int DefineAction(bool b, string s, Type1 t1, Type2 t2)
...
2
votes
1
answer
111
views
Attempted to read or write protected memory exception occurs w/o debugging but not w/debugging
Derivatives of this question have surely been asked, however I have yet to find one that matches my case.
I created a library that is wrapping up a third party C++ library and supplying it to some in-...
2
votes
0
answers
161
views
An item with the same key has already been added. vsix project
I am using multi-Project Vsix Template.
While I am adding multiple projects using same vsix template.
Steps:
Added New Project using Vsix project template. It created 2 projects successfully .
...
2
votes
0
answers
219
views
Removed DLL causing runtime error
I have an ASP.NET web application built in visual studio 2013, .NET framework 4.5.1. The app used to reference a 3rd party dll, but I have refactored the program so it is no longer needed. I have ...
2
votes
0
answers
334
views
1 Error "ResolveManifestFiles" System.ArgumentException: Value does not fall within the expected range. WPF C# Desktop app
Im tray to compile a Visual Studio Solution and get this error.
Error 1 Error inesperado en la tarea "ResolveManifestFiles".
System.ArgumentException: Value does not fall within the expected ...
1
vote
3
answers
33k
views
How to install Visual Studio 2013 Ultimate on Windows 7 (32-bit)?
I do have Windows 7 32-bit (Ultimate), this is a screen shot that shows the systems features:
I need to install visual studio 2013 but it shows this dialog:
I guess that this problem can be solved ...
1
vote
1
answer
3k
views
WebRequest From SQL CLR Error
UPDATE:
Thanks to j.v.'s answer I am able to run this but now I am seeing a lot of the following error in rapid succession:
A first chance exception of type 'System.Security.SecurityException' ...
1
vote
1
answer
4k
views
'Could not find part of a path' errors in Visual Studio 2013 that don't appear in Visual Studio 2010
I've recently had the misfortune of being upgraded to Visual Studio 2013 at work and it has been nothing short of a nightmare. Ever since upgrading my large scale WPF application to .NET 4.5.1 in ...
1
vote
1
answer
2k
views
.Net framework prerequisite (4.5.2) in Visual Studio 2013 setup project doesn't work
I am using Visual Studio 2013 and the setup extension to create my installer. I am setting .Net 4.5.2 as prerequisite but this doesn't prompt the user to install .Net framework 4.5.2 at installation. ...
1
vote
2
answers
2k
views
C# TcpSockets Do I disconnect the clean/proper way?
So i know there are a lot of articles out there on this topic and i did read a lot of them i would say but for some reason im sure my code is not doing what it is supposed to do.
I want to close a ...
1
vote
2
answers
814
views
WCF project will not be hosted when unit test runs
I created a WCF project using the IIS model. I then created unit tests which reference services from that project. Now when I start the unit test, the service is not hosted and thus I get ...