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

Cannot access a disposed object

$
0
0

I have a C++14 x64 application built with visual studio enterprise 2017 (v15.9.4)

I am trying to add an icon for my exe but when I try to add in a new resource file (Resources.rc) I get an exception from visual studio:

Cannot access a disposed object.
Object name:
`Microsoft.VisualStudio.Project.VisualC.VCProjectiEngine.VCProjectFileShim`.

and

The object has already been disposed. (Exception from HRESULT 0x80131622

I have created other projects and successfully added Resources.rc but for this particular project I am getting the above exceptions. Is there a way to fix the project file without having to recreate the project from scratch?



Retrieve .aspx.vb files after publishing in Visual Studio

$
0
0
Is there is a way to get .aspx.vb files after executing publish operation in Visual studio (only .aspx files are available after publishing), since the backup of .aspx.vb files were deleted due to a system issue.

VS 2019 - Visual Studio Emulator for Android no longer selectable

$
0
0

I always had Visual Studio Emulator for Android as an emulator option in VS 2017, but my only option now is the prepackaged Android SDK emulator, which is still sluggish after all these years.

Some info:

- I reinstalled the VS emulator along with VS 2019 on a fresh windows installation

- The emulator runs fine, I just can't find a way to select it in the drop down for debug/release in VS

- I cannot seem to find any trace of the VS Emulator in VS 2019's menus like in VS 2017

- I obviously have Hyper-V enabled

Filter mode for Goto Files

$
0
0

Hi there somewhere a switch to configure the filtering mode when searching source code files?

I would really appreciate if the function would not try to find all characters but instead would use a substring search - separated by blanks (that is the Visual assist used to work).

Example

A search for a .proto file 

"f str .proto"

currently brings strange results like

resulto.cpp
c:\projects\sample\resulto.cpp

as all letters can be found somewhere - even the path.

I Would expect, that all non-separated strings ("str" and ".proto") yield results, if they can be found as concatenated string like

my_string.proto

That would reduce the results significantly and give a much better matching.

Is the matching mode configurable?

Thanks


Online compiler collection using various Visual C++ toolkit versions?

$
0
0

Dear Visual Studio experts,

are you aware of an online compiling tool where I could test some #ifdef magic aimed at supporting various MSVC toolkits? (ideally from v90 to v14x included...) ? I'd like to avoid the hassle of setting up a VM, installing tools... I just need to test a simple TU with some static tests. Compiling is enough, I do not need to link or execute (barring code generation bugs).

I know about _MSC_VER_MSC_FULL_VER__cplusplus , _MSVC_LANG and /Zc, but I'd like to test my feature flag detection before pushing my changes into the wild (it's indeed quite scary looking, when taking into account GCC and clang support, and I might want to add support for other compilers in the near future)

I already know about Compiler Explorer but it only goes as far as v140, and I am precisely concerned by the v90/v100 era.

Thanks in advance!

How to set TAB Index automatically as per order of precedence

$
0
0
I am trying to edit an existing project and sometime introducing new controls in  between, Because of that tab index is getting messed up. So I need to reorder the tab index. Is there any way to put tab index for aspx controls as per their order of precedence on aspx page. Any help will be appreciated.
Thank You in advance.

One Form Show always as edited when open / Same form going white some time

$
0
0

Hi,

In my project there is one form shows as edited when i open form and always asking for save the form. 

Same form shows as white screen in some time, then i need to close the form and reopen again it's shows all controllers same as before. but, show me (*) as edited so i need to save it again. 

As i remember this issue was begin when previous VS Update. 

Please Help me for fix this issue. 

Thank you!!!


RohanD

Use Android Studio's emulator for running a Xamarin Form project?

$
0
0

It seems that Visual Studio comes with its own Android emulator that tries to use Hyper-V. But I already have Android Studio installed which has an Android emulator, for which I have created a few AVD's that use Google's AMD hypervisor driver (sort of like Intel's HAXM, but for AMD CPU's) which do not use Hyper-V.

Is it possible to use those AVD's for running a Xamarin Form project with Visual Studio? It seems that those AVD's show up in the emulator list, but Visual Studio says Hyper-V is not installed.


Installation of Visual Studio web insstaller fails. Continually restarts.

$
0
0
Installation of Visual Studio web insstaller fails. Continually restarts.

appropriate use of Visual Studio Community?

$
0
0
Hi,

I am a medical physics student. As part of my MS program I am doing some work under the supervision a medical physicist at a nearby hospital. I have been asked to develop a database application that will be used by the hospital to validate treatment plans for radiation therapy. I am currently an "unpaid intern" at the hospital although I have been informed that I may be offered a QA job unrelated to my current research project (medical physics students wear many hats).

Is it okay to use Visual Studio Community on my personal laptop, as long as Visual Studio Professional is used on all of the hospital computers? For rhetorical purposes let's assume that the hospital IT department is byzantine and terrifying.

Thanks for your help and patience ^,~

The "ResolveTargetingPackAssets" task failed unexpectedly

$
0
0

Visual Studio 2019 Version 16.4.6
Have AspNetCoreVersion: 3.1.1

