Type or namespace name does not exist [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 7 years ago. Improve this question I have a WCF Data Service project built with Visual Studio 2010, which was working fine. All of a sudden, it didn’t … Read more

This project references NuGet package(s) that are missing on this computer

I have an ASP.NET MVC5 application that worked yesterday and now I am getting this error when I try to build: This project references NuGet package(s) that are missing on this computer. I have the two options checked that allow nuget to automatically download and install missing packages checked / turned ON. I have also … Read more

Cannot import the keyfile ‘blah.pfx’ – error ‘The keyfile may be password protected’

We just upgraded our Visual Studio 2008 projects to Visual Studio 2010. All of our assemblies were strong signed using a Verisign code signing certificate. Since the upgrade we continuously get the following error: Cannot import the following key file: companyname.pfx. The key file may be password protected. To correct this, try to import the … Read more

The name ‘InitializeComponent’ does not exist in the current context

If I create a new project in Visual Studio 2010 SP1 and select “WPF Application” and tries to build the generated application, I get the error The name ‘InitializeComponent’ does not exist in the current context. I got a similar error this morning when I tried to build my current project. Yesterday, I had no … Read more

Is there a format code shortcut for Visual Studio?

In Eclipse there is a shortcut, Ctrl+Shift+F, that re-indents code and fixes comments and blank lines. Is there an equivalent for Visual Studio 2010? 1Best Answer 11 Visual Studio with C# key bindings To answer the specific question, in C# you are likely to be using the C# keyboard mapping scheme, which will use these … Read more

The type or namespace name could not be found [duplicate]

This question already has answers here: Getting “type or namespace name could not be found” but everything seems ok? (44 answers) Closed 7 years ago. I have a C# solution with several projects in Visual Studio 2010. One is a test project (I’ll call it “PrjTest“), the other is a Windows Forms Application project (I’ll … Read more

How do I run Visual Studio as an administrator by default?

I recently discovered that even while logged into my personal laptop as an administrator, Visual Studio does not run in administrator mode and you need to explicitly use Run As Administrator. Is there a way to make it run as an administrator by default, other than creating a shortcut, etc.? 17 s 17 Copied and … Read more

Error ‘LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt’ after installing Visual Studio 2012 Release Preview

I’ve installed Visual Studio 2012 Release Preview, and it appears to be fine, but now when I try to use Visual Studio 2010 to compile C++ projects, I get the following error message: LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt I’m not 100% sure of this, but it … Read more