Menu
  • HOME
  • TAGS

Upgrading separate Project Collection Database to new TFS Version

visual-studio-2012,tfs,tfs2012,tfs2013

You have to detach the collection from TFS2012, backup the SQL database from SQL Server of TFS2012, restore the database to SQL Server of TFS2013 then attach the collection on TFS2013.

Toggle groups based on a parameter

sql,sql-server,visual-studio-2012,reporting-services,toggle

Data Architect proposed a solution which solved it. Add a new column in tablix to the left of all the groupings. Depending on which group level you wish to toggle (in my case at group_3) just use the text box (to the left) of group_3 text box as 'toggle item...

Convert Double from String

asp.net,vb.net,visual-studio-2012,converter

The result isn't wrong, it only has lower precision than you expected. Floating point numbers have a limited precision by design, and you simply can't expect to get a result that is more precise than its limit. You can use a Decimal to get higher precision. In this case it...

NUnit Categories not showing up in Visual Studio

unit-testing,visual-studio-2012,nunit

You should be able to group your tests by Traits, which includes the Category attribute. If you can't then you may need to update your Visual Studio to at least Update 1. A more detailed description, targeted at the MS framework is here but the TestAdapter seems to allow it...

How to determine Team Project Uri from project folder

c#,c++,winforms,visual-studio-2012,tfs

You'll have to use the VersionControlServer class from TFS Client Object Model. You can find an example here....

<< Definition using inheritance and templates [duplicate]

c++,templates,visual-studio-2012,linked-list

Remove friend std::ostream& operator<<(std::ostream& outputStream, const LinkedList<T>& sec); from LinkedList class definition. You already have a templated version of such operator in this header, and linker tells that non-templated one is lacking implementation. LinkedList.h: #ifndef LINKEDLIST_H #define LINKEDLIST_H #include <string> #include <iostream> template<class T> class LinkedList; // Class representing a...

Share project between Visual Studio 2013 and Visual Studio 2012

c++,visual-studio-2012,visual-studio-2013

You can have both Visual Studio 2012 and Visual Studio 2013 installed on the same machine. Once you have both installed you can use the Visual Studio 2012 compiler in Visual Studio 2013. So I suggest you install Visual Studio 2012. I think Express edition should be enough. Alternatively, your...

One file of the project does not seem to be under source control

c#,visual-studio-2012,tfs

The red check mark next to the file indicates that it is under source control and is checked out. This file is generated from the Service.asmx file and to perform source control changes like "Undo pending changes" you will have to make this operation on the Service.asmx file. Whatever change...

error C4996: 'std::_Copy_impl': is it safe to disable it? [duplicate]

c++,visual-studio-2012,boost,odeint

The code should be safe. We have disabled the same warning in the unit tests of odeint.

The difference between EF6 and EF4.1 in files hierarchy

c#,entity-framework,visual-studio-2012,entity-framework-6,edmx

So lets make it clear step by step: You've got your .edmx file, which was created from designer or generated from existing database. But it's only an xml file, which contains info about the database structure that is used - storage scheme, info about entities - conceptual schema and mappings...

Visual studio does not exist in the namespace, but reference is added

c#,visual-studio-2012,reference,code-coverage

I should have checked the warnings in visual studio, they had the real error details, the project had to be built against .net 4.5 and not 4.0. Once this was changed the project built correctly.

Spaces displayed as dots and tabs displayed as arrows

visual-studio-2012

Go to Edit -> Advanced -> View White Space to rectify this. Alternatively, you may use the key combination Ctrl + R + W.

Merging text files based on headings.

c#,visual-studio-2010,visual-studio,visual-studio-2012,split

You should show us what code you already have, then ask how to approach the part that you cannot solve. I suggest you to store a list of headers, and a list or dictionary of rows. This way you could check if a header already exists. For example: using System;...

Uninstall web essentials

visual-studio-2012,web-essentials

Ok I figured it out. From extensions and updates in tools we can remove the plugins of VS

Missing DLL even though the directory containing it is in the path

windows,visual-studio-2012,dll,vtk

