FAQ Database Discussion Community

## SQL server & Visual Studio

sql,sql-server,visual-studio,visual-studio-2012
i need help with SQL server in visual studio. I can't seem to connect my visual studio with internal SQL server. I had created a database with visual studio earlier and it was working fine but now i'm getting an error saying; "The attempt to attach to the database failed...

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

git,visual-studio,visual-studio-2012,tfs,csproj
I'm hoping you can help me solve this development workflow annoyance. I'm a front-end dev working on a project where most of the other developers use MS Visual Studio, and I don't. We've got TFS set up, and I'm able to check out code and make edits locally. After making...

## Elastic Bamboo CI Windows Server - MSBuild 12 not publishing

c#,visual-studio,visual-studio-2012,msbuild
I have a custom image with Node.js, Microsoft Build Tools 2013, Windows SDK for Windows 8.1, .Net Framework 4.5.1 SDK, Microsoft Test Controller for Visual Studio 2013, Microsoft Agents for Visual Studio 2013 and Microsoft Web Deploy 3.5 installed. Most things are working but I am struggling to get the...

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

Recently I have created an Addin for my outlook 2013 in VB.net. I usually do a lot of modifications on this application especially in the beginning. These modification automatically download when a user starts its outlook as soon I publish the project. The question I have, and which I cant...

## OpenGL GLFW build errors OR linking errors

c++,opengl,visual-studio-2012,glfw,cmake-gui
Can someone help me get GLFW working in Visual Studio 2012? I can't get past initial compilation. I keep getting unresolved externals for the GLFW functions. The problem is, I don't know what I'm doing wrong. I could be: Improperly making the source files with CMake. Improperly building the library....

## Any way to use XML axis properties in C#?

c#,xml,visual-studio-2012
Is there any way at all, by using some imports or usings, to use XML axis properties in C#? I mostly work in VB, and am so used to being able to just query XML with (from xel in xdoc.<names>) Having to do a little work in C# now, it...

## c++ store special characters (“ç”, “á”,..etc) on SQLite db

