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

Visual Studio Is Suddenly Freezing And Unresponsive

$
0
0
About 2 days ago, my Visual Studio suddenly became slow and unresponsive when I click on certain controls. I have a checkbox with a button style, and when I click on it, the properties never show up - it's always just blank. Often it just stops responding and I have to go into the Task Manager to close it and restart. I have tried restarting many many times and restarted the computer at least twice. Other programs are fine. What can I do?

How to Extend HTML Intellisense in Visual Studio 2017?

$
0
0

Hi

We'd like to extend the intellisense completion list for certain HTML attributes. 

For example, for the "data-foo" attribute we'd like the following values "bar1 | bar2 | bar3".

How do I do this?

I've had a look at the schema files here:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Packages\Schemas\html

And tried updating the html_5.xsd and the common HTML5Types.xsd. Although I restarted Visual Studio after doing this, it doesn't seem to work.

Any help much appreciated.

Thanks!

Noel

Need Help With Program

$
0
0

I'm working on this project where I need to create some sort of RPG game and I have it where the user selects one of the three options either warrior, rogue or wizard and have the stats displayed in a list box. I need the stats to show up in the next form 

Any help is greatly appreciated 

This is the code I am trying to move to the next room in another list box. This is the characters stats and needs to move with them to the next room

If radWarrior.Checked = True Then

            lstStats.Items.Clear()
            lstStats.Items.Add("Name: " & strName)
            lstStats.Items.Add("Class: Warrior")
            lstStats.Items.Add("Health: 75")
            lstStats.Items.Add("Strength: 8")
            lstStats.Items.Add("Gold: 50")

        End If

If radRogue.Checked = True Then

            lstStats.Items.Clear()
            lstStats.Items.Add("Name: " & strName)
            lstStats.Items.Add("Class: Rogue")
            lstStats.Items.Add("Health: 50")
            lstStats.Items.Add("Strength: 5")
            lstStats.Items.Add("Gold: 75")

        End If

 If radWizard.Checked = True Then

            lstStats.Items.Clear()
            lstStats.Items.Add("Name: " & strName)
            lstStats.Items.Add("Class: Wizard")
            lstStats.Items.Add("Health: 65")
            lstStats.Items.Add("Strength: 7")
            lstStats.Items.Add("Gold: 25")

        End If


How to add textbox in the new TabControl?

$
0
0

Hello,

I Would like to make a button that will automatically add a new tab after opening the new tab textbox.

Thanks

Restore the required packages Not working in VS2015

$
0
0

Dear Team,

I Just started angular2 tutorial.

Reference link

1] https://angular.io/guide/visual-studio-2015

2] http://csharp-video-tutorials.blogspot.com/2017/05/setting-up-angular-2-in-visual-studio.html



While I doing setup number 4 restore package

I’m getting error “npm ERR! Error: Method Not Allowed”

For your reference please find attach completed  error log.

I try to update npm and other option but not getting any solution even I post this issue on stackoverflow , GitHub

But getting proper response.

1] https://stackoverflow.com/questions/53735592/while-restore-package-json-package-getting-error-for-method-not-allowed-in-vs201

2] https://github.com/vikasdsalve/Method-Not-Allowed/issues/1

Kindly do needful. i’m stuck from last 1 week  

Error Log

====Executing command 'npm install'====


