Menu
  • HOME
  • TAGS

In Visual Studio 2013, what does this black arrow-shaped symbol in the breakpoint bar mean? [duplicate]

c#,visual-studio,visual-studio-2013,ide

That icon indicates that the line is a Find Result from the last time you did a "Find In Files."

Unwanted database file being generated, how to prevent and remove?

c++,sql-server,visual-studio-2013,sfml,visual-c++-2013

The sdf file is created and owned by Visual Studio, not your program. When you open a solution Visual Studio will check to see if this file exists. If it doesn't VS will create one and populate it with code browsing and other information about the projects it manages. If...

Loop through every control on a Form (including those in Containers) and replace a text placeholder with a setting value

vb.net,visual-studio-2013,control

This should do it, although obviously replace the text here with the DriveLetter (I can help with that if you'd like). Private Sub ReplaceAllControlsOnForm() Dim stackOfControls As New Stack(Of Control) 'add initial controls (all on form) For Each c As Control In Me.Controls stackOfControls.Push(c) Next 'go until no controls are...

Creating a 25fps slow motion video from a 100fps GoPro .mp4 video with C++/OpenCV

c++,opencv,video,visual-studio-2013,slowmotion

As I suspected, it's the Coded! I used many of them, but then I found this question: Create Video from images using VideoCapture (OpenCV) then I used the coded MJPG in: outputVideo.open(name, CV_FOURCC('M', 'J', 'P', 'G'), 25, size, true); // create a new videoFile with 25fps and it worked! Here's...

Run one Visual Studio copy on multiple Windows os

windows,visual-studio-2013

No, you have to install Visual Studio on every Windows installation you want to use it on. The installer makes changes to the registry and also adds files outside of the main Visual Studio directory. I would also not recommend installing VS into the same directory from different Windows. Just...

Exception thrown by 'stol' using Visual Studio but not gcc

c++,c++11,exception,visual-studio-2013,gcc4.9

Under Windows the type long is always 32-bits. Since long is a signed integer type this means that the range of long is between -2147483648 and 2147483647 inclusive. On Linux the size of long depends on whether you're compiling for 32-bits or 64-bits. Since std:stol converts a string to long...

How to Insert Data to the Database? - User Defined Classes

c#,database,visual-studio-2013,executenonquery

OK finally I came up with the Answer to my question as I expected. Here how to do this; private void btn_Add_Click(object sender, EventArgs e) { try { String name = tb_Name.Text; DateTime dob = dtp_dob.Value.Date; int age = Convert.ToInt32(tb_Age.Text); String Address = tb_Address.Text; int telno = Convert.ToInt32(tb_Telno.Text); int line...

devenv.exe hogs CPU when debugging

asp.net-mvc,visual-studio-2013

I didn't manage to find the source of the problem, but closing all editor windows in VS seems to make it go away. If there are further lag spikes, restarting debugging might be also a good idea. Since I didn't see this problem in a new project, it might be...

How do I install the Wix extension on after a Visual Studio 2013 Update?

visual-studio-2013,wix

I in the end wasn't able to find a way to resolve this without uninstalling and installing WIX. Repair didn't resolve this issue. I had to uninstall and install WIX again to resolve this....

Using Selenium in C# without opening a browser in Visual Studio 2013

c#,selenium,visual-studio-2013

It is not clear whether or not you need to work with web page (like click on the links, or edit test), but here are two options: You can use PhantomJS.It is headless browser and since there will be no UI execution may be faster. There is a selenium driver...

How to install Xamarin for Visual Studio 2015 when Visual Studio 2013 is installed too?

visual-studio-2013,xamarin,visual-studio-2015

I think the link below may assist you: first, uninstall everything related to xamarin. second, open vs2015 and create new andriod project third, when project is created you'll see instructions to downloading xamarin. Download the xamarin installer for vs2015, install it, after installation - open vs2015 and see the newly...

using for loop for a textbox in selenium C#

c#,visual-studio-2013,selenium-webdriver

Your question is not clear. Are you trying to Enter the value in 10 different Edit Boxes in a single run or you are trying to enter different values in same Edit box in multiple runs (If so you can use random class to generate random integers which will generate...

How to connect to a local SQL server database in asp.net using Visual Studio 2013?

c#,asp.net,sql-server,visual-studio-2013

for your web.config connection string, try something like: <add name="ConnectionStringName" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFileName=c:\inetpub\wwwroot\webite\app_date\DatabaseFileName.mdf;InitialCatalog=DatabaseName;Integrated Security=True;MultipleActiveResultSets=True" /> (modified accordingly)...

How to use ajax to post json string to controller method?

jquery,asp.net-mvc,visual-studio-2013,asp.net-mvc-5

Your action method is expecting a string. Create a javascript object, give it the property "data" and stringify your data object to send along. Updated code: $.ajax({ type: 'post', dataType: 'json', url: 'approot\Test', data: { "json": JSON.stringify(data) }, success: function (json) { if (json) { alert('ok'); } else { alert('failed');...

Using Sync Framework in Visual Studio 2013

wcf,visual-studio-2013,microsoft-sync-framework,sql-server-2012-localdb

there's no equivalent for the Local Database Cache project wizard in VS 2013. if you want to do what the wizard does, you can hand code it yourself. but that will be using the older sync providers. you can find a walkthrough of how to achieve this with the newer...

How to change TextAlignment by code? LightSwitch 2013

javascript,visual-studio,visual-studio-2013,visual-studio-lightswitch

As far as i know the LightSwitch 2013 HTML contentItem.horizontalAlignment field is Read-Only. I don't know any LightSwitch methods that allow you to change this at run time. I'm sure it can be done in Javascript or JQuery. You could create 2x TextBox controls and set one to align left,...

How do you preview your c++ code in visual studio

c++,visual-studio-2013,input

It's kinda hard to see what exactly you are asking here. If you mean predicting code behaviour, that's not exactly possible, for many reasons. First and foremost, you're not dealing with a scripted language, but a relatively low-level programming language. Therefore, the output of your code is extremely hard to...

How to find what headers my C++ application is using? [duplicate]

c++,visual-c++,visual-studio-2013

There is a project setting in VS that can do this. Go to the Property Pages for your project, then Configuration Properties | C/C++ | All Options. Enable the Show Includes options. Build your project, and examine output. This is the /showIncludes option.

How to create a folder that contains the current date and time instead of name

winforms,visual-studio-2013,c++-cli

Don't hard-code the desktop directory name, it is not c:\users\desktop. .NET makes it easy: String^ path = System::IO::Path::Combine( Environment::GetFolderPath(System::Environment::SpecialFolder::Desktop), DateTime::Now.ToString("yyyyMMddhhmmss")); System::IO::Directory::CreateDirectory(path); // Write file(s) to <path> //... It is up to you to decide how fine-grained to make the directory name, if you do this at a very high rate...

C# When creating a button that does File.CreateText method, how can I prompt a request for a user to enter File Name and write a text line?

c#,visual-studio-2013

use savefile dialog. this code is from msdn private void button2_Click(object sender, System.EventArgs e) { // Displays a SaveFileDialog so the user can save the Image // assigned to Button2. SaveFileDialog saveFileDialog1 = new SaveFileDialog(); saveFileDialog1.Filter = "JPeg Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif"; saveFileDialog1.Title = "Save an Image File"; saveFileDialog1.ShowDialog(); // If...

Visual Studio 2013 Report RDLC with related datasets

visual-studio-2013,report,relational-database,rdlc

To group data in a report: Click the Design tab. If you do not see the Row Groups pane , right-click the design surface and click view and then click Grouping. From the Report Data pane, drag the Date field to the Row Groups pane. Place it above the row...

How to get previous version using git and VS Express for web 2013?

git,visual-studio-2013

You can get a specific version via git checkout [commit_id]. You can undo that commit with git revert [commit_id].

Stop the page Refreshing on every item clicked

c#,visual-studio-2013

You need to integrate partial rendering into your Project. You can follow the Walkthrough on this link to get you started. Understanding Partial Page Updates with ASP.NET AJAX

I cannot debug two projects at once - one with Resharper NUnit tests

debugging,visual-studio-2013,nunit,resharper

It appears that the ability to debug unit tests while other projects are running is a feature that was introduced in Resharper 9.x. The other developer was using a trial of it, it turns out. Now that he's reverted back to 8.2.2, he is seeing the same thing that I...

VS2013 Is Not Compatible With VS2015 Project Type

asp.net-mvc,visual-studio-2013,asp.net-mvc-6

This repo is a fork of next version of ASP.NET MVC. It's built to run on VS 2015, C#6 and the next runtime. Even if you could open it, you couldn't compile or run it. Visual Studio 2015 can create both vNext (5) and ASP.NET 4.5/4.6 projects. ASP.NET 5 projects...

MSVC 12 std::initializer_list bug when copying std::string

c++11,visual-studio-2013,language-lawyer,msvc12

The problem is that you're using both parentheses and braces: std::initializer_list<TestStructure> structures({structure}); ^^ ^^ This will construct a temporary std::initializer_list<TestStructure> and copy it to structures; the normal lifetime-extension will not be performed, so structures will be pointing to destructed storage: [dcl.init.list]: 6 - The array has the same lifetime as...

How to make a programs icon in the task bar change based on something like time? [duplicate]

c#,.net,vb.net,visual-studio-2013

You could to this at start (take Title out of the XAML) this.Title = DateTime.Now.ToString(); But a dynamic ticking clock in the task bar would not be easy ...

LocalDB not installing

c#,sql,asp.net,sql-server,visual-studio-2013

In your case LocalDB is not started. To Start LocalDB (V11.0 is the default instance name) execute: C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SqlLocalDB.exe start V11.0 To start automatically at System startup have a look at this: http://dba.stackexchange.com/questions/52697/how-to-auto-start-instance-of-sql-server-2012-localdb-on-startup...

MSBuild Error: “The solution file has two projects named …”

visual-studio-2013,msbuild,publish-profiles

This is most likely some project naming issue in your solution file. Check for things like similar names except for punctuation like _ or .. There appears to be some behavior that will treat blah_something and blah.something as the same thing and report this error. Source

Can't reinstall package

visual-studio-2013,nuget

NuGet will skip reinstallation of a NuGet package if it cannot find it in the currently selected package source since the reinstall would fail leaving the NuGet package uninstalled. So it is worth checking what the currently selected package source in the Package Manager Console is since it may be...

OpenGL program works only in Debug mode in Visual Studio 2013

c++,opengl,visual-studio-2013,release

Your problem lies here: file.seekg(0, file.end); GLint len = GLint(file.tellg()); file.seekg(0, file.beg); GLchar* buf = new GLchar[len]; file.read(buf, len); file.close(); This code reads exactly the length of the file and nothing more. And unfortunately file sizes don't actually tell you about how much there's actually to read; if the file...

IIS Express 8 - Max allowed length

c#,asp.net,iis,visual-studio-2013,iis-express

Let's look at the code that throws: private void ValidateRequestEntityLength() { if (!this._disableMaxRequestLength && (this.Length > this._maxRequestLength)) { if (!(this._context.WorkerRequest is IIS7WorkerRequest)) { this._context.Response.CloseConnectionAfterError(); } throw new HttpException(SR.GetString("Max_request_length_exceeded"), null, 0xbbc); } } The ctor sets those options: internal HttpBufferlessInputStream(HttpContext context, bool persistEntityBody, bool disableMaxRequestLength) { this._context = context;...

VS2013 Unresolved External with constructor and destructor [duplicate]

c++,visual-studio-2013,constructor,linker-error

I suspect that your .h file has the constructor and destructor defined as a prototype, but you never actually implemented them.

Add azure db to mvc5 project

asp.net,azure,visual-studio-2013,asp.net-mvc-5,sql-azure

I think that you need to create the DB in Azure from the Azure control panel. Once it is there, EF can use the connection string for Azure to add tables/data to an existing DB. Due to the configuration requirements of Azure DB, I haven't found any option but the...

How Can I Add a Drop Downmenu, Selection, add that text in a richtextfield

visual-studio,visual-studio-2013

You use the SelectedIndexChanged event of the ComboBox(Drop Down Menu). Then try to add this code on the event function. C# private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { richTextBox1.Text = main_text + " " + comboBox1.Text; } VB Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged...

Create a control dynamically in an MFC application

c++,visual-studio-2013,mfc,cdialog

"(I can't define them as class members, because I don't know how many!)" You can make an array, or a vector, of CButton or CButton* as a class member. Assign a different ID to each of them when you call its Create....

Visual Studio 2013 LINK : fatal error LNK1181: cannot open input file

c++,visual-studio,opencv,visual-c++,visual-studio-2013

Remove all references to the library. Somewhere that project is pointing at the path you give above and you need to remove that. Then add the library into the executable project. Right click->add->existing item, change the type to all files, then browse to the file location. ...

How can I tell what will be updated if I use “Get Latest Version”?

visual-studio,visual-studio-2013,tfs,tfs2013,tfvc

Use Compare... and select Latest Version. That's best executed from the commandline or the Source Control Explorer. If you compare "Latest Version" (remote) with "Workspace version" (local), then it'll tell you what has changes on the server since the last get-latest. If you compare "Latest version (remote) with "Latest version"...

Exception error using C++ Thread Pool Library (CTPL)

c++,multithreading,exception,visual-studio-2013,threadpool

file ctpl_stl.h is fixed on the project web site. Try the new version (0.0.2) instead of the old one. It should work, it works for me. ctpl_stl.h was created as a modification of ctpl.h for convenience for the users who do not want to have dependancy on BOOST lockfree library....

Color-coding for HTML stopped working

visual-studio-2013

Install Visual Studio 2013 Color Theme Editor , https://visualstudiogallery.msdn.microsoft.com/9e08e5d3-6eb4-4e73-a045-6ea2a5cbdabe :)

How can I run “query session” using vb.net?

vb.net,visual-studio-2013,cmd

It seems to be a permission problem. You need to pass a user name and a password of an administrator user to your command ..... process.StartInfo.UserName = "yourAdminUser" process.StartInfo.Password = GetPassword() ..... Public Function GetPassword() as String Dim ss = new SecureString() ss.AppendChar("p") ss.AppendChar("a") ss.AppendChar("s") ss.AppendChar("s") return ss End Function...

Boost filesystem iteration fails with a long path

c++,boost,visual-studio-2013,boost-filesystem

This is a windows problem, not a boost problem, and the only solution is to make your paths shorter or switch to Unicode for file system interactions which triggers a different set of issues if your program inherently uses 8 bit characters. Sorry. Although Windows claims to support up to...

Using Try/Catch block to set file path?

visual-studio,visual-studio-2013

Your inner Try/Catch block should be inside the FileNotFoundException catch. Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim sr As IO.StreamReader Dim age As Integer Dim path As String Try sr = IO.File.OpenText("Ages.txt") age = CInt(sr.ReadLine) txtOutput.Text = "Age is " & age Catch exc As IO.FileNotFoundException...

Change mapping option replaced with cloak option in TFS

visual-studio-2013,tfs

I recommend installing "TFS Source Control Explorer Extension" - From below link: https://visualstudiogallery.msdn.microsoft.com/af70cbb7-1e0d-4d16-bc57-cccc15370c51...

POST to MVC controller IEnumerable nested Model is null when I don't select checkboxes in order

c#,asp.net-mvc,razor,visual-studio-2013,asp.net-mvc-5

The DefaultModelBinder will only bind collections where the indexers of the collection items start at zero and are consecutive. You problem is that you are manually creating a checkbox element. Since unchecked checkboxes do not post back, if you uncheck one, then it and any subsequent checkbox values will not...

Read uploaded pptx file with Open XML SDK

c#,asp.net,vb.net,visual-studio-2013,openxml-sdk

Wered question, but, Have you add import section? using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Presentation; using DocumentFormat.OpenXml; Are you using references form the gac or storing OpenXml dlls as files?...

Cannot “Go To Definition” in Visual C++ 2013

c++,visual-studio-2013,mfc,visual-c++-2013

You can put a break point on any MFC function then debug it, and step in to the function (F11 key or "Step in" command). This will take you directly to source code, most of the time. In this case, you may be redirected to this file for VC 2013:...

Visual Studio Assembly force-installs Target Framework

c#,.net,visual-studio-2013,.net-framework-version

The targeted .NET version is the only version that the app will depend upon by default. Visual Studio will not automatically add higher and backwards compatible releases. Do this manually by adding other .NET versions to a configuration file: On the Visual Studio menu bar: Choose Project; Add New Item;...

The name 'Thread' does not exist in the current context

c#,visual-studio-2013,namespaces

I assume this is a Portable Class Library or Windows Store/Phone project targeting Windows Runtime which does not have such a construct. An alternative and recommended way would be to use: await Task.Delay(TimeSpan.FromSeconds(2)); or for a blocking call in case you are not in an async context: Task.Delay(TimeSpan.FromSeconds(2)).Wait(); Similar issue...

New Automatic NuGet package resotore and NuGet.Config

.net,visual-studio-2013,msbuild,nuget,nuget-package-restore

I would keep the NuGet.Config file since you are using it to change the default packages directory. You can delete the NuGet.exe and NuGet.targets file from the .nuget directory and remove the Import in your project files that refers to NuGet.targets....

Cannot add new shared dataset to report

visual-studio-2013,reporting-services,sql-server-2008-r2,ssrs-2008-r2

The most likely reason for this error is that your stored procedure returns a table which has duplicated field names. Just double check that all the field names are unique, and it should work....

INSERT SQL Updatable Query using proper MS Access cmd Command

c#,sql,visual-studio-2013,sql-insert,ms-access-2013

You INSERT SQL statement contains a syntax error: string cb = "insert Into Salcmd = new sqles(InvoiceNo,InvoiceDate,CustomerID,SubTotal,VATPercentage,VATAmount,GrandTotal,TotalPayment,PaymentDue,Remarks) VALUES ('" + txtInvoiceNo.Text + "',#" + dtpInvoiceDate.Text + "#,'" + txtCustomerID.Text + "'," + txtSubTotal.Text + "," + txtTaxPer.Text + "," + txtTaxAmt.Text + "," + txtTotal.Text + "," + txtTotalPayment.Text +...

Method declared with dynamic input parameter and object as return type in fact returns dynamic

c#,.net,dynamic,visual-studio-2013

The problem is that you're calling a method with a dynamic argument. That means it's bound dynamically, and the return type is deemed to be dynamic. All you need to do is not do that: object dObj = "123"; var obj = Convert(dObj); Then the Convert call will be statically...

Searching user tasks by task.body text

c#,visual-studio-2013,vsto,outlook-addin

Why not use the user properties (TaksItem.UserPropertiers.Add)? If the user fields is added to the folder fields, you can search for that property using Items.Find/FindNext/Restrict.

Proget Server Up but Feed Inaccessible in Visual Studio

visual-studio,visual-studio-2013,nuget,proget

This was corrected by clearing the value in the ODataBaseUrl in Advanced Settings. Upon doing this, the API Endpoint URL changed to what it should be- a fully qualified URL rather than a strange string.

C# Obtaining Namespace Based on CSProj settings

c#,.net,c#-4.0,visual-studio-2013,namespaces

No, there is no way to use the "Default Namespace" from within source code. It is used by the boilerplate T4 templates to automagically prepare new files, but it is a Visual Studio parameter and not an actual property of the code. As you said, this can be done with...

Debug Excel VSTO add-in when launched by double-clicking existing file

excel,debugging,visual-studio-2013,vsto

Try to use any logging mechanisms to log any action in the code. Thus, you will be able to find what is going on in the code at runtime. For example, you can write actions to the log file. You may find the log4net library helpful.

Changing the launch directory of executable in MSVC

c++,c,visual-c++,visual-studio-2013

Go to project properties, Debugging sheet and set 'Working directory' accordingly

TF400889 Long path error received from TFS

visual-studio-2013,tfs,tfvc

Not sure if you're even using the data binding features which the .datasource file is generated for, but turning that off in your service reference configuration by manually editing the .svcmap file would solve your problem. After editing make sure you use the Update Reference feature to get rid of...

Trouble with LINQ query and XML elements

visual-studio,visual-studio-2013

I figured out my problem, I resolved my issues with the following code: Dim query = From st In States.Descendants("state") Let stateName = st.<name>.Value Let length = stateName.Length Order By length Descending Select stateName For Each item In query If item.Length > 10 Then output.Items.Add(item) End If Next ...

Visual Studios building and debugging .cpp file without main()

c++,assembly,visual-studio-2013

Your code does have a main function, which is required for it to work. As you said the debugger returned a 'missing executable' error, I'm assuming you didn't compile the code, or if so, got some errors which can be found in the output and error windows. If you're working...

VS2013 Error: LNK2019 When trying to build ZeroMQ server

c++,visual-studio-2013,zeromq

According to the library names on zeromq.org, you are trying to link the same library twice: first with the release version, and then with the debug versions. Remove libzmq-v120-mt-gd-4_0_4.lib from your Release configuration, and remove libzmq-v120-mt-4_0_4.lib from your Debug configuration....

Visual Studio Ctrl + F search freezes when including a '(' character

visual-studio,visual-studio-2013

Do you have regular expression searches on? ( is a meta-character for regexes and, on its own, is an invalid regex. Visual Studio is waiting for enough input for a valid regex to search with....

Branching Refresh in Visual Studio in TFS Online using Git

git,visual-studio-2013,visual-studio-online,tfs2013

Make sure your fellow developper fetches commits from the team first. Then he/she can create a local branch tracking that new remote branch. See "Visual Studio 2013 git, only Master branch listed" ...

visual studio 2013 - how to match specific line with regex?

regex,visual-studio-2013

To match a # followed by whitespace and then number, use: /^\#[\ \t]+\d+.*$/gm You might need global and multi-line modifier. Using \s should be avoided as it matches \n and \r too. This will match all those lines that start with # followed by whitespace and number....

How can I add a .props file to a C# project?

azure,visual-studio-2013,azure-webjobs

From my understanding in this article it is enough that you add a new text och xml file and name it WebJobs.props. Look also at the screenshot explaining how you should edit it. Here is a different example of this file. https://github.com/davidebbo-test/WebAppWithWebJobsVS/commit/15e7579075312d620fe42a8746503ba82adf5305

VIsual Studio: Deleting SUO file causes vs2013 to hang?

visual-studio,visual-studio-2013,suo

Try to disable your network adapter. In some cases the issue comes from vs2013 trying to connect with your Microsoft username on load. I hope it address your issue....

unit test on exception

c#,unit-testing,visual-studio-2013

You could wrap your unit test in a try catch, and put a debug point in the catch, so you can see it happening, and easily debug it: [TestMethod] [ExpectedException(typeof(Exception), "Movie Title is mandatory")] public void Create() { var mc = new MoviesController(); var model = new Movie { Cast...

Cannot find XAML element names in code behind on Release

c#,wpf,xaml,visual-studio-2013

After all the error was my own. I had a third party dll in the solution directly referenced from the Debug folder. Even though the CopyLocal was set to True the dll was not automatically copied in the Release folder. Now I've moved the dll in the Resources folder and...

Unsupported format of the sourcemap while loading jquery-migrate.min.js

jquery,visual-studio-2013,source-maps,jquery-migrate

The jquery-migrate.min.js.map is there so you can debug the jquery minified library. It needs to be there for development purpose but for production you don't need that whole line. I dont know why they have included that line in the js. You can just safely delete that whole line. I...

Visual Studio 2013 Build Error: Incompatible versions of SQL Server Data Tools and database runtime components are installed on this computer

sql-server,visual-studio-2012,visual-studio-2013,ssdt

To resolve this issue you have to make sure you are using MSBuild 12.0 which comes with Visual Studio 2013 not MSBuild 4.0 which ships with the .Net 4.0 framework. Make sure your path does not include the .Net 4.0 framework and then add MSBuild 12.0 to your path like...

How to stop visual studio generate typescript js and js.map files while publishing

visual-studio-2013,configuration,typescript,publishing

However while publishing my project, it still generates js and js.map file foreach .ts files. You probably have different config for debug and release. Make them the same....

Visual Studio C# Unit Tests

c#,unit-testing,visual-studio-2013

BankCS.BankAccount.BankAccount() is inaccessible due to its protection level If the constructor isn't public then you can't access it from outside the class. This is true of all C# code (and pretty much object oriented code in general), nothing to do with unit tests. If you want to create a...

New Instance of TCPClient Exception [duplicate]

c#,winforms,visual-studio-2013,tcpclient,invalidargumentexception

You will get that error if your codes are placed on a network drive. Moving your code to local machine will solve the problem.

DropDown in datagridView

c#,visual-studio-2013,datagridview,combobox,ssms

thank you! i found the answer public Form1() { InitializeComponent(); load_input_table(); load_output_table(); dataGridView1.EditingControlShowing += new DataGridViewEditingControlShowingEventHandler(dataGridView1_EditingControlShowing); } static String conn = @"Data Source=SUMEET-PC\MSSQLSERVER1;Initial Catalog=EMIDS;Integrated Security=True"; SqlConnection connection = new SqlConnection(conn); DataGridViewComboBoxColumn inputtablecombobox = new DataGridViewComboBoxColumn(); private void load_input_table() { String sql = "select * from...

MongoDB and Express: Type Error: Converting Circular structure to JSON

javascript,node.js,mongodb,visual-studio-2013,express-4

For those of you, who encounter the similar problem, find() doesn't return the document, we need to use toArray to retrieve documents. Following code did the trick: router.get('/myRecords', function (req, res) { var db = req.db; db.open(function (err, db) { // <------everything wrapped inside this function db.collection('myCollection', function (err, collection)...

Adding WCF Services / Project Templates in Visual Studio Pro 2013?

c#,wcf,visual-studio-2013,sharepoint-2010

I see it in my VS 2013 using File -> New -> Website and then choosing WCF like below: ...

How do I show tasks from only one project in a solution in Visual Studio 2013?

visual-studio-2013

VS2103 doesn't contain this functionally and some people requested this feature in MSDN VS blog. You can extend VS2013 with Resharper that has a nice ToDo explorer. Have a look here: http://www.jetbrains.com/resharper/webhelp80/Reference__Windows__To-do_Explorer.html You can group your TODOs by namespaces or projects for example... Let me know if that supports you...

Enable all LinkLabel controls

vb.net,visual-studio-2013,linklabel

You can test if a control is a LinkLabel using this code: For Each ctrl as Control In Me.Controls If TypeOf ctrl Is LinkLabel Then ctrl.Enabled = True Next ctrl If you put your LinkLabel in a container (such as Panel or TableLayoutPanel) you can use a function like this:...

VS 2013 Ultimate, KB2829760 error on update 4

visual-studio-2013,failed-installation

I checked your log and I find the following: Error 0x80091007: Hash mismatch for path: C:\ProgramData\Package Cache.unverified\Preparation_Uninstall_vsupdate_KB2829760, expected: 99574152B1D10D8518E3AFF5FFD4C5A0728238AF, actual: 3F5C631F9622CD4062BE85385E22D981BDEC5C46 Please check the following MSDN link to solve the issue: http://blogs.msdn.com/b/heaths/archive/2014/05/01/incorrect-hash-value-when-installing-visual-studio-2013-update-2.aspx Let me know if that help you....

Visual Studio 2013 closes

visual-studio,visual-studio-2013

Everything is ok with your Visual Studio. It is an expectable behaviour of your program. First, you need to understand that Visual Studio doesn't somehow affect the process of program execution after it has been compiled and run. It shouldn't "pause the program" in the end of execution itself. So,...

Get the path of the active document in Visual Studio

c#,visual-studio,visual-studio-2013,vspackage

So I solved my problem by this: DTE dtr = (DTE)GetService(typeof(DTE)); string filePath = dte.ActiveDocument.FullName; I also tried DTE2: EnvDTE80.DTE2.dte2; dte2 = (ENVDTE80.DTE2)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.12.0"); string filePath = dte2.ActivaDocument.FullName; NOTE: When using DTE I get the current document in the Main Visual Studio (when running the code, another Visual Studio will be...

Convert SSIS (Visual Studio 2013) to work on SSIS 2012

visual-studio-2013,ssis,sql-server-2012

The short and long answer, unfortunately, is no. If you want to develop SSIS/SSDT for SQL Server 2012, you must use the Visual Studio environment that came with 2012. Here's the long version of the background info. To build SSDT packages for SQL Server 2012, you actually use Visual Studio...

HTTP Error 403.14

asp.net-mvc,visual-studio-2013

Stilly! There is a refactor bug in VS that changes the routes as well! My default route was changed to the following and I had to rename name to id and everything is working fine! routes.MapRoute( name: "Default", url: "{controller}/{action}/{name}", defaults: new { controller = "Home", action = "Index", id...

Using/abusing a conditional breakpoint to manipulate a value

.net,visual-studio-2013,visual-studio-debugging

My question seems to be related: Why does the debugger's breakpoint condition allow an assignment-statement as bool-condition? It seems that this bug(in my opinion the debugger should not allow side effects from a breakpoint condition) was fixed in VS2013. You have to change the setting if you want that side-effect:...

OData Endpoint with .NET

c#,asp.net,visual-studio-2013,odata,web-api

Check your assembly bindings in the web.config. You might need something like this (or you might have to remove one). Ensure that any bindings are pointing to the assemblies existing in your bin folder. <dependentAssembly> <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /> </dependentAssembly> Also, Update NuGet packages to...

Redirect Visual Studio to new TFS Location

visual-studio-2013,tfs

You have to connect to the new TFS from Team, Connect to Team Foundation Server menu.

How to convert the date value taken from the date time picker to the Date column in SQL Server table in Visual C#?

c#,visual-studio-2013

Can't see what datatype of dob. If it is a date you can use the following to avoid date format issues in SQL Server: dob.ToString("yyyy-MM-dd") It's a more generic format that can't be misinterpreted since it's always obvious which is the month and which the day, despite of en-US setting...

Possible .NET Issue - Exception Thrown in C# Code [duplicate]

tcp,.net,c#,visual-studio-2013

With help from those in Stack Overflow, I have located the fix to my problem. See: Answer to Issue The problem was simple. I had my files stored on a network drive location. I moved these files to the documents folder and stored them locally and the problem was resolved....

ASP.Net Registration Page - how to get foreign key from another table

asp.net,visual-studio-2013

Sql thinks your email is a field, because you don't have quotes before and after String userQueryStr = "SELECT UserAccountID FROM UserAccounts WHERE Username = '" + Email.Text+"'"; ...

RichTextbox write in place to current line

c#,text,visual-studio-2013,richtextbox

You could try something like this (rtb is your RichTextBox variable) // Get the index of the last line in the richtextbox int idx = rtb.Lines.Length - 1; // Find the first char position of that line inside the text buffer int first = rtb.GetFirstCharIndexFromLine(idx); // Get the line length...

Team Foundation Server Change Source Control Invalid Status

visual-studio-2013,tfs,disaster-recovery,tfvc

This is easiest solved by: Creating a new workspace, make sure it's a local workspace, on a new location. Get the same version that is your base version using Get Specific Version Deleting its contents (while retaining the tf$ folder) Pasting your old solution with updates over the one you...

Visual Studio 2013 C# compile with /main

c#,visual-studio-2013

You obviously want to write a ConsoleApplication. You picked WpfApplication. Copy your whole code, create a new project based on ConsoleApplication and paste your code there. And try to get rid of the gotos, it's not BASIC. You could easily make a single function for all your three uses....

Checkin changes to another branch then we're currently working on

visual-studio-2013,tfs,tfs2013

This is not possible by default using Visual Studio, but when you shelve your changes into a shelveset you can move that one to the other branche by using the TFS power tools. The command you need is: tfpt unshelve shelvsetName /migrate /source:$/SourceBranch /target:$/TargetBranch You can find the TFS Power...

published reports don't work - Database logon failed Error

c#,iis,visual-studio-2013,crystal-reports,db2

In my case the problem was that on IIS Application Pools/ my web app/ Advanced Settings the 32 bit Applications was disable and I wasn't including on my project the folder aspnet_client where crystal run-times files are storage, so the time I was publishing the app, those files wren't transferred....

When I type static, Visual Studio replaces it with ContextStaticAttribute [closed]

c#,visual-studio-2013

I just figured out how you did this by typing static inside a method. Variables in a method cannot be static, only class level elements can. Simply declare those variables inside the class, not a method. Example: namespace ConsoleApplication2 { class Program { static string username; // Correct private static...

Get date Minus 1 day but at exacty 4 AM

sql-server,visual-studio-2013

Try this: WHERE DateCreated >= dateadd(d, datediff(d, 1, getdate()), '04:00') ...

How can i import windows.media.capture in my WPF project?

c#,wpf,visual-studio-2013,windows-8.1,windows-7-x64

Finally I've done developing app for windows 8.1 Table in Windows 7 x64 and want to share some experience that i had in here. Steps : Edit .csproject in wpf app (Add <TargetPlatformVersion>8.1</TargetPlatformVersion> Inside <PropertyGroup> ) Add "Windows" library Reference Load some .Net Framework 4 Library (System.Runtime.dll,System.Runtime.WindowsRuntime.dll, System.Runtime.InteropServices.WindowsRuntime.dll,System.Threading and System.Threading.Task...