c++,qt,sqlite,visual-studio-2012,sqlite3
My program uses SQLite3 lib to open and execute some querys to a local DB. This is the function I use to execute a query (with error displaying): void exec(string query, string place_error){ if( sqlite3_exec(sqldb,query.c_str(),0,0,&db_err) != SQLITE_OK) sql_error(place_error+" - "+(string)db_err); } Now, if I try to execute something like: exec("INSERT...

## Setting the .src of img elements fails

javascript,html,visual-studio-2012
i have a 6x6 html-table. Each <td> holds <img id="1back" src="" /> where the id of each img-element is declared as "1back" to "36back". Further I have 18 .jpg files named "1.jpg" to "18.jpg". Each image has to appear in the grid twice , distributed randomly. I am trying to...

## Dynamic loose source routing in IP networks

c++,visual-studio-2012,boost,routing,ip
Okay guys, I have this idea to recreate a program wich could find the best rout in IP networks. I found one guy on the internet who did it, and he shared some code..but whatever I'm doing with it, I can't make it work. I'm using Visual Studio 2012 with...

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

batch-file,visual-studio-2012,cmd,build-script
I have a lot of Visual Studio Project Solutions in multiple directories (all with the extension .sln) and I want to write a simple batch script that will automatically build all solutions listed in the batch file. I am able to manually build a solution by starting up the Visual...

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

c#,visual-studio-2012
The "Build" menu appears as it would if the solution were building, but the Cancel Build (Ctrl+Break) menu item has no effect. Trying to close the application prompted as: The build must be stopped before the solution can be closed. Can anyone help me to resolve this problem...

## Angular Structure Incorrect Somewhere

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

## 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
I want to add a new record into an Access database which is already populated with data. When I initially run (debug in Visual Studio) and add the record, it is saved into that specific table. Then when I close the program and run it again, the record is nowhere...

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

c++,qt,visual-studio-2012,executable,exit
I am facing a rather peculiar issue: I have a Qt C++ application that used to work fine. Now, suddenly I cannot start it anymore. No error is thrown, no nothing. Some more information: Last line of output when application is started in debug mode with Visual Studio 2012: The...

## How to install C++ library to VS2012?

c++,visual-studio-2012
I am not familiar with the way to install the libraries. I've downloaded the library which I need and there are some *.h in the include folder and *.cpp in the src folder.But what makes me mad is that I don't know how to use them.Just put them into the...

## Accessing parent parameters from child package SSIS 2012

visual-studio-2012,ssis
I know this subject has been covered here several times but I could not get any of the answers worked for my problem. I have 7 packages running in a Master Package and 7th child has 3 parameters. To be able to let user define those 3 parameters, I have...

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

c++,visual-studio-2012,boost,nuget,zlib
I've installed these packages: boost boost-vc110 boost_iostreams_zlib zlib But the linker is unable to find the required lib: 2>LINK : fatal error LNK1104: cannot open file 'libboost_zlib-vc110-mt-1_58.lib' Is there a way to fix this problem manually by changing the file name or am I still missing a package?...

## Post-build ditrective syntax

c#,asp.net-mvc-3,visual-studio-2012
I received this dreaded error, related to ClosedXML, when I deployed my project to the server. The project runs locally, though. Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. So I placed the "missing" DLL file...

## Memory leaks despite destructor call

c++,visual-studio-2012,memory-leaks
I'm working on a class LinkedList which looks like this: private: LL_element* first; LL_element* last; int size; public: //constructor Linkedlist(): first(NULL), last(NULL), size(0) {} //destructor ~Linkedlist(); //adds element at the end of the list. void push_back(int value); //removes an element at the end of the list. bool pop_back(int& value); The...

## Named pipes error 40, connecting to Xampp through visual studio

c#,php,visual-studio-2012
I have set up Xampp as a server to host my database. I am trying to connect to the database, filter results and output them to the datagridview based on the text in txtSearch private void btnTest_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection("Data Source=localhost;Initial Catalog=epas;Persist Security Info=True;uID=root;Password=Password");...

## Asp.NET: How to trigger OnCommandClick first than OnClientClick

c#,asp.net,visual-studio-2012,javascript-events
I am crating a session inside the OnCommandClick to save informations about a file that will be downloaded. If I click to download it, the OnClientClick works fine and I can download the file. But when I have a grid with more than one file, I think that the function...

## Issue running stored procedure from .net

asp.net,sql-server,visual-studio-2012,stored-procedures,sql-server-2008-r2
I have this stored procedure : CREATE PROCEDURE [dbo].[GetTransactionFeeType_Pager] @PageIndex INT = 1 ,@PageSize INT = 10 ,@ProgramName VARCHAR = '' ,@RecordCount INT OUTPUT AS BEGIN SET NOCOUNT ON; SELECT ROW_NUMBER() OVER ( ORDER BY ID ASC )AS RowNumber ,FeeType,TransactionNumber,Amount,TransactionDate,ResponseDescription,PaidUsing INTO #Results FROM TransactionLog where [email protected] SELECT @RecordCount = COUNT(*)...

## How to get started with Visual studio 2012

c#,asp.net-mvc,asp.net-mvc-3,asp.net-mvc-4,visual-studio-2012
I want to create web application using Visual Studio 2012. The application should login into a website and report numerical findings on the UI. The language used will be Visual C#. I have loaded the application and selected on the menu: File> New > Projects. A window appears with multiple...

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

visual-studio-2012,wix
I installed WIX in my machine. I followed the video of https://www.youtube.com/watch?v=CoFPyIbcqN8enter link description here I can not find any way to add File Systems, no icon for it, no context menu entry on project. I am using Visual Studio 2012....

## Command line build solution vs Visual Studio 2012 build

c#,wpf,visual-studio,visual-studio-2012,build
I am in the process of creating a CI build machine. I use the command line to build our VS2012 solutions which contain many project types (wpf, forms, MFC, c# and c++). I use the following command line: call "%VS110COMNTOOLS%\vsvars32.bat" devenv.com SolutionName.sln /rebuild "Release|Mixed Platforms" If I look at the...

## Upgrading separate Project Collection Database to new TFS Version

visual-studio-2012,tfs,tfs2012,tfs2013
I have 2 TFS Servers, one running TFS 2012 and another 2013. I have to move one collection from the 2012 to the 2013 version, but when I backup and restore it in the appropriate SQL server and click on the Attach Collection button, the TFS says that it can't...

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

vb.net,winforms,visual-studio-2012
I am trying to add a simple windows form to my VB.Net project. I have used the designer to design the form how I want it with buttons, a text box and a Timer. The problem is when I try to view the code, there is only an empty class...

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

visual-studio-2012,integration,clips
I have checked the updated code from the weibsite: http://sourceforge.net/projects/clipsrules/ When I build the CLPSStactic project, there is an error displayed in the output window: ..\clipscpplib.cpp(281):error C2664: "EnvAddRouterWithContext": cannot convert parameter 4 from "int (__cdecl *)(void *,const char *) to "int (__cdecl *)()"" Notes： I use the VS2012 version Using...

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

c#,ms-access,visual-studio-2012,oledb,dapper
I keep getting the error "no value given for one or more required parameters" on the third attempt to insert in the code below. The first two attempts work fine. I'm running in .NET 4.0, against MS Access in VS 2012. And this problem appears to be consistent whether I'm...

## how to send a post request using Visual C#

c#,windows,visual-studio-2012
I want to create a authentication page with a website from a windows app using XAML and C#. i have tried using the following code: private void SubmitData() { try { string user = textBox1.Text; string pass = textBox2.Text; ASCIIEncoding encoding = new ASCIIEncoding(); string postData = "user=" + user...

## How to add a resource file in visual studio

visual-studio-2012,resx
I want to add a resource file to my project in Visual Studio. But I am not able to find from where I can create the resource file. Can anyone help me out in this

## control may reach end of non-void function xcode

c++,xcode,visual-studio-2012
I have a third party library code segment which has the following structure: class A; A func() { if(...) { return A(...); } else if(...) { return A(...); } else { LOG(...); } } And it gives the error "control may reach end of non-void function" in Xcode. The same...

## How do I get list of all users in TFS 2013

c#,visual-studio-2012,tfs,tfs2013
I am using Team Foundation Server (TFS) 2013 and Visual studio 2012. I need a list of all the user in TFS. Is there any way to get all the users in TFS using C#?...

## Merging text files based on headings.

c#,visual-studio-2010,visual-studio,visual-studio-2012,split
I am looking for some advice on how I could merge multiple text files based on their headings. So say I have the following 3 text files with the following headings. As you can see some elements repeat and some are unique to the text file. The text files contain...

## << Definition using inheritance and templates [duplicate]

This question already has an answer here: What is an undefined reference/unresolved external symbol error and how do I fix it? 18 answers I am trying to implement a Linked List in C++ using templates. Unfortunately I am getting an unresolved external error when I try to use a...

## Visual Studio native unit testing: Debug/console output?

c++,unit-testing,visual-studio-2012
Can anyone tell me how to enable or get debug or console text output when running unit tests in a native (C++) test project in Visual Studio 2012? Answer should not include the phrase, "use Google Test"....

## Best Alternative to the infinity for integers

c#,visual-studio-2012,infinity
I am developing weight matrix for a directed weighted graph. and I have to insert infinity as well according to the rules of weight matrix. So far i am sticking with with int.MaxValuebuiltin function of C#... After this I am using this weight matrix for FloydWarshall algorithm, but due to...

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

c#,visual-studio-2012,reference,code-coverage
I am building a custom code coverage app using the Microsoft.VisualStudio.Coverage.Analysis class. I have added the reference to the dll to my solution already and when I start typing the using statement at the top of my class Visual Studio is predicting the correct names, e.g. after typing "Microsoft." "VisualStudio"...

## Webforms asp:Panel children not showing fully in VS 2012

asp.net,visual-studio-2012,webforms
I'm wrestling with design time rendering of my custom WebForms components where I have defined a control derived from Panel and a second control derived from WebControl. I place the WebControl inside the Panel by dragging and dropping from the Toolbox. The problem I have is that at design time...

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

windows,visual-studio-2012,dll,vtk
I'm currently trying to build and run some of the example of the VTK. Building goes just fine, however when trying to run the examples I have some missing DLLs errors. I am using windows 8.1, Visual Studio 2012. My path actually include the directory where all the dlls are...

## How to successfully implement WPF textbox validation?

c#,wpf,validation,xaml,visual-studio-2012
I'm trying to implement what should be simple textbox validation for a WPF application, but I'm having some problems. I used this guide: http://www.codeproject.com/Tips/690130/Simple-Validation-in-WPF My textbox in MainWindow.xaml: <TextBox x:Name="textbox1" HorizontalAlignment="Left" Height="23" Margin="93,111,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Style="{StaticResource textBoxInError}" Validation.ErrorTemplate="{StaticResource validationErrorTemplate}"> <TextBox.Text> <Binding Path="Name"...

## Move from visual studio online to github

git,visual-studio-2012
I've created a project with visual studio online source control, however I've never actually synced with the server, i'm just committing locally. Now I need to add this project to a github repository, so in the windows github client I've located the project and added it, I can see all...

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

c++,templates,visual-studio-2012,nested
In the following example, I have an object class which defines a reference class. Both accept mutability as a template argument. In the case that 'obj' is 'Const', I want to disallow a reference of type 'Non_Const'. The example produces the ambiguous message, "An internal error has occurred in the...

## What's the order of editor tab windows in Visual Studio

visual-studio,visual-studio-2012
When multiple tab editor windows are open for different files in Visual Studio, sometimes editor tab window shows, but sometimes it is hiding. When I was making the change for two files back and forth, after I change one file and want to go back to edit another file, but...

## The difference between EF6 and EF4.1 in files hierarchy

c#,entity-framework,visual-studio-2012,entity-framework-6,edmx
I'm a beginner to Entity Framework . I notice that When I use EF6 with Visual studio 2013: I have .Designer.cs empty file with this comment: // T4 code generation is enabled for model 'C:\Users\Luka\Desktop\Test\EF-db2008\AdventureWorks\AdventureWorksLib\AdventureWorksLib\AWLTModel.edmx'. // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer...

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

c#,visual-studio-2012,tfs
VS2012 Pro and TFS: This is a file that used to be under source control and even the icons next to it I think is showing that it is but when I make a change and right click the option for "Undo Pending Changes" is disabled. However other files in...