I get the following error for all packages:

ErrorMSB4018 The "ResolveTargetingPackAssets" task failed unexpectedly.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\data\FrameworkList.xml'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.FinishInitUriString()
   at System.Xml.XmlTextReaderImpl..ctor(String uriStr, XmlReaderSettings settings, XmlParserContext context, XmlResolver uriResolver)
   at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
   at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
   at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
   at Microsoft.NET.Build.Tasks.ResolveTargetingPackAssets.AddReferencesFromFrameworkList(String frameworkListPath, String targetingPackDllFolder, ITaskItem targetingPack, List`1 referenceItems)
   at Microsoft.NET.Build.Tasks.ResolveTargetingPackAssets.ExecuteCore()
   at Microsoft.NET.Build.Tasks.TaskBase.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()Foundation.BlazorCssVendorsC:\Program Files\dotnet\sdk\3.1.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets283

It seems that C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0 is empty.

Why is that?


Gorhal


How to use Microsoft Edge chromium as HTML editor

$
0
0

I am writing a MFC app, in which one of the controls is HTML editor...Earlier i was using IE for editing the HTML on that control.

With Microsoft Edge chromium, i want to know how can i use it for inline HTML editing.What interfaces exist for editing HTML content.

The controls for editing(just like the the ones visible while creating this question), in my case are actual MFC controls and based on those controls and changes in edit window,  I want to have this Microsoft Edge chromium based HTML editor(existing as a control in my MFC app) to enable edits to HTML content.

First-chance exception on closing

$
0
0

The symptom is:

First-chance exception at 0x7703f9f2 (ntdll.dll) in ....exe: 0xC0000008: An invalid handle was specified.",

occurring after the Form has closed. The top of the call stack is:

ntdll.dll!_CloseHandle@4()

The project is dual native C++ and C#. I have no idea of how to determine where this bug originates. Is there a way to find out who owns the handle? Anyone have a clue?

Frode

"no resources found" when trying to publish to existing app service plan using Visual Studio 2019 (16.4.6)

$
0
0

I am trying to deploy to my App Service Plan using Visual Studio (2019 16.4.6)  via right-click -> Publish

I select "choose existing" - but get "no resources found" - there's definitely an existing app service plan however... it's just not showing?

Have signed out of VS and back in, restarted, all the usual 'quick fixes'

VS Code Sidebar with CSS properties

$
0
0

Hello!

Is there any way or extension that allow me to have a side bar with all CSS properties? I mean, something like this (the CSS inspector panel):

Thanks in advance.


Unable to create a new Visual C# project in Visual Studio 2017

$
0
0

Hello,

I have visual studio installed on my system for both C# and C++ and I am able to open both c# and C++ solution files and run them on my visual studio.However I do not have have option to create any C# projects I can edit in the already created project but I cannot create a new one. Also at the same I have option to create a C++ project and also edit them. 

Could some one tell my why it is so or probably the solution to resolve this. ? This will help me resolve this issue.

Thanks in Advance for Your Help,

Shravya


Wizard plugin for visual studio 2019

$
0
0

I have wizard plugin developed in visual studio 2017. i install the wizard plugin (.iso and .vsz) at C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/Common7/IDE/VC/VCProjects/ and after that it comes when i create VC++ project.

I just need to know the VCProject path for visual studio 2019 where i can install this wizard and it comes whenever i create the project


How to update Nuget on VS 2012?

$
0
0

Hello all. I'm trying to use the SIMD functionality of .NET 4.6.1 in Visual Studio 2012 (express desktop) and I'm having some trouble. I'm able to target .NET 4.6.1 in the Project Properties page, but when I right-click the project in the Solution Explorer, select "Manage Nuget packages...", search and select the "System.Numerics.vectors" package and attempt to install I get an error claiming:

"The System.Numerics.Vectors 4.1.0 package requires NuGet client version 3.0 or above, but the current NuGet version is 2.8.60318.677".

When I click the "Upgrade NuGet" button nothing seems to happen. Can someone please provide some guidance? Thank you in advance.

-L

Compilation issue with Visual studio 2019

$
0
0

i am trying to compile code developed in vs2013 now in VS2019 but facing below error in C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\include\xmemory line 71

SeverityCodeDescriptionProjectFileLineSuppression State
ErrorC2131 expression did not evaluate to a constantBatesNumberingC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\include\xmemory71

Could you please guide in solving the issue?

Work Item Queries

$
0
0

Hi all,

we're relying heavily on Work Items and of course created a lot of queries around it. What I would need, is a cascading query strategy and I can't get a grip on that. Figure the following:

  • Colleague A creates a query Q1 with criteriaC1 C2 and C3
  • What I would need to do now is sub-filter that very list for criteria C4
  • Today I'd create a copy of the list, add my criteria and save it as Q2
  • But now, if user A is changing his query, I never get that change as I have acopy
  • What I would need is ("Whatever is the current Q1 comes up with" plus myC4)

Is that somehow possible and I just don't see it?

Thanks in advance, Carsten

Viewing all 21115 articles
Browse latest View live