visual-studio-2012

Primary key in datagrid is always zero

吃可爱长大的小学妹 提交于 2019-12-12 21:02:29
问题 We are developing WPF application using entity framework (DB First) in VS2012. We are experiencing a problem in datagrid view. We dragged a datagrid from data sources which created a datagrid bound to that particular table. The table has two columns, one is transporterID which is PK and is autogenerated. The other is transportername. The problem is when we run the application, it displays data in data grid but primary key field is always zero. It should be auto increment. The google search

Aurelia npm install: tons of “gyp ERR”

纵然是瞬间 提交于 2019-12-12 20:45:01
问题 These types of questions are a dime a dozen, and I've gone through resource after resource but nothing seems to work: https://github.com/nodejs/node-gyp/issues/629 NodeJS - Error installing with NPM http://blog.jimdhughes.com/2015/04/09/perils-with-node-gyp-and-windows-development/ Here's the deal, I'm pretty new to NodeJS and Aurelia, however my ancedotal experience is that with the advent of the recent front-end revolution and with all of its tooling, folks really made things look

“Attach to Process” instead of “Local Windows Debugger”

雨燕双飞 提交于 2019-12-12 20:26:46
问题 I updated my version of Visual Studio Express 2012 and now I get "Attach to Process" instead of the "Local Windows Debugger" option which I had previously. So I can no longer run/debug my project. How can I resolve this? 回答1: Simple solution to this problem is - to exit Visual studio. Make sure the *.SLN points to the proper project location And then delete the "obj" folder from the file explorer. Restart VS. 回答2: Go to %appdata% and delete the visual studios folder 来源: https://stackoverflow

Selenium Parallel testing with extension methods

天涯浪子 提交于 2019-12-12 19:52:01
问题 I have configured tests to run in parallel in Selenium with Nunit which works fine but I'm not sure how to add a custom method into the mix without a second instance of the browser opening and breaking the test. I have the Base: namespace ParallelTests { public class Base { public IWebDriver Driver { get; set; } } } ...and the Hooks: public class Hooks : Base { public Hooks() { Driver = new ChromeDriver(@"D:\Data\user\Documents\Visual Studio 2012\Projects\ParallelTests\ParallelTests\bin"); }

Visual Studio cannot load type from global.asax

≡放荡痞女 提交于 2019-12-12 19:42:29
问题 I know this issue has been raised before, but the solutions available have not resolved my problem. I have a global.asax file that I did not write, in my solution. The namespace and class from the cs file match the inheritance namespace and class. What caused the issue was something simple: I excluded a directory from the solution, then re-included it. Since then, the error below occurs when I attempt to build my solution: Server Error in '/' Application. Parser Error Description: An error

Application works if installed from PC, but crashes if installed from store (WinPhone 7.5)

一世执手 提交于 2019-12-12 19:40:57
问题 I have a project that runs on Windows Phone 8 and Windows Phone 7.5. It works fine on 8 devices in all cases, but on Windows Phone 7.5 it crashes on startup with following message (only if installed from store): If the application is built on PC and uploaded to device it works fine. I tried numerous things but nothing helped. 回答1: Looks like it was a store issue. Should be resolved now. Issue with 7.1 XAP submissions between Dec 04 and Dec 12 (Beta and Non-beta apps) 回答2: Well, my assumption

Platform Toolset change on VS 2015

社会主义新天地 提交于 2019-12-12 19:28:17
问题 I need to do some Assembly coding on VS 2015 and for it I need to use an include file that uses certain C functions. The file worked perfectly on VS 2012 and 2013, but due to some library changes on VS 2015 (as far as I understand), it gives an error on the linking process. So, I was advised to set my Platform Toolset back to VS 2012 or lower, but the only ones that appear on the changing menu are the 2015 ones. I tried to download and install the said toolkits, but even then they don't

debugging javascript in VS 2012 - localhost cache has old code

不羁的心 提交于 2019-12-12 19:17:22
问题 I am starting to build a PhoneGap app and decided to use VS2012 as an editor/debugger because Eclipse & XCode don't do javascript debugging (or do they, maybe I missed something) and VS2012 has intellisense for js. Having copied all the html and js files into a VS2012 project, the code ran fine. But then I made an edit, and the debugger won't now stop at a breakpoint on the edited line - there is an error message " adifferent version of this script file has been loaded by the debug process" .

Create a Window in a Visual Studio 2012 console application?

女生的网名这么多〃 提交于 2019-12-12 18:32:58
问题 Is there a way to create a Window in a C++ Console Application? I have already a console application for creating some data and I want to show them in some graphics, but not inside the console. Is this possible? 回答1: You use a function called CreateWindowEx(), See here. It's rather complex, you need to create a WNDCLASSEX structure and use RegisterClassEx() on it before passing it as a parameter to CreateWindowEx(). You also need to create Message Procedure function. This article on MSDN runs

Why is my control not accessible in codebehind?

懵懂的女人 提交于 2019-12-12 18:28:23
问题 When I create a WPF application in VS 2010 and place a button in Grid I can access the control from C# code. I have the button class instance variable with the same name as in XAML "name" field. But I can't see the instance of the control when I create a WPF project using VS 2012 RC. What can be the problem ? Is there any default project settings difference between VS 2010 and 2012 ? 回答1: If you're talking about codebehind then you should be able to access to the button without declaring it