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

Can not reference System.data Error when creating project

$
0
0

I am having issues creating a solution/project in Visual Studio Enterprise 2015. Things have been working well. However, when I now attempt to create a new Solution/Project, I am given the following error:

enter image description here

I am then able finish loading the project. However, I see another issue in solution explorer: enter image description here

Note that there is no path given for the selected reference. If I try to remove it/add it back as a reference manually, I still do not see a path or version. I have tried the following:

  • Selected different .Net framework versions when creating the solution/project
  • Tried different project types: Window Forms, Class Library
  • Repaired visual studio
  • Repaired .Net Framework 4.6.1

So far I have been unable to make the error go away. Any other suggestions?


How to make the "Player fall off the blocks in my 2d platform game?

$
0
0

i have a game that needs to be created in 3 weeks for school and all i need is for the character to fall off blocks.

the character can stand on the blocks but if you move off of them you stay at the same level without falling to the ground

The "Microsoft.VisualStudio.ProjectSystem.References.UnresolvedAssemblyReference" reference could not be resolved

$
0
0
Hello everyone,My English is not good。
VS2015 + windows 10.10585 sdk 10.10240 , I add a reference, but I can't succeed. That reference -> Properties Full path is" The "Microsoft.VisualStudio.ProjectSystem.References.UnresolvedAssemblyReference" reference could not be resolved." I want post image ,but I get "Body text cannot contain images or links until we are able to verify your account."

Visual Studio Emulator for Android release notes

$
0
0

It is great that Microsoft releases new versions of Visual Studio Emulator for Android periodically.   It is the best Android emulator on the planet literally. 

Where can I find the release notes to see if my wishes are among the new features?


Hong

Warning C6201: index out of range is not always reported in code analysis

$
0
0

Hi

I have made a very simple Visual C++ project to illustrate the problem. I started with a general empty project of type static library, and then added the following code:

void f()
{
	int buff[25];
	for (int i = 0; i <= 25; i++) // i exceeds array bound
	{
		buff[i] = 0; // initialize i
		if (i == 1) { /* Do something */ }
	}
}

This is the same code as used in the documented example for C6201 except that I added the line "if (i == 1) {}".

When running code analysis without the if statement, the out of range warning is reported as expected. However when running with the if statement, the code analysis reports no issues.
This happens as long as the if statement contains the index used in the for loop.

I use the rule set "Microsoft Native Recommended Rules", but have also tried "Mixed" and "Microsoft All Rules".
I have tried both with VS 2013, update 5 and with VS 2015, update 1.

Any ideas why the warning is not reported when including the if statement?
Are there any settings that we have missed?

Vidar

Installation

$
0
0

Hi , i jave a question, i want ton install visual studio on my computer,  i have a small SSD for my OS ( with less than 10gb on it ) and a big HDD 1tb . but when i lunch the installation, i say i want to install it on my d:\ (HDD) but, the programm say that i will take 9gb on BOTH my SSD and my HDD, but i have not the space on my c:\, like the picture say it ( in french im sorry) the installation programm will take 9 gb on all drive, just, why ? i have all the place it need on my second hard drive, why it say it need the space on my c:\ too  after i choose D:\ in the installation destination ???

http://img15.hostingpics.net/pics/620597junk.png

VS 2015: Prevent IDE internet access

$
0
0

The IDE has allowed access to the MSFT symbol server. However, it also accesses some other servers right after startup. Why? No project is loaded, the option "Automatically check for updates" is disabled, and I'm not logged into my VS account, so there is no reason to access anything.

Which option must I disable to stop this unrequested behavior?

Some servers accessed are Akamai servers, but also...

93.184.221.200 edgecast.com
108.162.232.198 cloudflare.com
191.232.139.254 eu.vortex.microsoft.com

If I put trust in something by installing it, I expect not to misuse it by not giving the explicit clarity of what it is doing and why.


Armin

VS 2015 Crashing when attempting to publish an API App to Azure

$
0
0

Anytime I right-click and select Publish... from a Web API project to push it to Azure, Visual Studio 2015 crashes and then reloads.  I have tried deleting the publish profiles and resetting them, but it has had no effect.  Any one else seeing this behavior or have other suggestions for troubleshooting?
Thanks,

Bob

PS. it is VS Enterprise 2015, version 14.0.23107.0 D14REL if that helps.


Visual Studio 2015 community universal app xaml no designer

$
0
0

Hello,

I'm using win7 sp1 with Visual Studio 2015 community version 14.0.24720.00 update1.