npm WARN package.json angular-quickstart@1.0.0 No README data
npm http GET https://registry.npmjs.org/angular-in-memory-web-api
npm http GET https://registry.npmjs.org/angular/common
npm http GET https://registry.npmjs.org/angular/compiler
npm http GET https://registry.npmjs.org/systemjs
npm http GET https://registry.npmjs.org/angular/core
npm http GET https://registry.npmjs.org/angular/http
npm http GET https://registry.npmjs.org/core-js
npm http GET https://registry.npmjs.org/concurrently
npm http GET https://registry.npmjs.org/angular/platform-browser
npm http GET https://registry.npmjs.org/zone.js
npm http GET https://registry.npmjs.org/angular/platform-browser-dynamic
npm http GET https://registry.npmjs.org/angular/forms
npm http GET https://registry.npmjs.org/rxjs
npm http GET https://registry.npmjs.org/angular/router
npm http GET https://registry.npmjs.org/canonical-path
npm http GET https://registry.npmjs.org/typescript
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/jasmine-core
npm http GET https://registry.npmjs.org/tslint
npm http GET https://registry.npmjs.org/karma
npm http GET https://registry.npmjs.org/karma-chrome-launcher
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/karma-cli
npm http GET https://registry.npmjs.org/protractor
npm http GET https://registry.npmjs.org/karma-jasmine-html-reporter
npm http GET https://registry.npmjs.org/karma-jasmine
npm http GET https://registry.npmjs.org/lite-server
npm http GET https://registry.npmjs.org/types/node
npm http GET https://registry.npmjs.org/types/jasmine
npm http 304 https://registry.npmjs.org/systemjs
npm http 405 https://registry.npmjs.org/angular/compiler
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\npm\lib\cache.js:753:14)
npm ERR!     at C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\npm\lib\cache.js:773:12
npm ERR!     at saved (C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\npm-registry-client\lib\get.js:148:7)
npm ERR!     at C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\graceful-fs\polyfills.js:133:7
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\External\\\\node\\node" "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\External\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\VIKAS\documents\visual studio 2015\Projects\Angular2\Angular2
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.9
npm ERR! code E405
npm http 405 https://registry.npmjs.org/angular/http
npm http 304 https://registry.npmjs.org/concurrently
npm http 405 https://registry.npmjs.org/angular/platform-browser
npm http 304 https://registry.npmjs.org/core-js
npm http 304 https://registry.npmjs.org/zone.js
npm http 405 https://registry.npmjs.org/angular/platform-browser-dynamic
npm http 304 https://registry.npmjs.org/rxjs
npm http 405 https://registry.npmjs.org/angular/forms
npm http 304 https://registry.npmjs.org/canonical-path
npm http 304 https://registry.npmjs.org/typescript
npm http 405 https://registry.npmjs.org/angular/common
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/tslint
npm http 304 https://registry.npmjs.org/jasmine-core
npm http 304 https://registry.npmjs.org/karma
npm http 304 https://registry.npmjs.org/karma-chrome-launcher
npm http 304 https://registry.npmjs.org/karma-cli
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/protractor
npm http 304 https://registry.npmjs.org/karma-jasmine-html-reporter
npm http 304 https://registry.npmjs.org/karma-jasmine
npm http 304 https://registry.npmjs.org/lite-server
npm http 405 https://registry.npmjs.org/angular/router
npm http 304 https://registry.npmjs.org/angular-in-memory-web-api
npm http 405 https://registry.npmjs.org/types/jasmine
npm http 405 https://registry.npmjs.org/types/node
npm http 405 https://registry.npmjs.org/angular/core
npm

====npm command completed with exit code 1====


npm http GET https://registry.npmjs.org/lite-server

How to create a ipchanger

$
0
0

Hello,

I want to make a ipchanger but i don't know how start to do this

someone can help?

thanks

Visual Studio form size different in design mode compared to run mode

$
0
0

I am experiencing a problem with Visual Studio 2015, in which my visual basic forms program shows a different font and size in the design window compared to the runtime mode. 

Here is a picture of the form in designer mode:

Image

Here is the form in run mode (overlapping visual studio):

Image

Notice how the fonts change, and the form becomes larger.  Also, the individual elements are not bunched together during run mode.  Any help is appreciated.

Publishing from Visual Studio 2017

$
0
0

From what I can tell, when you Publish to Azure from Visual Studio, only files in the project get published. So if I exclude a folder or a file from my project - it will not get deployed. Am I correct? Its very important that I do not inadvertently overwrite files on the web server - so I am hoping to get some feedback to confirm (or disprove) what I think is happening.

Any advice would be appreciated. Thank you.



VS 2017 Solution Explorer and Properties panels covering complete service of the window

$
0
0
How to I get the Solution Explorer and Properties to the right of my window.  I click the incorrect thing and they are covering the complete window.  Is there a Reset button to get to the right side of the window?

Edcal

Remove Older Vusual Studio Folders

$
0
0

Some times I need to look at an include (.h) file. I only want the one that relates to the latest windows version.

I've convinced myself that I can delete:

C:\Program Files (x86)\Windows Kits\8.0

C:\Program Files (x86)\Windows Kits\8.1

Everything in: 

C:\Program Files (x86)\Windows Kits\10\Include\

     except 10.0.14393.0

1) Do you agree with that?

I'm less sure about the following:

C:\Program Files (x86)\Microsoft SDKs

2) Do you agree that these are replaced with the Window Kits files so they can be delete?

I also have a folder Microsoft Visual Studio 12.0

and

Microsoft Visual Studio 11.0

and

Microsoft Visual Studio

3) I assume these are replaced with Microsoft Visual Studio 14.0 which is the highest I have. Agree?

This 14.0 is confusing since I have Microsoft Visual Studio Enterprise 2015 (version 4.7.02046)

I'd really would like to get rid of unneeded files so I'd appreciate any helpful comments.

Visual Studio 2008 - Can I still get it as part of an MSDN subscription?

$
0
0

