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

How to Externally Connect to LocalHost?

$
0
0

I have a Window Phone attached to my dev machine where I am running the phone app in debug mode on the phone. I am running a WCF service app also on my local machine in a second instance of VS in debug mode which locally is seen as "http://localhost/app.svc". What address header should I use from the phone app to reach the service. WiFi is turned off so the phone will use the phone network for connectivity. I have tried using "http://192.168.1.3/app.svc", the address of my local machine, thinking the USB might provide the connectivity, but unsuccessfully. I've tried with the WiFi turned on; same results. I have tried to access the page from another PC with the IP address with the same results. I have tried using a test.html page which I can see from the browser started by VS, but can't see from the browser of either the phone or the other PC. Hence the questions, how do I setup VS so the localhost is seen from external devices or what is the syntax necessary to use the local host for external devices?

TIA, Marc.




Visual Studio is somehow prejudice about domain names

$
0
0
I cannot login to Visual Studio 2015 RC. It keeps telling me "We don't recognize this domain name".  It gives me this error before I enter my password.  I have checked I have no problem logging on to "

https://app.vssps.visualstudio.com/profile/view?mkt=en-US"

I don't understand what is going on?

Migrating Visual Studio 2013 MFC C++ application to VS 2015 that must be still executable on Windows 7

$
0
0

Hello, I have a question migrating Visual Studio 2013 MFC C++ application to VS 2015 that be still executable on Windows 7.