In VStudio, go to your application project properties, select Debugging, and in the Environment option, add PATH=%path_to_the_folder_where_your_your_dll_is_located%; (I'd suggest using relative paths).

How to add a resource file in visual studio

visual-studio-2012,resx

Right click on Solution > Add New Item > Visual C# > General > Select Resources File (Resource1.resx) ...

Issue running stored procedure from .net

asp.net,sql-server,visual-studio-2012,stored-procedures,sql-server-2008-r2

VARCHAR() without a specified length often defaults a length of 1 - the value you are passing is then silently truncated. So CREATE PROCEDURE [dbo].[GetTransactionFeeType_Pager] @PageIndex INT = 1 ,@PageSize INT = 10 ,@ProgramName VARCHAR(99) = '' ,@RecordCount INT OUTPUT AS ... does the trick by defining the length of...

How to set a socket option in C++ using setsockopt

c++,visual-studio-2012,setsockopt

Microsoft's implementation of setsockopt() has a const char* for the fourth option. POSIX usually has a const void*. It has to be pointing to a buffer that contains values. The last argument is the size in bytes of the buffer. So something like this: setsockopt( _socket.native_handle(), IPPROTO_IP, IP_OPTIONS, reinterpret_cast<char*>(&route), sizeof(int));...

VS2012 Identifer not found when part of static lib

c,visual-studio-2012,linker,static-libraries

C++ uses something called name mangling when it creates symbol names. It's needed because the symbol names must contain the complete function signature. When you use extern "C" the names will not be mangled, and can be used from other programming languages, like C. You clearly make the shunt library...

Where to specify preprocessor directives in visual studio?

c#,visual-studio-2012

You have two options: Define it at the code file level. In the beginning of the file write #define FLAG. You cannot place anything else (other than comments and blank lines) before define directives. As Ron Beyer points out, a directive defined in a file exists only for that file....

how to prevent bug/error when saving data with the same primary key on visual basic 2012?

sql-server,vb.net,visual-studio-2012

Your RekamData method will throw a SqlException with exception number 2627 if the primary key is duplicated. Catch it in your btnSave_Click method: Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSave.Click If Len(Trim(txt_nis.Text)) = 0 Or Len(Trim(txt_nisn.Text)) = 0 Or Len(Trim(txt_namasiswa.Text)) = 0 Or Len(Trim(cmb_kelaminsiswa.Text)) = 0 Or...

Any way to use XML axis properties in C#?

c#,xml,visual-studio-2012

I think there isn't. But there are many ways to process XML with C#. I think LINQ2XML ist the closest to the thing you requested. LINQ2XML XmlReader (readonly, no caching) XmlDocument (read, manipulate, and modify) Se also LINQ to XML vs. Other XML Technologies, to get an overview....

How to install C++ library to VS2012?

c++,visual-studio-2012

If it's a static library 1) Go to Project Properties -> Linker -> General -> Additional Library Directories -> Place here the path of your library ( .lib ) file 2) Project Properties -> Linker -> Input -> Additional Dependencies -> Place the name of your .lib file here. If...

Tfs and nuget: project files are forever in check out after build with restore nuget packages

visual-studio-2012,tfs,nuget

As of NuGet v2.7, MSBuild-Integrated Package Restore has been deprecated and replaced with Automatic Package Restore. See documentation on how to migrate your solution to the new feature: Migrating MSBuild-Integrated solutions to use Automatic Package Restore To learn more about Automatic Package Restore see NuGet Package Restore Both articles discuss...

VS 2012 Publish Website dialog box

asp.net,visual-studio-2012,web-site-project

Applying VS 2012 Update 4 resolved the issue.

How to sync a Progress Control with a set of data which is loading in a Dialog Box in Visual C++

c++,visual-studio-2012,visual-c++,mfc

You should first add a variable for the control, by right-clicking on the progress bar in the dialog editor, and choosing Add Variable... Your dialog class will then have an instance of a CProgressCtrl class on which you can then call the members that IInspectable has mentioned in his answer....

Cannot find InvalidCastException in C# Application

c#,winforms,visual-studio,visual-studio-2012,webforms

Direct casting from an object only works when that object inherits from the type you're casting to (somewhere along the line, anyways). A simple way to get the type you need out of a DataReader is to call [type].Parse(reader[index].ToString()) where [type] is what you want to cast to, i.e. ulong.Parse(rdr["startTime"].ToString())...

Running a specific version of visual Studio

windows,visual-studio-2012

Visual Studio 2012 Ultimate and Professional cannot exist side-by-side, they're one integrated product when they're both installed. Essentially your Visual Studio Professional is upgraded to Ultimate when it's installed on the same machine. Visual Studio shows the splash screen of the highest edition you have installed on your machine. If...

Reporting Services - DateDiff function

visual-studio-2012,reporting-services

Visual Studio doesn't recognize the DateInterval function. Try using this formula instead: =dateadd("m",0,dateserial(year(Today),month(Today),0)) ...

Redemption Cannot add Item to Folder

c#,visual-studio-2012,outlook-redemption

OK so I was able to discover the issue. @Dmitry Streblechenko was right that I did not need to add a new PST Store after logging onto the Pst Store (which creates a new file if necessary). BUT the true issue was in copying files to the newly created PST...

How come Visual Studio does not optimize structs for best memory usage?

c++,visual-studio-2012,compiler-optimization,struct-member-alignment

Data that is in a standard layout structure or class must make certain layout guarantees. Among other things if there is another standard layout structure or class that is the prefix of the first, you must be able to reinterpret one structure as the other, and the common prefix has...

Visual Studio C++ access violation when modifying a pointer passed into a function

c++,pointers,visual-studio-2012

When you do this: Common = "Hello World!"; you are making the pointer Common point at a literal C-style string (and incidentally leaking the original char that you allocated via new previously). It is not valid to try to modify such a literal, so when you pass this to FindCommonStr...

how to hide items behind a panel in wpf

c#,.net,wpf,xaml,visual-studio-2012

Just use ClipToBounds property of Canvas to True <Window x:Class="WpfApplication29.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid > <Border Margin="100" BorderThickness="3" BorderBrush="Black"> <Canvas ClipToBounds="True"> <Label Content="This is test" FontSize="129" Width="400" Height="200"/> </Canvas> </Border> </Grid> and you get the Result like...

How to successfully implement WPF textbox validation?

c#,wpf,validation,xaml,visual-studio-2012

Using what you posted, it works fine for me, it produces the red "!" above the textbox. However, I DID remember to set my DataContext, ie. public MainWindow() { InitializeComponent(); this.DataContext = this; } Without this, it won't work....

How do I get Visual Studio 2012 to generate code from a windows form design?

vb.net,winforms,visual-studio-2012

Forms comes as partial class meaning the code is separated in two files. The "empty" code you shown is from "mcastmain.vb" (if the file is named as the class). With that one there is a (probably hidden) file "mcastmain.designer.vb" file which contains the generated code by the designer ; and...

Elastic Bamboo CI Windows Server - MSBuild 12 not publishing

c#,visual-studio,visual-studio-2012,msbuild

I have managed to get this to work but I don't have a clean answer. I am guessing this is why there has not been any replies. MSBuild is a complex beast mostly because it references many paths outside of the project. In my instance MSBuild was looking for ReportViewer.WebForms...

TFS 2012 - Build Agent Folders Not Being Removed

visual-studio-2012,tfs,tfsbuild

Clean all means that the workspace is changed at the beginning of the build. Files are left at the end to facilitate this. You can create a PowerShell that change the files and run It post build....

Cannot create link between WorkItem and Server object in TFS 2012

visual-studio-2012,tfs,tfs-sdk

I guess you are using the wrong link type. You should not use the WorkItemLinks property nor the WorkItemLink class. Instantiate an ExternalLink object and add it to the WorkItem.Links collection instead. You can find sample code at TFS2010: How to link a WorkItem to a ChangeSet....

Dapper, MS Access, Integers and “no value given for one or more required parameters”

c#,ms-access,visual-studio-2012,oledb,dapper

Alright, I figured it out. Playing a hunch on another answer I found elsewhere that indicated there was a bug in Dapper that had to do with the order of the columns/parameters, I modified the code alphabetically like this: conn.Execute( "INSERT INTO DisMember(FName, HighestGrade, Initials, LName) " + "VALUES (@FName,...

Webforms asp:Panel children not showing fully in VS 2012

asp.net,visual-studio-2012,webforms

One solution is to invoke the Invalidate() method of the PanelContainerDesigner that belongs to the parent System.Web.UI.WebControls.Panel. Invoke this from the OnPaint() method of the child component's Designer. To prevent needless looping, let the child component's Designer remember and verify its position data on each OnPaint() call, and only invoke...

How do I create a new txt file every time I click on this button?

vb.net,visual-studio-2010,visual-studio-2012

I think you'd have to change the name of the textfile or filepath each time, or else it will just keep writing to the same place (and same file). EDIT: Code with simple counter Dim filesWritten as Integer = 0 Private Sub cmdsummary_Click(sender As Object, e As EventArgs) Handles cmdsummary.Click...

How to show custom update/modifications text when I publish my outlook-addin. VB.NET

vb.net,visual-studio-2012,outlook,outlook-addin

ClickOnce doesn't provide anything for that. See Deploying an Office Solution by Using ClickOnce for more information. In the new version of the software which you are going to publish you may add a message box. It can be shown for the first run only. For example, add a windows...

Accessing parent parameters from child package SSIS 2012

visual-studio-2012,ssis

I think I found my answer and want to share it here in case somebody else needs the exact same answer: 3 parameters defined in master package level are to be mapped in execute package task editor that is used to run the 7th child package under the master. To...

Edit xml in program files throgh code

c#,xml,visual-studio,visual-studio-2012,windows-8

You can add Application Manifest File to your project and replace <requestedExecutionLevel level="asInvoker" uiAccess="false" /> with <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> This way your application will require administrator rights to run....

Web Api 2 Controller behaves different in Visual Studio 2012 vs 2013, Authorize Attribute

visual-studio-2012,visual-studio-2013,asp.net-web-api2,iis-express,authorize-attribute

Ok, I figured it out after thinking about this. Apparently, IIS Express wasn't configured to use Windows Authentication. I right-clicked my IIS Express icon in my system tray, and selected "Show All Applications" On the resulting dialog, I selected one of the applications listed in the grid (only 1 listed...

how to send a post request using Visual C#

c#,windows,visual-studio-2012

You need to do some research http://www.codeproject.com/Articles/275279/Developing-WCF-Restful-Services-with-GET-and-POST Introduction In this article, we will see how to create WCF REST based service. In this example, we will define two methods, GetSampleMethod (method type is GET) & PostSampleMethod (method type is POST). GET method will take input as String & returns formatted...

How to get started with Visual studio 2012

c#,asp.net-mvc,asp.net-mvc-3,asp.net-mvc-4,visual-studio-2012

Download this book "Microsoft ASP.NET 4 Step By Step" by George Shepherd.I found it very helpful.It will address all the issues you raised here.Thank you.

Mixed Dev Environment: Automate Visual Studio .csproj updates from Git/TFS?

git,visual-studio,visual-studio-2012,tfs,csproj

There are many possible solutions. A .csproj file is written in MSBuild XML dialect, and it has lot of power: there is a whole book that explain all the nuances. Solution 1 You edit manually the .csproj file, adding the new files. Solution 2 As above, but you leverage wildcards...

Link error: Installing boost zlib filters using NuGet in Visual Studio (2012)

c++,visual-studio-2012,boost,nuget,zlib

The solution was quite simple. I just had to add BOOST_IOSTREAMS_NO_LIB to the Preprocessor definitions in the C/C++ tab....

No warning on deleting a forward declared pointer (Visual Studio)

c++,visual-studio-2012,memory-leaks,forward-declaration

The respective warning is C4150. It should be active by default and it is categorized in warning level 2 (which should be active too, since default warning level is W3 afaik). Note: Instead of lowering the warning level, try to pragma warnings in specific cases....

how to stop“build must be stopped before the solution can be closed”

c#,visual-studio-2012

Do this, look for msbuild process(es) and kill them before devenv. And make sure vbc really has gone too.... For any further crashes that occur frequently submit them to microsoft so that they can fix the bug... Hoping it helped.......

How to create a Simple Build Script for Visual Studio from the Command Line?

batch-file,visual-studio-2012,cmd,build-script

Found the solution, as noted by Jimmy, one needs to remove the environment variable %comspec% as that is a shortcut to CMD.exe. However, just removing "%comspec" /k will cause a CMD instance to open and then exit after a second. I also previously tried the call function which created a...

Executable suddenly stopped working: silent exit, no errors, no nothing

c++,qt,visual-studio-2012,executable,exit

I eventually found the reason for this behavior...sort of. The coding (e. g. my singletons) were never the problem (as I expected since the code always worked). Instead an external library (SAP RFC SDK) caused the troubles. This library depends on the ICU Unicode libraries and apparently specific versions at...

Sync 2 list boxes to 1 scrollbar

vb.net,visual-studio-2012,scroll,listbox,listbox-control

If you want to keep the selected indexes in sync, then you could do this: Option Strict On Option Explicit On Public Class Form1 Private Sub ListBox_SelectedIndexChanged(sender As Object, e As EventArgs) Dim parentListBox As ListBox = DirectCast(sender, ListBox) Dim childListBox As ListBox = DirectCast(parentListBox.Tag, ListBox) If parentListBox.SelectedIndex < childListBox.Items.Count...

Autocomplete in package manager console exist?

visual-studio-2012

I have already found an answer ) it appears you have to hit tab in order to get command completion.

Cant find File System, Registry icon in WIX setup project in Visual Studio

visual-studio-2012,wix

That's the Add-In Express designer for WiX in the video. It's a paid for component. Installing WiX on your system only adds project templates to Visual Studio. It's a free installer/packaging engine that uses XML (scripting) to build MSI's and etc and doesn't come with a designer. WiX is quite...

Partial specialization of nested template types produces “internal error” in VC++ 2012 compiler

c++,templates,visual-studio-2012,nested

If what you're seeking to do is disallow instantiation of a V as Ref when U is Mutability::const, we can enforce this concept using some template trickery: (someone smarter than me can probably make this simpler) enum class Mutability {Const, Non_Const}; template<Mutability T> struct ConstMutability: std::true_type{}; template<> struct ConstMutability<Mutability::Non_Const>: std::false_type{};...

Visual Studio 2013 Build Error: Incompatible versions of SQL Server Data Tools and database runtime components are installed on this computer

sql-server,visual-studio-2012,visual-studio-2013,ssdt

To resolve this issue you have to make sure you are using MSBuild 12.0 which comes with Visual Studio 2013 not MSBuild 4.0 which ships with the .Net 4.0 framework. Make sure your path does not include the .Net 4.0 framework and then add MSBuild 12.0 to your path like...

Move from visual studio online to github

git,visual-studio-2012

It looks like Visual Studio uses git for version control, which is consistent with the github client seeing your version history and greatly simplifies things: all you need to do is change the remote reference to point to your github repository. Github actually has pretty good instructions for changing your...

When compile the CLIPS integration source code,the CLIPSStatic in the CLIPS Solution is failed

visual-studio-2012,integration,clips

You're using the wrong projects/solutions. Download the latest commit (r281). The solution folders in the microsoft_windows directory that you want to use are CLIPS_MVC_2010, CLIPS_MVC_2013, Examples_MVC_2010, and Examples_MVC_2013. Since you're using Visual Studio 2012, you'll probably want to use the 2010 directories. The instructions in the Advanced Programming Guide specifically...

Best Alternative to the infinity for integers

c#,visual-studio-2012,infinity

You could use Nullable<int> (int? for short) and just use null to mean "infinity". Technically, this would likely be fine, but it's not an ideal semantic representation of what you're trying to do. Also note that if you use mathematical operations (addition, multiplication, etc) the semantics for null values...

Visual Studio 2012 - Fill message test result

c#,asp.net,unit-testing,visual-studio-2012,testing

I've found this solution considering the TestContext that i have in my .cs file private TestContext testContextInstance; public TestContext TestContext { get { return testContextInstance; } set { testContextInstance = value; } } i used this method TestContext.WriteLine("message"); So in my output i see the message that i log....

ReSharper Documentation Tags Formatting One Per Line

c#,visual-studio-2012,resharper

Turns out I was looking in all the wrong places. I was attempting to fix the comments layout by using the refactoring settings. The settings to format the XML comments at creation time are in the StyleCop settings here: ...

Using MathML and JavaScript inside WebBrowser component

c#,wpf,visual-studio-2012,mathjax,mathml

MathML is not yet supported by the WebBrowser in Visual Studio (probably IE). Math can be typeset using CSS and javascript. A webpage would then need to include <!-- saved from url=(0014)about:internet --> in order not to get the pop-up "Allow blocked content"....

How to uninstall a program using C#? [duplicate]

c#,visual-studio,visual-studio-2012,command-line,windows-installer

You've asked with a Windows Installer tag, so if we are talking about products installed from MSI files: Attempt 1 is incorrect because Windows Installer doesn't use the uninstallstring to uninstall products (change it and see if it makes a difference), and there are better ways. 2 uses WMI, and...

Post-build ditrective syntax

c#,asp.net-mvc-3,visual-studio-2012

I don't see a reason to do it like this. Simply open References in Solution Explorer, right click on the reference in question, choose Properties and set Copy Local to True. That should do the trick.

Dynamic loose source routing in IP networks

c++,visual-studio-2012,boost,routing,ip

I can't figure it all out, but the below is a fixed up version without some of atrocities all those using namespaces beg to conflict/interfere silently the tr1 dependency surely is obsolete even in VS by now Now, the remaining things are to do with assuming unsigned characters (the literal...

control may reach end of non-void function xcode

c++,xcode,visual-studio-2012

When writing something like Type func() { ... } The compiler expect you to return an object of type Type in every paths of the function, which is not what you do here. Or your LOG function return an A object, which I doubt, and you should write return LOG(),...

Angular Structure Incorrect Somewhere

c#,angularjs,visual-studio-2012,angularjs-controller,angularjs-controlleras

Below things are missing ng-app directive must be there in on the body/html tag like ng-app="app". Scripts should be loaded in header of your page. You must be loading angular.js before loading any other file which is using angular object References should be <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js"></script> <script src="~/Scripts/profileController.js"></script> Update As you...

How do I get list of all users in TFS 2013

c#,visual-studio-2012,tfs,tfs2013

Get the users list from TFS 2010, you can try use the TFS API, please refer to the following code snippet: TfsTeamProjectCollection tfs = new TfsTeamProjectCollection(new Uri("url")); tfs.EnsureAuthenticated(); IGroupSecurityService gss = tfs.GetService<IGroupSecurityService>(); Identity SIDS = gss.ReadIdentity(SearchFactor.AccountName, "Project Collection Valid Users", QueryMembership.Expanded); Identity[] UserId = gss.ReadIdentities(SearchFactor.Sid, SIDS.Members, QueryMembership.None); foreach (Identity user...

Visual Studio, Debug project that calls another project within the same solution file

c#,visual-studio-2012,visual-studio-2013

Is there a way to debug the launcher AND the call to second program? Unless it's different application (external application) you shouldn't face any issue debugging the same. In case, pressing F11 doesn't jumps to a method in second project; you can explicitly put a break point in that...

x64 program returns the correct SIDT value occasionally (x64 assembly)

c,visual-studio-2012,assembly,64bit

Each core (physical or virtual) in a multi-core CPU has its own IDT. What you're seeing are the IDTR values for different cores in your system. None of them are incorrect.

Team Foundation 2012 not recognising changes in vb6 app

visual-studio-2012,tfs,vb6,tfs2012

If you don't want to specifically check-out files (or use an editor that does it for you like VS), then you should switch to using a local workspace. In source control explorer dropdown the workspaces dialog and change the settings from Server -> Local.

Label change when button click [closed]

html,css,visual-studio-2012

Make sure you put 2 "equals" inside the IF(x.x == x) like: private void btnColorChange_Click(object sender, EventArgs e) { if (lblTvalue.Text == "1") { lblTest.Text = "$0.00"; } if (lblTvalue.Text == "2") { lblTest.Text = "$2.00"; } } ...

Forbid linking against a c++ method

c++,c++11,visual-studio-2012,dependency-walker

You can use __declspec(deprecated) in Visual C++ to generate warnings for use of a specific function. You can use #pragma deprecated to deprecate the usage of any symbol (including macros). See more information on MSDN. This can generate warnings or errors (depending on computer flags) but you can supress them...

How do I avoid the loss of data after I rerun (debug) my program in Visual Studio?

visual-studio,ms-access,visual-studio-2012,ms-access-2013

Never mind guys, i found a solution. I changed my database's properties "copy to output" from "copy always" to "copy if newer". Such a simple solution for all my struggles...

Visual Studio native unit testing: Debug/console output?

c++,unit-testing,visual-studio-2012

The debug output shows in the debug output window if you right-click and choose `debug' on whichever test in the test explorer window. Otherwise it doesn't.

Exposing localhost to the internet via tunneling (using ngrok): HTTP error 400: bad request; invalid hostname

asp.net,visual-studio-2012,asp.net-web-api,iis-express,ngrok

Troubleshot this issue with ngrok. Apparently, some applications get angry when they see a different host header than expected. Running the command: ngrok http [port#] -host-header="localhost:[port#]" will clear up the problem. ...

Using single precision floating-point with FFTW in Visual Studio

c++,windows,visual-studio-2012,fftw

For single precision routines in FFTW you need to use routines with an fftwf_ prefix rather than fftw_, so your call to fftw_plan_dft_r2c_2d() should actually be fftwf_plan_dft_r2c_2d().

How to test a WebApi service?

c#,asp.net,rest,visual-studio-2012,asp.net-web-api

WebApi, like MVC, is all based on the routing. The default route is /api/{controller}/{id} (which could, of course, be altered). This is generally found in the ~/App_Start/WebApiConfig.cs file of a new project, but given you're migrating you don't have it most likely. So, to wire it up you can modify...

Visual Studio 2012 Ordered Test, how to monitor test execution

c#,visual-studio-2012,testing,ordered-test

Visual Studio supports ordered tests as explained here. You have to add an Ordered Test to your solution which can contain actual unit tests. Within the ordered test, you can define which test is executed in which order. If you want to view some progress indication while your tests run...

SQL server & Visual Studio

sql,sql-server,visual-studio,visual-studio-2012

If you are running Visual Studio on your local machine, you have not any problem with firewalls and enabling of TCP/IP. try this four solutions may fix your problem: SQL Server Express LocalDB add-on, get it from this link. Make sure that your SQL service is running. use SQL Server...

Error: 'The system cannot find the file specified.' when trying to access certificate

c#,visual-studio-2012

in the properties window (select the p12 file and press f4), ensure the 'Copy to Output Directory' is set to 'Copy Always'. this will ensure the file gets copied to the ultimate EXE location. basically when you say new X509Certificate2(@"key.p12", "notasecret", X509KeyStorageFlags.Exportable); the code is expecting the key.p12 file right...

What do I need to get Microsoft.TeamFoundation.Framework.Client.dll?

visual-studio,visual-studio-2012,tfs,tfs2013

I have got a solution. I have added a nuget package called 'Microsoft.TeamFoundation.Client'. After installing this package i got 'Microsoft.TeamFoundation.Framework.Client.dll' in the folder....

Asp.Net Website extension for visual studio 2012 express for windows desktop [closed]

asp.net,visual-studio-2012

You can install either: Visual Studio 2012 Express for Web Visual Studio 2013 Express for Web Or, and this depends on your situation Visual Studio 2013 Community Edition Which is actually a free version of Visual Studio Professional which can be used based on your financial or organisational situation. It's...

Using an iPad as the networked Mac for Xamarin.iOS for Visual Studio

c#,ios,ipad,visual-studio-2012,xamarin

No. You cannot run XCode on an iOS device, therefore it cannot be used as a Xamarin build host. If you do not have a Mac to act as a build host, you can get one in the cloud from: http://www.macincloud.com/

VS 2012: Konfiguration Combo too Small

visual-studio-2012

Yes it's possible. Click on "Standard Toolbar Option" -> "Add or Remove Buttons" -> select "Customize" In opened new window under "Command" tab scroll down and highlight "Solution Configuration" -> Click on "Modify Selection" and change the width accordingly Follow the below screen print in Visual Studio 2010 ...

Difference between vector and list [duplicate]

c++,visual-studio-2012,visual-c++

A vector is a resizable array. It's elements are stored next to each other in a contiguous block of memory, so that the position of each can be calculated quickly; this is known as random access. Inserting and removing elements from the middle requires moving all the later elements, so...

Asp.NET: How to trigger OnCommandClick first than OnClientClick

c#,asp.net,visual-studio-2012,javascript-events

OnClientClick always gets called first. I suggest getting rid of OnClientClick and move the file download code to the server-side event OnCommandClick, right after updating the session. You can either use FileStream or inject a javascript code that will start the file download....

Setting the .src of img elements fails

javascript,html,visual-studio-2012

Try with console to see src of your img, when you set src to "" you'll most likely get your base url, so your != "" will never be false. Try setting your img like this: <img id="1back"> Then src != "" should validate until you assign a src....

OpenGL GLFW build errors OR linking errors

c++,opengl,visual-studio-2012,glfw,cmake-gui

Extract GLFW to C:\glfw-src (such that CMakeLists.txt in the archive is at C:\glfw-src\CMakeLists.txt) cd C:\glfw-src mkdir build cd build cmake-gui ../ Press Configure, select toolchain Set CMAKE_INSTALL_PREFIX to C:/glfw Create c:\glfw directory Press Configure again Press Generate Open build\GLFW.sln in Visual Studio Build the Release version of the ALL_BUILD project...