I have an a compact framework application that I need to modify, but clearly VS 2017 will not cut it. Does a full MSDN subscription still support the downloading of VS 2008, Dev Essentials only goes as low as VS 2010.

If not, is there any legitimate way of obtaining it?

Kind Regards 

Steven

VS 2017 Problem

$
0
0
Is their a forum for VS 2017 problem.  If so, please direct me to the site.  I am having problem with the initial sample.

I can not drag a button or textview to the designer.  I installed V 15.9.4.  Do I need fixes after the install?

I can't get a form on VB

$
0
0
I don't know how to get a form or code window in my VB 2017 community program. MY tool box is empty also. I am using windows 8.1. It says solution 1.

http://www.ronaldarjune.com

When check in in tfs file it not included on project on source control

$
0
0

Problem

When check in in tfs file it not included on project on source control ?

i worked on tfs and there are 10 person connected 

when i make check in to file from my computer it not show on another computer 

when another users make get latest version this file i do check in to it not show on source control

if they are doing show all it will display but it not included on our projects 

meaning it display but not included to project 

to include it must do include on project

so that my question why this happen and how to prevent it ?

steps done

1- i connect to tfs 

2- do right click and  check in to new file created on my computer to another developer see it(these files contain windows form .cs and resx and reswources) .

3-another developers connected to tfs need to see this file to resume work they do get right click latestversion 

4- file i do check in  not display to them they make show all files

5- after that file i do check in  display in other developers after do show all files

6- after display it show but not included on project 

7- id included on project 

but i will not go to every developer or computer and do that

so that i ask how to solve this problem if possible ?

actually i need when another developers or computer make get saltest version file display to them


Cannot find wrapper assembly for type library "EnvDTE100".

$
0
0

Hi All,

Many years ago, I developed a set of macro functions for Visual Studio (VS2005).
It utilized the EnvDTE object.

When Microsoft did away with macros, I was pi$$ed.

I managed to figure out how to get my macro functions into an Add-in.

When Microsoft did away with Add-ins, I was pi$$ed x 3.

I managed to figure out how to get my functions from the Add-in into a library,
then call into that library from a VSIX extension.

Recently, I tried to change a function within the library, then rebuild it.

It has failed to build. I do not get any errors, but I have warnings:

Warning
IDE0006	Error encountered while loading the project.
Some project features, such as full solution analysis for the failed project
and projects that depend on it, have been disabled.

Warning
Cannot find wrapper assembly for type library "EnvDTE100".
Verify that (1) the COM component is registered correctly
and (2) your target platform is the same as the bitness of the COM component.
For example, if the COM component is 32-bit, your target platform must not be 64-bit.

Warning
Cannot find wrapper assembly for type library "EnvDTE90".
Verify that (1) the COM component is registered correctly
and (2) your target platform is the same as the bitness of the COM component.
For example, if the COM component is 32-bit, your target platform must not be 64-bit.

Warning
Cannot find wrapper assembly for type library "EnvDTE80".
Verify that (1) the COM component is registered correctly
and (2) your target platform is the same as the bitness of the COM component.
For example, if the COM component is 32-bit, your target platform must not be 64-bit.

Warning
Cannot find wrapper assembly for type library "EnvDTE".
Verify that (1) the COM component is registered correctly
and (2) your target platform is the same as the bitness of the COM component.
For example, if the COM component is 32-bit, your target platform must not be 64-bit.

This is Visual Studio Community 2017 version 15.9.2 on an up-to-date Windows 10 system.

Can someone PLEASE tell me how to fix this?

THANK YOU!



Wally


Node.js debugging doesn't work with latest version

$
0
0

After updating to Node.js version 10.14.2, I have found that debugging doesn't work in my Visual Studio project. Specifically, anytime I create a breakpoint, it says that the breakpoint "will not currently be hit. Breakpoints set but not yet bound".

Here is a minimal projectwhich reproduces the bug on my machine. Can anyone help me find a workaround for this?

Visual Studio 2013 kills processes started by Coded UI test

$
0
0

I am staring processes with Process.Start(). How do I stop Visual Studio killing them at the end of the test?

Simplest possible example:

        [TestMethod]
        public void CodedUITestMethod1()
        {
            Process.Start("notepad.exe");
            System.Threading.Thread.Sleep(2000);
        }

I run the test, notepad is started, and after 2s when the test finishes, notepad is killed. I think the processes are being killed rather than the application closed because they close very quickly.

When the test is run with a test agent, this doesn't happen.

I am using Visual Studio Update 5.

Why does VS2017 open a new Chrome window instead of reusing my existing one?

$
0
0

In previous versions of VS, if I hit f5 when developing a web site, it started up the site in my default browser.

