FAQ Database Discussion Community

## 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 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#?...

## 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...

## VS 2012 Publish Website dialog box

asp.net,visual-studio-2012,web-site-project
I am attempting to publish a website using VS 2012 within the company, however, when I select "Publish Website" from the solution explorer, I get this dialog box What I am looking for, is this dialog box: Any ideas how to go about retrieving the desired dialog box?...

## 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...

## 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"...

## 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 create a new txt file every time I click on this button?

vb.net,visual-studio-2010,visual-studio-2012
Private Sub cmdsummary_Click(sender As Object, e As EventArgs) Handles cmdsummary.Click Dim writer As New System.IO.StreamWriter("C:\Users\salman\Desktop\Text.txt") writer.WriteLine(Me.customer.Text + Me.txtcustomer.Text) writer.WriteLine(Me.todaystotal.Text + Me.txtsummarytotal.Text) writer.WriteLine(Me.average.Text + Me.txtaveragetotal.Text) writer.Close() End Sub Every time I click on cmdsummary it edits the notepad file (txt) and updates it but I want to create a new txt...

## Visual Studio watch shows different values for same object

c++,visual-studio-2012
I am working on a game with a few other students and I just encountered an issue. I have a factory object which has a std::vector<BehaviourFactoryCallbackObject> called registeredObjects. BehaviourFactoryCallbackObject contains a user given function used to create objects. This section is in the .dll created by the game engine (irrlicht)....

## Label change when button click [closed]

html,css,visual-studio-2012
I'm trying to make a label change when I click a button, but for some reason it is not working. It was working until I made a little change, and i do not know what to do anymore. Can some one help? Here is the code: private void btnColorChange_Click(object sender,...

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

visual-studio,visual-studio-2012,tfs,tfs2013
I am using visual studio 2012 and tfs 2013. The problem i am facing is Microsoft.TeamFoundation.Framework.Client.dll is missing. But i have other dlls such as Microsoft.TeamFoundation.Client,Microsoft.TeamFoundation.WorkitemTracking.Client. Can anyone tell why the dll is missing? Is there any way to resolve the issue. Thanks in advance.

## Reporting Services - DateDiff function

visual-studio-2012,reporting-services
I am trying to find a way to obtain the last day of the previous month in an SSRS report that I am building (it will be in the report header), but I am running into errors that I have been unable to get around. Normally in SQL I would...

## 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 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
I'm trying to add a progress control in my dialogs, that will step upon every iteration of a loop until completion. I've never played around with progress controls before, so I'm totally clueless as to where I should start. I've added a progress control resource view into my dialog, but...

## Redemption Cannot add Item to Folder

c#,visual-studio-2012,outlook-redemption
I'm writing a program in C# using Redemption to iterate through the RDOMail objects in a RDOPstStore and copy the ones marked as relevant to a new RDOPstStore. I can modify the folders in the RDOPstStore.IPMRootFolder, and do so to only leave one folder (Results). However when I go to...

## Where to specify preprocessor directives in visual studio?

c#,visual-studio-2012
Trying to define a preprocessor directives in the Visual studio 2012. #define FLAG .... #endif But not sure, where to include this FLAG in visual studio - C#. I remember specifying something like this in C++ projects. Any thoughts ?...

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

visual-studio-2012,tfs,nuget
MS VS 2012 I have solution in tfs with enabled nuget packages restore. Every time when I build solution all my project files are cheked out with this changes: <Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" /> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> <PropertyGroup> <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet...

## Angular Structure Incorrect Somewhere

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

## 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...