Quantcast
Channel: Visual Studio General Questions forum
Viewing all 21115 articles
Browse latest View live

No Visual Studio 2013 Update 2 Download for msdia120.dll (Ref. KB2927432)

$
0
0

We have a system with msdia120.dll (Visual Studio 2013 Debug Interface Access Library, path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Packages\Debugger\msdia120.dll) installed but was pointed out by auditor that the file (version 12.0.21005.1) has security vulnerability according to KB2927432.

In the KB2927432 (https://support.microsoft.com/en-hk/help/2927432/description-of-visual-studio-2013-update-2)  we are suggested to upgrade to Microsoft Visual Studio 2013 Update 2, so that the msdia120.dll can be updated to version 12.0.30501.0.

However I could not download this update as it is already removed from Microsoft website. (from link "Download the latest Visual Studio 2013 update package now").

Is there anywhere I can download the update, or the file in particular? If not, any advice on this please? Thanks!



Size of form in designer not equal to size when run

$
0
0

Hi, I've been using Visual Studio Community 2015 for a while with no problem. However, after switching to a new computer with higher resolution (3840x2160) a strange problem has occurred with my Visual C# Windows Forms Applications.

After migrating a solution to my new machine, everything built and ran fine. But when I resized a form in the designer, suddenly the size did not match after running. The sizes of the buttons, text boxes, and other components were fine, but the size of the whole window was not. Changing resolution to 1280x720 had no effect. The numbers in Form.Designer.cs do update appropriately.

I reproduced this with a new project, so I'm pretty sure none of the code from my old solution is involved here. The video is here: https://www.youtube.com/watch?v=2DIXGfymrqw&feature=youtu.be (I can't submit a link until my account is verified, but it doesn't tell me how to verify it, hmm...) Has anyone encountered this before? What can I do to fix it? Thanks.

Can I use VS2019 Community Edition with Oracle Database?

$
0
0

Hi everyone,

Can I use VS2019 Community Edition with Oracle Database? 

If yes, which version of ODAC should I install.

My system is windows 8.1, x64 and I have Oracle database 11g xe r2 installed.

Thanks


Laborare est Orare...

Keyboard shortcut name for Find's "Match whole word"

$
0
0

I recently assigned a different hotkey/keyboard shortcut to ALT+W (which was the Find "Match whole word's" default keyboard shortcut), and now want to assign a different keyboard shortcut for "Match whole word." I cannot find the command string associated with it.

All I see for Edit.BriefFind<...> is Prev, Repeat, Replace, ToggleCaseSensitivity, and RegExpr.

Access2016 Report working when display on screen, but not on printpreview

$
0
0

Hi all,

I have got a report that generates perfectly on the screen.  However, if I try generating a pdf, it generates an empty pdf with just the report format and nothing else. When I try to generate a preview, it gives me a run time error of 2101 on setting a filter!! Just stumped. 

The report contains a few sub reports, and I am using a variable which the report reads from a temporary parameter table.

I am teaching myself msaccess, so please be gentle, and thank you for any help. 

Regards,

gec00


GEC

Cannot build console application with Microsoft Visual Studio 2019

$
0
0

I just installed the community version of VS 2019. I selected to build a console application that it created for me ("hello world" program). The file created is called ConsoleApplication1.cpp. I went to the build menu, selected build, and get the following error:

1>------ Build started: Project: ConsoleApplication1, Configuration: Debug Win32 ------

1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(441,5): warning MSB8003: The WindowsSDKDir property is not defined. Some build tools may not be found.

1>ConsoleApplication1.cpp

1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\yvals.h(12,10): fatal error C1083: Cannot open include file: 'crtdbg.h': No such file or directory

1>Done building project "ConsoleApplication1.vcxproj" -- FAILED.

I tried to follow directions I saw on stackexchange. When I select "Project -> Properties" the Windows SDK field is blank. A value I typed in from another StackExchange message creates an error that that version of the SDK cannot be found. So I made the SDK field blank again. I also tried using "10.0", but that did nothing.

Perhaps I did not install all the needed components. I recently checked off: "Windows Universal CRT SDK" (as per something I saw on stackexchange), but the build still fails. The warning is interesting. I looked that up also but have not found a solution that works. My "Platform Toolset" is Visual Studio 2019 (v142).

What might still be missing to build a console application? Thank you. I am working on Windows 7.

Download a previous release for MSVS 2019

$
0
0

16.4 seems to have broken my build environment, so I wanted to install 16.3.9 again, but I can't for the life of me find out how to download an older version.

Does anyone know how?

Thanks,

Jason

VS treats Release as Debug

$
0
0

If I want to have F9 I have to use Release.When I compile in Release it leaves the result in Debug. I have not modified the configuration.How can I reset the release path?https://youtu.be/K-6qH2GlnLQ


ResolveKeySource

$
0
0

I'm getting a build error:

"The target "ResolveKeySource" does not exist in this project."

It's a vb.net Windows Forms App.  VS 2019

Sure enough, ResolveKeySource doesn't exist - no mention I can find in the source.  

So it appears that I need it, for some reason.

I'd like to know just WTH this means and what do I have to do to to get this goofy thing to build.

I've search around and found no resources that will help.

Any suggestions, pointers, pr derisive peals of laughter will be welcome



Not able to sign-in to Visual studio 2019 community edition

$
0
0

As Visual studio community version 2019 is free, So I installed it and at the time of installation I didn't sign-in. Now it is showing your 30 day trial period is over. Now I am trying to sign-in with microsoft account but it is throwing error page which displays:

'we could not refresh the credentials for the account. The browser based authentication dialog failed to complete. Reason: The protocol is not known and no pluggable protocols have been entered that match.'

Can someone please help me on this.

 

Cannot navigate to the symbol under the caret in JS file in VS2017

$
0
0

Hello everyone, I am just wondering if someone has experienced this problem in VS 2017. I have a JS file with angularjs functions. When I tried to navigate to a definition of a function by right clicking and go to definition, I could not do it. It pop up with a message:

"Cannot navigate to the symbol under the caret"

If I used VS2012, it works fine. I created a test JS file with pure javascript and navigate to definition, it works fine. The code behind in C# also works fine. Only the js file written in angularjs that's not working. Not sure if I need to install an extension or something to get this to work. 

Any suggestion of how I could solve this? I did a lot of search, but none of the solution worked for me. 

Thanks. 

Visual Studio Workplace Question - Can you buy VS Professional licenses to be legally OK, but use Community instead for the actual development?

$
0
0

I would like some information regarding the following scenario.

A company with 10 software developers, which is not an enterprise, can, according to the Terms of Use, have up to 5 of its developers use Visual Studio Community, while the rest 5 developers must use a licensed Visual Studio version (e.g. Visual Studio Professional).

  • The question is, (mostly for reasons of practicality), would it be OK if the company does purchase the required 5 Visual Studio Professional licenses, but the 5 developers actually use Visual Studio Community instead?

I would expect it to be OK, since the legal requirements would be covered (and, besides, using Community instead of Professional would, technically, be less efficient for the developers anyway) by thepurchase of the 5 licensed Professional versions, rather than theiractual use. However, I would definitely like to have a more authoritative opinion/confirmation on this.

VSTS Release Notes from PBI / Bug

$
0
0

I have created a True / False switch & a place for my team to create their own Release Notes for their PBIs & Bugs. Following this MS video (https://www.youtube.com/watch?v=jLXatKihU7g).No problem designing a query to grab the information. What I don't know is how to convert that query into a document or webpage for my users as described in the video (Look at ~minute 13 to see the Release Notes). So the question is "How do you assemble the query content into a markdown file?"

Any help would be MUCH appreciated!

WPF: Vector images don't persist in xaml designer

$
0
0

I've started a WPF project and successfully added a couple of vector images. I'll add those images as static resources in Xaml and they work, however, if I navigate away or start typing in a way that makes IntelliSense have to refresh (like invalid markup), the images will no longer show.

Now if I build they are there, and I can get them to come back if I go into properties -> Common -> Source -> Green Square -> LocalResources and select it again, but it's really hard to see how the layout looks when you have to do a 5-step refresh on every image all the time.

Is there a setting for this I'm missing or is this a bug?

Also, I add every image as a static resource but VS will change them to dynamic resources sometimes. Is that normal?

How to add proper version of DLL to the project?

$
0
0

Hello folks,

Have one more strange question for you.

I use a log4net logger tool in my projects.
Packages not used, do update manually.
Tool updated and latest version is 2.0.8.0. Used build with old signing key.
Reference to the DLL in the projects was replaced by removing and adding reference. 

Studio 2015 Community did this without any problem and properties window show that proper version added.
But application begin fail on ClickOnce installation.

I review the prroject and find following:

<Reference Include="log4net, Version=1.2.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL"><SpecificVersion>False</SpecificVersion><HintPath>..\log4net\v.2.0.8\log4net.dll</HintPath></Reference>

I review other projects and find references for 1.2.10.0 version of log4net. 
I was not able to replace this reference using Studio 2015 - each time I remove the DLL and add it again a wrong version are scribed in the project file.

Version 1.2.10.0 and version 1.2.12.0 of log4net.dll are in the GAC, but as far as I known this should not affect scripting a reference in the project.

Can anybody tell me how to get proper reference script in the project? 

P.S. Studio 2019 Community also installed on the system.


Sincerely, Highly skilled coding monkey.


Stuck at missing NuGet package from Visual Studio 2017

$
0
0

Hi all!

Trying to build a piece of sample code within VS 2017 and I got the error message of:  

ErrorThis project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets.

BUT when I look into the folder of:

..\packages\Microsoft.Bcl.Build.1.0.21\build

I do see the file: Microsoft.Bcl.Build.targets.

Both package restore options within package manager settings are ticked/enabled.

Thanks in advance for any pointer/suggestion.

Visual Studio not showing json file properly

$
0
0
Hello all,

I download a json file from Azure (NSG Flow log)
Open it in VS 2019
Just shows the whole file on one line.

How do I get it to show the json file properly?

Thank you

Visual Studio 2013 Crashes After Opening XAML

$
0
0

I am running 2013 update 5 on Windows 10 Build 1709. I inherited a WIN81 Store App project that was fine until a month ago. Since then it crashes any time I open a XAML file, either just XAML or in the Designer. The XAML will display, but then VS crashes about 5-10 seconds later. The Designer never manages to load before crashing. And it doesn't matter which XAML file I pick in the project, they all do it. I have no idea what changed on my system a month ago. Corporate IT does forced/controlled updates, but I don't recall doing anything to it.

What is weird is that my other project (not a Store App) works just fine. 

I can edit and build my C# files fine. I do get lots of crashes trying to Find All References for a property, but no issues with methods. I suspect that's because it's searching XAML files.

I looked in the Windows Event Viewer and got the following stack trace (see below). All the crashes are the same.

I'm at my wit's end trying to get this project back to normal. I've tried to repair Visual Studio, and they tried an uninstall/reinstall with no joy. I've burned endless hours google'ing and trying other stuff to no avail. Any/all help would be appreciated.

EDIT: I just installed a fresh copy of VS2013 w/ Update 5 on my personal desktop PC (WIN10, Build 1903) and then copied my project files from my work laptop to the my personal desktop. It displays XAML files and the Designer fine. Easy peasy. Works perfectly. So what is hosed up in my environment on my work laptop and how can I fix it as an uninstall/reinstall didn't help. 

Garry

Application: devenv.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.AccessViolationException

   at Microsoft.Expression.Utility.OSHelper+NativeMethods.GetTokenInformation(IntPtr, TOKEN_INFORMATION_CLASS, IntPtr, UInt32, UInt32 ByRef)

   at Microsoft.Expression.Utility.OSHelper.GetTokenInformation(TOKEN_INFORMATION_CLASS)

   at Microsoft.Expression.Utility.OSHelper.CalculateIsRunningElevated()

   at System.Lazy`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].CreateValue()

   at System.Lazy`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].LazyInitValue()

   at System.Lazy`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Value()

   at Microsoft.Expression.HostUtility.AppPackage.WrtUtility.ActivateApplication(System.String, System.String, System.Object)

   at Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.ActivateApplicationInternal(System.String, System.String, System.Object)

   at Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(System.String, System.String, System.Uri, System.Collections.IDictionary, Int32 ByRef, System.Object ByRef)

   at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory+ProcessIsolationDomain..ctor(Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory, Microsoft.Expression.DesignHost.Isolation.IIsolationBoundary, System.AppDomainSetup,




Send data from Arduino to Visual Studio

$
0
0

Hi! 

I would like to know how to display readings from arduino to visual studio. 

For example I have a current sensor module connected to arduino. I can use the Serial.print(); to display the readings of the sensor in arduino but I would like for that to be displayed in a text box or label in visual studio.


Visual Studio 2019 Pro license (non-subscription based)

$
0
0

This may be a silly question, or maybe someone had already answered it, but here goes.

Can a Visual Studio 2019 Pro license (non-subscription based) be used on either my desktop or my laptop, or do I have to buy one for each machine? I ask because I thought the license was user-based, not machine based. More over, I have licenses for VS2017 and VS2013, and they allow me  to use VS2013/2017 under a single license on either machine provided I am logged in as "me".

Viewing all 21115 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>