I've recently installed VS2017 Enterprise, and if I do the same here, it opens a new Chrome window instead of reusing my existing one. This is pretty annoying. Is there a way to tell it to behave like previous versions did?

Thanks

instale Microsoft Visual C++ 2017 Redistributable Package (x64) para Studio One 4 pero ahora cada vez que enciendo mi pv sale esto

$
0
0
Consulte el final de este mensaje para obtener más detalles sobre cómo invocar a la depuración 
Just-In-Time (JIT) en lugar de a este cuadro de diálogo.

************** Texto de la excepción **************
System.IO.FileNotFoundException: No se puede cargar el archivo o ensamblado 'Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado.
Nombre de archivo: 'Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   en System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
   en System.Windows.Forms.Control.WmCreate(Message& m)
   en System.Windows.Forms.Control.WndProc(Message& m)
   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

AVS: El registro del enlace de ensamblado está desactivado.
Para habilitar el registro de errores del enlace de ensamblado, establezca el valor de Registro [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) como 1.
Nota: existe una disminución del rendimiento asociada registro de errores del enlace de ensamblado.
Para desactivar esta característica, elimine el valor de Registro [HKLM\Software\Microsoft\Fusion!EnableLog].



************** Ensamblados cargados **************
mscorlib
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2600.0 built by: NET471REL1LAST
    Código base: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
IAStorIcon
    Versión del ensamblado: 16.7.0.1009
    Versión Win32: 16.7.0.1009
    Código base: file:///C:/Program%20Files/Intel/Intel(R)%20Rapid%20Storage%20Technology/IAStorIcon.exe
----------------------------------------
IAStorUtil
    Versión del ensamblado: 16.7.0.1009
    Versión Win32: 16.7.0.1009
    Código base: file:///C:/Program%20Files/Intel/Intel(R)%20Rapid%20Storage%20Technology/IAStorUtil.DLL
----------------------------------------
System.Windows.Forms
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2556.0 built by: NET471REL1
    Código base: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Versión del ensamblado: 4.0.0.0
    Versión Win32: 4.7.2556.0 built by: NET471REL1
    Código base: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

CssPackage System.ArgumentNullException

$
0
0

Hi

Every time I open a HTML page in VS2017 that contains a 'style' tag, I receive the following error:

System.ArgumentNullException: Value cannot be null. Parameter name: value at System.Enum.ToObject(Type enumType, Object value) at Microsoft.VisualStudio.Shell.DialogPage.SetPropertyValue(PropertyDescriptor descriptor, Object automationObject, Object value) at Microsoft.VisualStudio.Shell.DialogPage.LoadSettingFromStorage(PropertyDescriptor prop) at Microsoft.VisualStudio.Shell.DialogPage.LoadSettingsFromStorage() at Microsoft.VisualStudio.Shell.DialogPage.set_Site(ISite value) at System.ComponentModel.Container.Add(IComponent component, String name) at System.ComponentModel.Container.Add(IComponent component) at Microsoft.VisualStudio.Shell.Package.GetDialogPage(Type dialogPageType) at Microsoft.VisualStudio.Html.Package.Package.CSS.CssPackage.GetAutomationObject(String name) at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.GetAutomationObject(String propName, Object& auto) at Microsoft.VisualStudio.Web.Editor.Package.Settings.Common.WebSettingsStorageWithDialog.LoadFromStorage() at Microsoft.Web.Editor.Host.WebEditor.GetSettings(String contentTypeName) at Microsoft.CSS.Editor.Settings.CssSettings.get_Storage() at Microsoft.VisualStudio.Html.Package.TaskList.CSS.CssErrorTaskProvider..ctor(ITextView textView, ITextBuffer textBuffer) at Microsoft.VisualStudio.Html.Package.TaskList.CSS.CssErrorTaskProvider.Attach(ITextView textView, ITextBuffer textBuffer) at Microsoft.VisualStudio.Html.Package.TaskList.CSS.ErrorTaskSetup.OnTextViewCreated(ITextView textView, ITextBuffer textBuffer) at Microsoft.Web.Editor.Controller.TextViewConnectionListener.<>c__DisplayClass30_1.<OnTextViewGotAggregateFocus>b__0() at Microsoft.Web.Editor.Utility.GuardedOperations.InvokeExtensionPoint(Object errorSource, Action action) --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

Also, when trying to open the Tools > CSS Advanced settings, I receive this error:

I believe that some synced setting is causing this issue, because it still happens even after a fresh clean setup of both Windows and VS2017, and only after I log in on VS2017.

How can I fully delete all my VS2017 synced settings?



Viewing all 21115 articles
Browse latest View live


Latest Images

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