Questions tagged [visual-studio-2017]
Visual Studio 2017 (aka Visual Studio "15", includes C++ compiler version 19.1) is a version of Microsoft's Visual Studio. Do not use this tag unless you have a specific question about this specific version.
12,697
questions
-1
votes
0
answers
46
views
Cannot open include file in Visual Studio
I'm getting a message that the included file cannot be opened, even though I've added it to the "Additional include directories". I also only get this error with this file.
I am using ...
0
votes
1
answer
36
views
Previously working executable now gives application error at runtime
I recently copied C++ source code I am developing in VS2017 from my desktop (running Win 10) to my new laptop (running Win 11).
Although the code compiles and links successfully, I now encounter a ...
0
votes
1
answer
20
views
I have 1 VB 2017 Project (out of several) with no SUO files. How do I get the options file back?
I have several vb 2017 projects. Just 1 is missing the SUO file and so none of the options, i.e. open files, breakpoints, watch lists, etc. are saved.
The other projects work just fine.
How I do I get ...
-1
votes
1
answer
55
views
Why does getting the class member variable address at compile time result in C2327 and C2065?
I have the following chunk of code which "works" in a simple, newly created hello world VS2017 project, and in another app we have, but for some reason I cannot identify, it doesn't "...
-2
votes
0
answers
22
views
How can I add more test files in my unit test project? [duplicate]
I have two projects in my solution named LeapFrogCppOop__sln:
LeapFrogCppOop
LeapFrogCppOop__googletest
In the project LeapFrogCppOop__googletest, I have four C++ files:
pch.h
pch.cpp
header.h
...
-1
votes
0
answers
61
views
Unit test fails even though values are equal [duplicate]
How can I resolve the following issue?
#include "pch.h"
LennardJones lj(Constants::EPSILON, Constants::SIGMA, Constants::KB);
TEST(TestCaseName, TestName)
{
Vec3 diatance(4.0, 4.0, 4....
0
votes
1
answer
39
views
Bugs with ETL project Visual Studio 2017
Trying to create an integration services project where I use an "OLE DB source" object in which I execute an SQL query that extracts 120,000 rows and 120 columns. I want to dump that data ...
0
votes
0
answers
25
views
Visual Studio Report not Exporting Correctly to Excel
I have a report that contains a calculated field for Completion Rate % using the following code:
=IIF(Fields!ORG_REG_OPENINGS.Value>0,
Sum(Fields!COMPLETED_SLOTS.Value) /
Sum(IIF(Fields!...
1
vote
1
answer
49
views
Parameterizing Database Connection in SQL Server Integration Services
I have been struggling with the creation of testing environment for my existing SSIS solution (Visual Studio) and I can't figure out the right approach.
My current solution is based on a production ...
-2
votes
0
answers
64
views
Common language runtime support error in visual studio 2017
I have a old project which I am able to build in 2012 VS.
Because in vs 2012 clr:oldSyntax support is there
Same project when I am trying to build in VS 2017 I am getting below error, even after ...
0
votes
1
answer
39
views
Visual Studio 2017 opening edmx file cause HRESULT: 0x80029C4A error
I am trying to open edmx file with ADO.NET Entity Data Model Designer but I am getting the below error:
Cannot load 'C:\MyUserName\source\repos\MyProject\MyModel.edmx': Error loading type library/DLL. ...
-1
votes
0
answers
15
views
Could not load file or assembly 'crdb_adoplus.DLL' or one of its dependencies. The specified module could not be found
Server Error in '/' Application.
Could not load file or assembly 'crdb_adoplus.DLL' or one of its dependencies. The specified module could not be found.
Description: An unhandled exception occurred ...
0
votes
1
answer
24
views
What is the meaning of the dollar sign in front of a variable in SSIS?
I am trying to understand an SSIS package that I did not build and am struggling to find a variable. Lets just call the variable:
MyVariable
However, in the definition of MyVariable, there is an ...
0
votes
1
answer
61
views
How to override the way CLCompile processes the source files in MSBuild?
I try to use ccache with VS2017 using the steps described here: https://github.com/ccache/ccache/wiki/MS-Visual-Studio
Turned out, it only works for ninja and nmake projects which is unacceptable for ...
0
votes
0
answers
24
views
How to obtain vcruntime140_1d.dll while respecting license agreements
I have a valid Visual Studio 2017 Professional license.
I have a library dependency built with Visual Studio 2019. This makes it necessary to have vcruntime140_1d.dll in order to be able to run a ...
0
votes
2
answers
66
views
How to comment and uncomment a code in Visual Studio 2017
Commenting my code in Visual Studio 2017 using Crtl+K+C and sometimes it works, but don't know how to uncomment it back.
I tried to comment my code in Visual Studio 2017 using Crtl+K+C and sometimes ...
1
vote
1
answer
99
views
Metadata discovery only supports temp tables when analyzing a single-statement batch - SSIS package error
I'm trying to a temp table in a CTE SQL statement. It runs well in Microsoft SQL Server Management Studio but when I try to use the SQL statements in Visual Studio - SSIS package it only executes one ...
0
votes
0
answers
38
views
Connecting a SQL Server Express 2008 R2 database to Visual Studio 2017 without upgrading it
I am looking for a way to get a form application that I currently have designed in Visual Studio 2017 to run on Windows XP.
To do this (and as far as my limited knowledge allows me to understand), the ...
0
votes
0
answers
113
views
Building 64-bit dll in Visual Studio 2017
I have a 32-bit dll which works on Windows 10. Now I need to build a 64-bit version of it which works on Microsoft 365. The code is written in C#.
For the current 32-bit dll, I do the following to ...
0
votes
0
answers
23
views
A form application throws System.NullReferenceException in the database if it is installed on another computer, but not on the development computer
Before getting into the subject, I would like to say that before getting to this problem I had to solve another one that I asked in the this link.
Thanks to Erland Sommarskog, I think I have solved a ...
0
votes
0
answers
56
views
Git cherry-pick is disabled in Visual Studio 2017
We are cherry-picking commits on release branch and came across an issue where cherry-pick option is disabled for one specific commit.
Please see the image below
This problem is only with particular ...
0
votes
1
answer
29
views
What might be causing ReSharper to detect unused types incorrectly?
Am having some problems with ReSharper (latest, 2023.1, installed for VS2017) and detection of unused types.
When opening class files, some class names are ghosted as though they're not referenced, ...
0
votes
0
answers
25
views
Visual Studio Create Declaration / Definition remove space before star/ampersand for the pointer/reference type parameters
There is an option in MSVS to Create Declaration / Definition for a function. Example:
Consider you have written your function declaration in foo.h as follows:
int foo(char* cstr, vector<int>&...
0
votes
0
answers
86
views
SSMS An exception has been encountered. You can get more... in file "path\AppEnv\15.0\ActivityLog.xml"
On Sunday, I planned to start work by modifying some data into backend using SSMS. But as I started the application and connected it to Azure DB, and opened the new query window the error appeared ...
0
votes
0
answers
17
views
Navigation Back Button Not Showing up in xamarin forms page outside a masterpage after i set NavigationPage.HasBackButton="True"
I set has NavigationPage.HasBackButton="True" in xamarin forms but its not showing up
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://...
0
votes
0
answers
63
views
Where does the WinForms Designer read information for event handlers? Present in code but missing in designer
I have not found any solution for this issue. I have a WinForms application that is under development in Visual Studio 2017.
Event handlers are not showing up in the WinForm Designer.
Event handlers ...
0
votes
0
answers
8
views
How to setup the visual studio app centre to run on visual studio 2017 instead of 2019
My UWP project normally runs on 2017 and throws some errors when running on 2019. This is a known issue. I tried to setting up the build project in app centre and it didn't request me to select any ...
0
votes
0
answers
54
views
Linking to libvorbis nad libvorbisfile failed - LNK2001 unresolved external symbol __imp__floor
I use VS 2017. I have added linking to libvorbis_static.lib and libvorbisfile_static.lib for an exisiting project. During linking I get a few errors with the same message:
LNK2001 unresolved external ...
0
votes
0
answers
18
views
How do you fix view for zoomed in components in VS 2017
I had been using Visual Studio for a while now but this is the first time I had encountered this issue. I am not sure how this happened but as you can see my whole workspace is not looking pretty good....
0
votes
0
answers
9
views
An exception occurred while invoking executor 'executor://webtestadapter/v1 error occurring After renaming the Webtest
I refactored the exisitng webtests(VS 2017) and they were running fine. As soon as I renamed them they are showing below error. Then I tried to rename back to the original name but still having this ...
0
votes
0
answers
13
views
Split design view / source view windows scroll to wrong location
I'm working on an aspx file in Visual Studio. I have the window split to show both design view and source view of the file.
I thought that when I clicked in either the design half of the window or ...
0
votes
1
answer
40
views
What is this flag in the gutter of my Visual Studio code editor? How do I get rid of it?
In VS2017, I was trying to use a shortcut key combination from an older version. (Naturally, it doesn't work because MS has to change things all time - but enough of that rant...)
Instead, this flag ...
-1
votes
2
answers
152
views
How to add .NET 5 to Visual Studio 2017?
I have installed Visual Studio 2017 and it already has .NET Core 2 package. Can I add .NET 5 to it? If yes how can I do that?
0
votes
1
answer
134
views
CMake does not run moc for a Q_NAMESPACE in a shared library
Problem
I'm trying to register a namespace in QML from a shared library, but the compilation fails with an unresolved external symbol error:
failed (exit code 1120) with the following output:
main.cpp....
0
votes
0
answers
9
views
Visual Studio created app.config files on DLL projects. Does it actually make any use of them?
Recently on a NuGet package update, Visual Studio created app.config files on DLL projects, containing dependencies. Does it actually make any use of them? Like, I know System.Configuration only loads ...
0
votes
2
answers
211
views
Error E013 namespace "boost::asio" has no member "io_context"
I'm new to Boost and I'm trying to use it with C++. I'm using boost_1_82_0-msvc-14.1-64.exe on Visual Studio 2017. I've written some code that reads COM port data and I've tried my best to fix it, but ...
0
votes
0
answers
11
views
Visual Studio 2017 Report using a Matrix
I have built a report with multiple datasets from SQL and multiple matrices. The report shows current ytd data per month. The problem is that in the preview, the matrix shows all the future months ...
-1
votes
1
answer
669
views
CMake error "No CMAKE_CXX_COMPILER could be found" while building visual studio 2010 project on visual studio 2017
Earlier I had Visual Studio 2017 Version 15.9.43.
In my project I have one sub project which is based on visual studio 2010 and we cannot upgrade it to visual studio 2017. To create .sln file for this ...
0
votes
1
answer
272
views
node-gyp configure will Error: spawn EPERM at VisualStudioFinder
C:\Users\Jenny_Hung\test\d-api>node-gyp configure
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python ...
2
votes
3
answers
909
views
OpenCV 4.7 camera calibration with ChAruCo markers
I have trouble setting up the camera calibration features with charuco markes.
I am using Win10 with VS217 and openCV 4.7 installed from the download. Genuinely, the code can use AruCo markers and set ...
1
vote
1
answer
412
views
System.Text.Json requires two different versions of CompilerServices.Unsafe?
For context, I am making a VSIX for VS2017, and I require System.Text.JSON for serializing/deserializing data.I am using version 6.0.0.0 of System.Text.JSON
If I set CompilerServices.Unsafe to 4.0.4.1 ...
0
votes
1
answer
186
views
Getting 'exited with code 9009' when trying to copy files via post build event - VS 2017
I want to copy a set of files from my project folder to the output folder using the post-build event. If the folder Settings does not exist, want to create it. I have tried the below code.
SET path=$(...
0
votes
0
answers
36
views
How to fix this error: The definition of this report is not valid or supported by this version of Reporting Services
i open my program in visual studio 2017 and when i run it it gives me this long error message: "ReportProcessingException: The definition of this report is not valid or supported by this version ...
0
votes
1
answer
116
views
Visual Studio 2017 profiler does not show function names
I ran the Profiler (Alt+F2) in Visual Studio 2017 on several projects of mine, but they all show the same thing.
I get a table where under "Function Name" column, I only have the project exe ...
0
votes
0
answers
23
views
VS2017 projects files refresh
There is a big project on C++ and MASM and it has been restructured via Explorer and now I have some problems with files targeting. VS is automatically updated the renamed folders and all I had to do, ...
0
votes
0
answers
60
views
C# how to force MTOM optimization for content less than 768 bytes
I am trying to send a SOAP message over to a server that requires MTOM optimization. Sending large files is fine, but sending small files returns a 400 Bad Request, with an Error Message of "The ...
0
votes
1
answer
282
views
Unable to connect to TFS from Visual Studio 2017, getting TF31002: Unable to connect to this Team Foundation Server error
I wonder if anyone could assist me with that. I am unable to connect to TFS from Visual Studio 2017, I get the error specified below
TF31002: Unable to connect to this Team Foundation Server:
http://...
3
votes
1
answer
231
views
How to edit manifest in VS2017 C++ project?
In our application, we need to be able to determine Windows OS version. In the past, we used the GetVersionEx() function but it has been deprecated and it appears to stop on Win 8 (major=6, minor 2).
...
0
votes
0
answers
137
views
Sitecore with Gulp Build task issues
While running gulp task, getting the below error
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v16.0\Web\Deploy\Microsoft.Web.Publishing.Deploy....
0
votes
1
answer
128
views
EVP_PKEY_CTX_new_id(EVP_PKEY_SCRYPT, e) returns null in OpenSSL 3.0 with FIPS enabled
To run scrypt encryption using OpenSSL 3.0 I'm using the code below. It runs fine with OpenSSL 3.0 with no FIPS. But the same code fails when FIPS is enabled. The reason being EVP_PKEY_CTX_new_id(...