If the target is Windows 7 you should set Target Platform Version to 8.1 (since Windows SDK 8.1 is backward compatible to those (Windows 7 and Vista) platformsand you should define the appropriate value for _WIN32_WINNT in targetver.h. For Windows 7, that's 0x0601 as decribed here: https://msdn.microsoft.com/en-us/library/8x480de8.aspx

Questions:

1. Should I set the Platform Toolset to "Visual Studio 2015 (v140)" or "Visual Studio 2013 (v120)"? What is the exact difference?
2. Should or must I define the  appropriate value for _WIN32_WINNT in targetver.h?

I created a C++ MFC Application (all default settings) with Visual Studio 2015 (no extra define set for _WIN32_WINNT in targetver.h) and executed with success on Windows 7.

Can you explain this and tell me what I have exactly to do to support Windows 7?
Thanks for the help,


Andreas

Databases error

$
0
0
Dear Reader and helper...
Iam on vs 2015 update 1 and installed sql data tool into vs 2015 on my computer. ..
I just created a new project in Visual Basic and inserted database 1.mdf. after that I have created new table named info..

in debug it shows error.. plese note the code below..

Imports System.Data.SqlClient
Public Class Form1
    Dim cn As New SqlConnection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=E:\VS-2015\Projects\VB-2015\Data Tool\Data Tool\Database1.mdf;Integrated Security=True")
    Dim cmd As New SqlCommand
    Dim dr As SqlDataReader

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        cmd.Connection = cn
        loadlistbox()
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        If TxtId.Text <> "" And TxtName.Text <> "" Then
            cn.Open()
            cmd.CommandText = "Insert into info (name,id) values (" & TxtName.Text & "," & TxtId.Text & ")"
            cmd.ExecuteNonQuery()
            cn.Close()
            TxtId.Text = ""
            TxtName.Text = ""
            loadlistbox()
        End If
    End Sub
    Private Sub loadlistbox()
        ListBox1.Items.Clear()
        ListBox2.Items.Clear()
        cn.Open()
        cmd.CommandText = "Select name,id from info"
        dr = cmd.ExecuteReader()
        If dr.HasRows Then
            While (dr.Read())
                ListBox1.Items.Add(dr("Name"))
                ListBox2.Items.Add(dr(1))

            End While
        End If
        cn.Close()
    End Sub

    Private Sub ListBox1_MouseClick(sender As Object, e As MouseEventArgs) Handles ListBox1.MouseClick
        Dim lb As New ListBox
        lb = sender
        If lb.SelectedIndex <> -1 Then
            ListBox1.SelectedIndex = lb.SelectedIndex
            ListBox2.SelectedIndex = lb.SelectedIndex
        End If

    End Sub
End Class


In some of the field  "cmd.ExecuteNonQuery" and cmd.executeReader, cursor shows exception..

See the Table

See the Error..when I click the button to add

Please help me how to fix the problem. ..

How to open Design View in Visual Studio Express 2015 ?

$
0
0

Howdy,

(This is likely to be the easiest one of the day...)

If I open an HTML page using Visual Studio Express 2015, it brings me to a Code View.

From that view, how do I launch the WYSIWYG Design View?

(I've read that I should click on the "Design Tab" in the lower left, but no such tab is visible...)

Sincere thanks,

Lothar

How do I get a custom control's event handler assignments to transfer when exporting custom control as item template?

$
0
0
I have created a custom control in Visual Studio (C#). When I export this custom control as an item template, the source code, including code for event handlers, exports along with it. The problem is that, for example, a button's click event handler is no longer assigned to it. I have to go into the event handler list for that button and reassign it. Not really a major crisis for me, since it's an easy fix, but how can I ensure that the event handlers will still be assigned to the controls to which they pertain when exporting the control as an item template?

Hide duplicates

$
0
0

Simple question. Visual Studio 2005 Report Designer has 'Hide Duplicates' option in Textbox General Properties.

Where can I find that option in 2008?

Missing file from install of VS 2015 and update 1

$
0
0

Hi,

We are just rolling out VS 2015 and VS 2015 update 1. We are also using VS 2008 and VS 2012 Team Server.

The problem we have is our Software engineers are not able to build certain things.

The file missing is called "Microsoft.TeamFoundation.Build.targets"

C:\Src\XXXXXXXXX\Core\TFSBuild.proj(8,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. 

The only thing i can find says copy the file from a working install of VS. 

Any help would be much appreciated

Andy


Getting Busy Message When Pasting

$
0
0

Everytime I paste something into the HTML/Design view of aspx page (not code behind) VS freezes and I get the "Microsoft Visual Studio is Busy" message. I've researched this many times and have tried many different things, but none of them seem to work.

I've just updated my VS2015 with Update 1. I also tried to install a hotfix to fix the pasting issue, but I guess this was already included in the update. I am still having issues.

Is there something else that might be causing this issue?

Suggestions disappeared, help!

$
0
0

Hello,

After some time development of my project suggestions disappeared. This phenomena exits only in lib project. In another solution's projects works fine. I have tried to restart VS, repair it, reset it also another google solutions, but no luck.

Without suggestions is very difficult to develop.

Visual Studio 2015 check outs the solution at build time

$
0
0

After upgrading from Visual Studio 2013 web site projects to Visual Studio 2015 web site projects (NOT web application projects), every time the project builds it checks out the solution file and a diff doesn't show any changes to the solution file.

We are also running ReSharper Ultimate 10.0.1. The Visual Studio edition is the enterprise, if that makes any difference.

Microsft.CodeDom could not be located.

$
0
0

Hi.

I keep getting this error when attempting to view my website which is stored in an inetpub folder separate from my development machine. When viewed on localhost on my own machine it works as intended. The full error message is as follows:

Parser Error Message: The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.

Source Error: 

Line 24:     <compilers>
Line 25:       <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>Line 26:       <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>Line 27:     </compilers>
Line 28:   </system.codedom>

Source File: C:\inetpub\wwwroot\project test\web.config    Line: 26 

Nothing I do seems to shift it. I did a little digging and some people said you can fix it by changing the framework but that didn't work. 

Does anyone have a fix/workaround for this?

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 

IVsHierarchy is not expected error when analyzing code coverage

$
0
0

I have having a persistent issue when attempting to analyze code coverage in Visual Studio 2013 Ultimate. When attempting to analyze I receive the following error:

The input IVsHierarchy is not expected, please ensure to pass the correct IVsHierarchy object. A common mistake would be the stub proxy was passed when the method was invoked on a background thread.


This only appears to be happening on my computer. Coworkers of mine can analyze code coverage on the same solution and same source code with no issues. I have already attempted to repair the Visual Studio 2013 installation with no luck. I have also removed Resharper to ensure that was not causing an issue.

I have scoured the internet for a solution to this issue and so far have not found one. 

Please help!

Thank you,

Patrick


Visual Studio is blind!

$
0
0

Hello. So I'm sure I'm overlooking something silly. Hopefully somebody can point out my error.

This works in C++:

#include "external\glew-1.13.0\include\GL\glew.h"

int main()
{
}

Now, I have defined "external\glew-1.13.0\include" in the project's property page under "C/C++ -> General -> Additional Include Directories". I have done this for all Configurations.

But this does not work:

#include "GL\glew.h"

int main()
{
}

I get "fatal error C1083: Cannot open include file: 'GL\glew.h': No such file or directory"

How can this be? I told VS precisely where to find it. I even tried using the absolute directory starting with C:\...\.... It's getting frustrating. I've made certain that there is no potentially conflicting include directory defined under "VC++ Directories -> Include Directories" and I've tried deleting the .sdf file in the solution directory. What am I missing?


Visual Studio Forms Designer : 2015 vs 2010

$
0
0

I have just installed Visual Studio 2015 Community on my Windows 10 Surface Pro 4.  I develop old-fashioned programs for windows forms; I have been using Visual Studio since 2003, and am now using VS 2010.  In the VS 2010 forms designer I see the form exactly as it will appear in the executable - I can count pixels.  In VS 2015 designer the form appears scaled down, and the relationship between controls and placement seems to be unpredictable.  When I import old projects from VS 2010, the forms are all compressed with controls on top of each other, and I cannot work with them.  When developing new projects, I have been unable to control the appearance of the form in the executable.  So, I have found Visual Studio 2015 unusable for my development, and I have gone back to VS 2010 on Windows 7.  Is there some setting or option to make the Visual Studio 2015 designer work in a WYSIWYG mode as it did in older versions of Visual Studio?

Thanks,

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.

Error on trying to create Windows Form File on VS 2015, Exception HRESULT: 0x8000000A

$
0
0

Hello!
My program version is Visual Studio Community 2015 Update 1, with the C++ tools installed, on an Windows 7.
Here are the steps to create the error:

- Create a New CLR Empty project;
- Create a New Windows Form, on the UI node tree.

When doing clicking to create the file, I receive that error message:

"Os dados necessários para concluir esta operação ainda não estão disponíveis. (Exceção de HRESULT: 0x8000000A)".
(My version are in portuguese).

I had already reinstalled VS 2015. I tried to close the error windows, and opened the file on the solution explorer, but I still receive the error. I tried almost everything of what I saw from the Forum and nothing...

Could someone help me? I really need to get him to works...
Thanks anyway!


Scaling the Visual Studio Designer

$
0
0
I have windows form projects developed on previous versions of Visual Studio, and I am attempting to continue development of these projects using Visual Studio 2015 on a Microsoft Surface Pro 4.  The Surface Pro 4 recommending screen scaling is 200%; below that it is very difficult to use with the touch pad and impossible to use as a tablet (without keyboard or touch pad).  At 200% scaling, Visual Studio and other apps look great; however, the forms designer in Visual Studio takes my forms and turns them into a garbled mess with controls squished together and on top of each other.  The form itself seems to be scaled, but the controls, fonts, etc. are not scaled.  Moreover, I don't want the form to be scaled: I want what you see is what you get - pixel by pixel. Is there a way to option Visual Studio so that the forms designer does not scale the forms that were developed on VS2010/12/13 on lower resolution devices, but instead shows the forms in the designer at the size they were designed with horizontal and vertical scrollbars if needed.  The display resolution on the Surface has to be 200% in order to use Visual Studio.

integrated development environment for windows 10

$
0
0

I see there is a new program  called Visual Studio Code.  Is this the best integrated development environment (IDE) to use on a windows 10 device?  I want to start trying to write code, espeically at a lower level like in C.  Will this program help me with that?  I have tried the generic starter program helloworld.c but do not seem to be able to figure out how to build/compile/run any of those steps.  Or do I need to get a different open source IDE specifically for C?  After C I want to move to other languages.

Thank you,

Viewing all 21115 articles
Browse latest View live


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