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

VS Android Emulator cannot boot

$
0
0

Hi everyone. I'm trying to get Android Application using VS 2015 and when I try to run it, I can see VS Android Emulator launching but then it gets stuck (Starting OS) and never finishes booting.

I've run Hyper-V Administration tool and took a look to the emulator console, this is the last message I get:

"init: Failed to read from /dev/hw_random: No such device"

Any clue?


“No devices available” in Visual Studio 2015

$
0
0

I trying to deploy Native activity application(Android, C++) on the Visual Studio 2015 embedded emulator. But have a problem: start debugging button has label "no devices available":

But my AVD manager has some devices.
Deploy output:

Deploy started: Project: Android3.Packaging, Configuration: Debug x86 ------

Error installing the package. The package 'C:\Users\User\Documents\Visual Studio 2015\Projects\Project\Android3\x86\Debug\Android3.apk' does not exist on disk.

Invalid package information.

I already had the same problem and tried to reinstall Visual Studio several times but it's gives nothing. Besides this in the last time I had to clean the registry manually due to Visual Studio 2015 installer said that I already had android-sdk on the my computer but this was not so.

How can I fix it? How can I completely uninstall Visual Studio and install it right?

Visual Studio won't install

$
0
0

Whenever I try to launch the Visual Studio 2015 installer, I immediately get a "The system cannot find the file specified" error message.

I've tried redownloading the installer, but for the life of me I can't seem to get it to install. Would anybody know how to fix this?

Application with an interface just as "gadget-like-looking" button in C#

$
0
0

I want to build a program with an user interface just as a button/icon to click on - when the mouse is hoovering over then "button" a "handle" for moving appear (because there is no title bar to grib !) just for "gadgets" the watch f.ex.

I have the functionality for what should happen when the button is clicked an if works fine - I just can't figure out how this interfacing can be implemented.

Some C# code, ideas or links to projects like it would be nice - thx !

Designer Load Error: Cannot register package

$
0
0

I have had the following error for a while and have not found a workable solution.  I even tried deleting the app package but still get the error.

Your help would be greatly appreciated.  I really would like to publish this application.

Using Visual Studio 2015 - Windows 8.1 Universal App

Error : DEP0700 : Registration of the app failed. error 0x80072EE4: The Visual Elements extension failed while processing the Notification element. (0x80073cf6)MyApp.Windows

Visual Studio keeps restarting

$
0
0

I installed visual studio. As soon as the ide loads up and i move around in it, it crashes and restarts. Its a never ending process.

what do i do to fix ther problem.

Targeting .NET 4.5 with VS2010

$
0
0

Hi Everyone,

I realize that Visual Studio 2010 is not supposed to be able to build
apps targeting .NET 4.5, but I've come across something on Stack Overflow
that seems to indicate something to the contrary:

=============================================================================

http://stackoverflow.com/questions/12390175/targeting-net-framework-4-5-via-visual-studio-2010

I have been struggling with VS2010/DNFW 4.5 integration and have finally got this working.
 Starting in VS 2008, a cache of assemblies was introduced that is used by Visual Studio
 called the "Referenced Assemblies". This file cache for VS 2010 is located at
 \Reference Assemblies\Microsoft\Framework.NetFramework\v4.0. Visual Studio loads framework
 assemblies from this location instead of from the framework installation directory. When
 Microsoft says that VS 2010 does not support DNFW 4.5 what they mean is that this directory
 does not get updated when DNFW 4.5 is installed. Once you have replace the files in this
 location with the updated DNFW 4.5 files, you will find that VS 2010 will happily function
 with DNFW 4.5.

=============================================================================

Has anyone ever tried this?

I cannot find the folder with the "Referenced Assemblies" on my box.

Does anyone know where it might be located?

Any assistance with this would be greatly appreciated.
 

Wally

VS 2015 high CPU usage

$
0
0

I have VS 2015 running at very high CPU usage all the time. What do I do with this problem?

Thanks


Multiple summary elements in XML documentation

$
0
0

I am using Visual Studio 2010 SP1. I would like to use XML Documentation for my user controls to see them in Intellisense.

If I add a WPF User Control "MyUserControl" to my WPF project and add a <summary> element like so:

/// <summary>
/// User Control to visualize domain data XY...
/// </summary>
public partial class MyUserControl : UserControl
{

Then Intellisense shows only the summary "MyUserControl".

In the MyUserControl.g.cs file I can see that the class has XML documentation as well:

/// <summary>
/// MyUserControl
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public partial class MyUserControl : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {

In the generated XML documentation file I see both <summary> elements present.

How can I suppress the automatically generated <summary>?

Missing "Add as Link" option...

$
0
0
I realize that for the past almost 2 decades now that every time Microsoft tries to improve something they just wind up making it worse - mostly because they import 3rd world programmers who work for peanuts, have decent technical skills yet no abstract thinking skills whatsoever and all while prentending America has no qualified programmers, but could some one PLEASE tell me why in heavens name did Microsoft see fit to remove the "Add as Link" option from the 'Add Existing Item' file dialog? Really? Why not just remove the ability to write code at all? Microsoft keeps shooting itself in the foot with these realy stupid decisions lately and the public is pretty much aware that MS Office is the only thing keeping Microsoft afloat right now because the Windows phone and Surface tablet certainly didn't turn out to be winners. So why, oh why, does Microsft keep removing things that customers love and rely on while trying to push useless new options down our throats? Microsoft is not Apple.  It never will be Apple.  Stop trying to innovate new stuff because you suck at it.  Microsoft is, always has been, and always will be a company for hackers and hobbyists.  Stick with that.  Put my 'Add as Link' option back in!.!.!

Problem with Running Excel Add-In

$
0
0

I have tried to run an Excel Add-in solution from the Office 365 web site (Task Pane Add-in Sample - Excel). This program ran fine on VS2015 before Update 1. Now, the sdk for this is apparently missing for the updated version, as the solution explorer shows that it is unavailable. There is a selection in the solution explorer to "Install Missing Features". When this is selected, the system attempts to run setup, but does not install the feature. Instead, an error message pops up telling you that you must close VS2015 to continue, but there is no "continue" button, so you can't close it and continue. It's a "Catch 22".

After installing the update, the are no Office templates or any mention of Office development in the New Project start-up screen.

Steve


Steve Hunt

Platform toolsets confusion

$
0
0

Hi, 

I'm quite confused about the Toolset/WindowsSDK/WindowsKit/Visual Studio version numbering and naming conventions and keep running into related problems.

Currently, I've got projects using toolset v120 (Visual Studio 2013), which is apparently part of WindowsSDK 8.1A. However, on my newly setup machine, I've only got Visual Studio 2015, so I'd like to install toolset v120 in order to compile the old projects with this version (this is mandatory, I'm not looking for a way to migrate to the new tollset). Now I only found downloads for version 8.1 [1], but not 8.1A. 8.1 seems to be v110, but I really need v120, which seems to be 8.1A, if I correctly interpreted what wikipedia tells me [2] ("v8.1A - Included in Visual Studio 2013"). So I tried 8.1, but the property pages for my VS C++ project still tell me (Configuration Properties -> General -> Platform Toolset) that the required toolset is not found ("Visual Studio 2013 (v120) (not installed)". Strangely, v110 isn't showing up either. Now I'm perplexed and hope somebody can help me out. 

Where can I find the download I need?

Thanks a ton.

[1] https://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx?f=255&MSPPError=-2147217396

[2] https://en.wikipedia.org/wiki/Microsoft_Windows_SDK 

VS2015 Express:problem with the designer?

$
0
0

I'm trying to make a Windows form application in Visual Studio 2015 Express (Visual Basic) with a datagridview not bounded to data. I add some columns and make one off them not visible. Save the solution, OK.

With the designer I change the column property to visible. When I try to save the solution the following error appears:

“An error was encountered during code generation. The changes you have made in the designer have not been committed to the source code. It is recommended that you close and re-open the source file. The error message follows:
Value does not fall within the expected range.”

Using VS2013 I found after some research that the problema was that in the source code the property remains as "Not visible" and I only can save the solution editing manually the code and changing the value to "True" or removing the line.

But if I define the column as "Visible" and then change is value to "Not visible" with the designer, the change appears in the source file. It looks like only the value "Visible" is not save.

I already tried to reapir the instalation of VS2015 but everything remains the same, and this problema does not exist in VS2013.

Is this a bug of VS2015 or something else is wrong?

My computer: ACER E5-571.

OS: Windows 10 Home x64 vs. 1511 - 10586.63 (November update)

Best regards, hoping for a solution.

Error while trying to run Project. The object invoked has disconnected from it's clients.

$
0
0

I'm in the process of converting all my old code from VS2005 Basic and Access Database to VS2015 and SQL Server Projects.

Everything ok until today.

During my latest conversion exercise whilst running debugger to check latest code amendments I got the error above.

A reload of Visual Studio clears the problem, and debugging works fine provided that the delays in invoking debugger are short, if I wait for any length of time the error re-occurs.

I've checked other projects that I have completed and the same error now occurs in them (it didn't before).

I'm assuming this is some sort of connection timeout issue with SQL Server but don't know where to start looking.

However am concerned that this has only just started to happen and that a search for the error came up with a number of threads raised over the last couple of years that Microsoft have ignored on the basis that the error was unrepeatable.

I'm running latest version of Windows 10 (1511) and VS 2015 (14.0.23107)

thanks for advice

Ctrl+PgUp / PgDn do not respond in VS2015-VB.Net

$
0
0

I purchased VS 2015, used in conjunction with VB.Net. Ctrl PgUp / PgDn (Previous Method / Next Method) do not respond to keyboard input. Apparently this is a know bug.

When will it be fixed ?

Ctrl PgUp / PgDn are one of the most useful keyboard navigation keystrokes and I have remained with VS2010 because they are missing in VS2015.

It makes little sense paying that amount of money to be stuck with using the mouse to move around when simple keyboard combinations do it directly.


autoClosingBrackets Not Working

$
0
0

Hi all,

VSCode doesn't automatically close HTML tags.

My Workspace config file says:

"editor.autoClosingBrackets": true,

but it still doesn't work.

For example, when you type in "<script" the IntelliSense suggestions pops up and you press enter on "script" it doesn't close the tag like this:
Code:
<script>

</script>

but it stays like this:
<script>

Any idea how to fix this?

also, i noticed that if i manually enter <html> and </html> the closing html tag gets correctly indent-aligned with the opening tag automatically. But if i do the same with <script> and </script>, the closing tag does NOT get correctly auto-aligned. How to fix?

thx


VS2015 - Disable Fuzzy IntelliSense

$
0
0

There is an option to disable fuzzy ("spellcheck-like") IntelliSense matching for member lists but not for everything else. It is ridiculous that I type "d3dev" and the first suggestion is D3D_CBF_FORCE_DWORD instead of ID3D11Device. If I try "id3dev" I get ID3DInclude for god knows what reason. C++ IntelliSense is just flat-out unusable for me and, as much as I hate to say it, MonoDevelop's autocompletion is leagues beyond what Microsoft has to offer.

In MonoDevelop, I can just type the first letter of each word (urd -> UnityRenderDevice, for example) and it pops right up. In VS, I type urd and it gives me UriBuilder_USE_ORIGINAL_FLAGS for pity's sake.

Please help me fix this thing. VS is my only option for C++ on Windows and I am so actively not wanting to even open the program anymore due to frustration.

Conflict resolution window don't appear in Visual Studio 2015 using TFS API with C#

$
0
0

Somebody know how to solve my question?

I'm using a console application (I tried to use windows app) that interacts with TFS API using C#. But when I tried to merge two solutions, some files has conflicts and no conflict window was showed.

Before, I was using Visual Studio 2013 and all worked fine, but now, we changed to VS 2015, and DLLs was not in GAC, but I changed to Nuget.

I tried Local workspace and Server workspace.

The code below, when i debugged, returns "Evaluation Timeout" and no window was showed.

workspace.MergeContent(conflict, true)


Microsoft Visual Studio Enterprise 2015 Version 14.0.24720.00 Update 1 Microsoft .NET Framework Version 4.6.01038

Installed Version: Enterprise


TFS: TFS 2013


Code:

public bool Merge(string branchOrigem,string branchDestino){TfsTeamProjectCollection tfs =newTfsTeamProjectCollection(newUri("xxxxx"));
    tfs.EnsureAuthenticated();VersionControlServer vcs = tfs.GetService<VersionControlServer>();Workspace workspace = vcs.GetWorkspace("xxxx","xxxx");GetStatus status = workspace.Merge(branchOrigem,
                       branchDestino,null,null,LockLevel.None,RecursionType.Full,MergeOptions.None);Conflict[] conflicts = workspace.QueryConflicts(newstring[]{ branchDestino },true);foreach(Conflict conflict in conflicts){if(workspace.MergeContent(conflict,true)){
            conflict.Resolution=Resolution.AcceptMerge;
            workspace.ResolveConflict(conflict);}}returntrue;}

complex math equations

$
0
0

Hey guys,

i need help about solving a math equation. i have a formula like this;

TextBox20.Text = Val(v / (12503 * kd * (p1 + patm) * Pow((k / (m * t * z * (k - 1))) * (cik1 - cik2), 0.5)))

and it doesn't work at all. at the result box i see " NaN".All values are connected to a textbox. and my integers are like this: dim v, dim kd ... etc. i saw many codes. they say i should use strings but, i don't know how to do. waiting your help.

Build C++ output with Configuration Properties and with Librarian/Linker

$
0
0

Hi,

I have a dynamic library C++ project and I see that I can have different outcomes to get the output target from:

1.Properties > Configuration Properties > Output Directory + Target Name + Target Extension

and

2.Properties > Configuration Properties > Linker > Output File

From project's process flow I see that in the output directory pointed by (1) I get myprojectname.dll.intermediate.manifest and in the full path one I have a different one (as I define: c:\builddir\coconut.dll).

Therefore, what is the (1) good for to be defined by the developer? At first sight (1) and (2) should be the same.

Thanks

Viewing all 21115 articles
Browse latest View live


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