I try to develop IOT project (on rpi2) and I opened c# universal app (blank), and try to design the 'mainPage.xaml' with no success.

In design mode I can't go to the real design mode, I have just the xaml code.

How can I fix it?

How to change the search - "Find Next" functionality?

$
0
0

I am using Microsoft Visual Studio Premium 2013. I can use the Ctrl-F function to find something in my current document. If I hit F3 it will then find the next instance in my document. However, if there are hundreds of instances in my document it always starts the search for the next instance from the last one found.

How do I get the F3 (Find Next) functionality to start from the current cursor position?  If I started my search in the middle of my code, then want to find the very first instance in the file, it seem like I should be able to type Ctrl-Home to get to the very start of the file, then press F3 to find the first instance.  Unfortunately, pressing F3 will find the instance after the last one found, which could be anywhere in my document.

I just want the FIND to start the search (F3) from my current cursor position in the file.  The way it used to work in Visual Studio 2010.

Any help is appreciated.  Thanks.

Problem with Starting Mobile Emulators in VS 2015

$
0
0

I'm still having a problem with starting phone emulators in VS2015. They were seemingly working fine at one point, but after several days of not using emulators, I went back to trying to use one and now get the following errors when attempting to run several of the universal window examples from Microsoft:

Severity Code Description Project File Line
Error  Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device 'A6BAF594-9315-40C3-AD16-F5B8A425A7AB'.':
SystemException - A method was called on an uninitialized object. DataReaderWriter.WindowsPhone  

Severity Code Description Project File Line
Error  Error : DEP6200 : Bootstrapping 'Emulator 8.1 WVGA 4 inch 512MB' failed. Device cannot be found. DataReaderWriter.WindowsPhone  

I also get an "Attempting to modify switch settings" warning message before the emulator fails to load.

Does anyone have any idea what is going on here?

Thanks.


Steve Hunt

Broken download link for "Visual Studio 2015 Update 1 servicing update"

$
0
0

Hi,

I am having Issue 3 under the fix "Visual Studio 2015 Update 1 servicing update", but it seems that the download link is broken. Can anyone help?

Link to the fix:

https://msdn.microsoft.com/en-us/library/mt634751.aspx

Thanks,

Starsia

Weird Command line app problem in VC++

$
0
0

I have a command-line application that exhibits some really puzzling behavior.  At the end of a processing loop, the following code is called:

delete []m_pOutputAFBuffer;

at some point earlier in processing, the following code was executed:

m_pOutputAFBuffer = new FCAnchField[num];

FCanchField is defined as

typedef struct _AnchField{
short mySize;
BYTE* pData;
UINT  ulDataLen;
short bQuotes;
}FCAnchField;

Here comes the weirdness.  When i have this executable on my C drive, it will execute as expected.  If  I copy the entire directory  over to a mapped drive on another system , the delete will fail sporadically.     I have copied the entire directory that contains the executable over.   The affect is the same whether i run it from Visual Studio (2008)  or the command line.  More specifically, I can open a command window and execute the image from my local system and it  runs.  I can then cd to the remote directory and the image fails.  For example:

c:\temp>prog.exe                                             // this works

cd u:// u mapped to  c drive on another system.

U:\temp>prog.exe// fails after a few records

Both local and  remte machines are running Windows 7 Enterprise edition. 

My understanding of executing an image located on another system is the image copied (opened - whatever the nomenclature is)  into the memory of the host machine, and then executed.  Since I am executing under the same command window, all the environment variables are the same.    It seems that there is some effect the the remote machine is having that i am unaware of.  Can some Windows Internal guru enlighten me?  I am just a simple developer.

 

Selecting file location at startup

$
0
0

This may seem like a silly question, but I'm new to programming and I cannot figure out how to do this.  What I want to do is have the program check whether the user has selected a location for a database file and, if he hasn't, prompt him to do so. The program will then generate it's database file in that location and will use that file for all future database operations.  Is there a way to do this?

I've tried using an resx file, but it's useful for reading more so than writing and I'm not sure it will save new values between program runs.

Opening data sources causes VS 2015 to crash since I updates to Update 1

$
0
0

Opening data sources causes VS 2015 to crash since I updates to Update 1


doxygen comment color

$
0
0

Hello,

I use a light gray to "de-highlight" comments. However, when using a doxygen comment like    ///<  the comment is only gray until it reaches a comma. After that, the color of the comment changes as if it was code, which is a bit misleading when having a look a the file.

Why ///< is treated different than // and which field of Environment->Fonts and colors do I have to change in order to get a fully grayed comment?

The problem only appears, as usual, in VS2015.

thanks



Help with scaffolding MVC with Visual Basic (tons of hours into it and I can't get started)

$
0
0

I'm using VS 2015 community. I just updated to the latest sp.

It lets me create a VB MVC project and model.

But when I add scaffolding (MVC 5 Controller with views, using entity framework), I get the message

"visual basic command line compiler has stopped working"

Then I get the error with the red x

"There was an error running the selected code generator: failed to render because of the following errors: an exception was thrown while trying to compile the transformation code (plus about 100 more lines that I can't copy because its displayed in a message box)"

This works on my sons computer - and it works on my computer if I use the C# language. I suck at syntax, so I would rather use VB than C#.

I've tried just about every possible combination of settings on the wizard. They all lead to the same error.

Suggestions?

Visual Web Developer 2013 AutoCompleteExtender AJAX toolkit VB problem

$
0
0
I am trying to add a autocompleteextender to a aspx page in a newly created website in VWD 2013. I selected New Website - ASP.NET Web Forms Site. I have searched the internet for instructions on how to do this since I am by no means a professional. I found an example which I downloaded and modified it so that I could use my own SQL connection. I opened this web example as a new website and it works great. This example does not require a webservice to run. When I add the aspx & aspx.vb files to my website, it does not work. It is set to begin the search after the first 3 characters. As soon as I enter a forth charater, it kind of freezes and displays what seems to be the html code for the webpage in a vertical fasion. I sure that the problem is in the aspx.vb file and or that I must use a webservice asmx file. I have experimented quit a lot and have not found a solution. I hve succedded in getting rifd of the error, but then it does not display any listing s from the sql query. Can you please help? here is a live link http://musickix.com/vb.aspx. I send my code if desired.

BizTalk Solution Compile takes 10-20min (VS2013 Update5 + VirtualBox)

$
0
0

I was looking for a solution for my problem but could not find anything that works well... 

I have a BizTalk solution that contains 44 projects the biggest project compiles into 17mb assembly and build takes between 10 and 20 min. When I trigger msbuild from the command line for the whole solution it takes only 2min.

Do you know how could I speed it up?

I have played already with concurrent builds/ cleared down VS temp data etc.

Could it be VirtualBox as a virtual pc could be causing it? Just to clarify my VM has 4 processor cores and 11GB of Ram and runs Windows 2012 R2

Many Thanks 

PPiotroek


CodeSmith Generator License error.

$
0
0

Hi All;

I recently moved from a machine with Visual Studio 2012 Professional to one with Visual Studio 2012 Ultimate.  I moved all of my projects over as well.  Now anytime I open one of the existing web projects or create a new web project I get an error reporting

A valid license could not be obtained for 'CodeSmith Generator'. Please contact CodeSmith Tools, LLC for assistance.
 

After copying the error message to the clip board I show the following details:

DETAILS

No licenses found in the suggestion cache.

No compiled licenses found.

Could not validate license "Professional Edition (CS70P-)" in C:\Users\edward.joell\AppData\Local\CodeSmith\v7.0\CodeSmith70.lic.
	License has not been unlocked with a serial number.

Could not validate license "Standard Edition (CS70S-)" in C:\Users\edward.joell\AppData\Local\CodeSmith\v7.0\CodeSmith70.lic.
	License has not been unlocked with a serial number.

Could not validate license "Server Edition (CS70M-)" in C:\Users\edward.joell\AppData\Local\CodeSmith\v7.0\CodeSmith70.lic.
	License has not been unlocked with a serial number.

No licenses found in C:\Windows\Microsoft.Net\assembly\GAC_MSIL\CodeSmith.Engine\v4.0_6.0.0.0__9fd61cdb91609a7a.

No licenses found in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE.

No licenses found in the current assembly.

Could not validate license "Evaluation Registration" in C:\Users\edward.joell\AppData\Local\CodeSmith\v7.0\CodeSmith70.lic.
	The form was closed before the operation was completed.
	An unexpected error occurred while validating.
		The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Stopped looking for additional licenses.

The Add/Remove Programs of the control panel shows that Code Smith Generator 7.0.1.15136 is installed.

I have never used Code Smith, and have no idea while I am getting this error.

I could probably just uninstall this tool but I am reluctant to make changes to the installation setup of Visual Studio implemented by the enterprise push.

How can I get visual studio to see the Code Smith install license?


Edward R. Joell MCSD MCDBA

Viewing all 21115 articles
Browse latest View live


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