visual-studio-2012

Visual Studio keeps crashing: Application Error

对着背影说爱祢 提交于 2019-12-17 21:56:36
问题 VS keeps crashing, usually when I want to click on some text I want to edit. When I look in the event log I get; Log Name: Application Source: Application Error Date: 26/03/2013 15:18:30 Event ID: 1000 Task Category: (100) Level: Error Keywords: Classic User: N/A Computer: (removed) Description: Faulting application name: devenv.exe, version: 10.0.40219.1, time stamp: 0x4d5f2a73 Faulting module name: clr.dll, version: 4.0.30319.269, time stamp: 0x4ee9ae83 Exception code: 0xc00000fd Fault

Exceptions when using Xamarin Android

你说的曾经没有我的故事 提交于 2019-12-17 20:47:19
问题 I recently started to learn mobile development using Xamarin Android. I am using VS 2012. I noticed that when I open an android project that all exceptions under Debug -> Exceptions are unchecked. I thought that is the reason that exceptions thrown in code are not shown in a way to which I am used to from desktop development. When I checked the exceptions in Debug->Exceptions window and tried to deploy the solution to the emulator it failed - there were no errors but the application does not

Early Binding of a C# COM library in VBA

半世苍凉 提交于 2019-12-17 20:25:44
问题 Although this is a long question the coding and testing part should be really easy to reproduce. I have created two separate Class Libraries in C# and I think I am running into a name collision problem caused by existing registry keys from my previous projects and trials. Here are my two classes: using System; using System.Runtime.InteropServices; namespace Test { [InterfaceType(ComInterfaceType.InterfaceIsDual), Guid("ED5D264B-1D80-4A5D-9C14-8297D90B7037")] public interface ITest { // body }

Adding references to other projects in Visual Studio 2012

北战南征 提交于 2019-12-17 20:25:23
问题 I have a solution with 4 projects in it. Test.Common Test.Controller (Controllers for the Web project) Test.Data (EntityFramework) Test.Web (MVC4) When I go to add a reference to my Data layer to my Controller project and browse to my Data project's directory, should I be using the dll from the 'bin/Debug' directory or the 'obj' directory? And, does it make a difference? 回答1: Neither. You should add a Project reference (from the Solution section) This will make Visual Studio resolve the

404 errors on bundled jquery css, VS2012 publishing to Azure

China☆狼群 提交于 2019-12-17 19:48:33
问题 I have a web site that uses the jquery datepicker thing (implemented in regular VS2012 MVC4 template). It looks and works fine when running on localhost. But when I publish (to Azure), some of the css is missing. The Chrome dev tools show 404 errors on two css files: http://cyclelog.azurewebsites.net/Content/jquery.ui.base.css http://cyclelog.azurewebsites.net/Content/jquery.ui.theme.css I noticed that there are no such files in my source tree--rather the two files are under ~/Content/themes

visual studio implementation of “move semantics” and “rvalue reference”

余生长醉 提交于 2019-12-17 19:46:52
问题 I came across a Youtube video on c++11 concurrency (part 3) and the following code, which compiles and generates correct result in the video. However, I got a compile error of this code using Visual Studio 2012. The compiler complains about the argument type of toSin(list<double>&&) . If I change the argument type to list<double>& , the code compiled. My question is what is returned from move(list) in the _tmain() , is it a rvalue reference or just a reference? #include "stdafx.h" #include

Linker error LNK2001

て烟熏妆下的殇ゞ 提交于 2019-12-17 19:40:55
问题 When I try to create an object I get a LNK2001 error in Visual Studio, it's a problem with the constructor I think since changing the constructor changes the error. Customer bob("Bob", "25 Bob Lane", "01bob82", "M", "bob/bob/bob"); This line gives this error: Error 1 error LNK2001: unresolved external symbol "public: __thiscall Customer::Customer(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>

how to import Git project to TFS Cloud

与世无争的帅哥 提交于 2019-12-17 19:39:26
问题 I visited our Team Foundation Service page and found a great new feature: New Team Project + Git This is great news. We have Projects in Team Foundation Service AND Git. Not as much because I love Git. I was very impressed with it's functionality, but never comfortable with its interface. That said, Git is an accepted standard for Open Source and I love the idea of being able to admin my Git Repos through TFS. Getting the best of both worlds (I hope). I was able to create a Test Project in

.exe is not a valid Win32 application on Windows XP

ε祈祈猫儿з 提交于 2019-12-17 19:36:19
问题 I'm using Visual Studio 2012 Professional and creating an installer by using Advanced installer (3rd party). When I run the installed .exe on Windows XP, I get the following message: <appName>.exe is not a valid Win32 application. The installed executable works fine on both Windows 7 and 8. How can I get the program to work on Windows XP? 回答1: From the Visual Studio Command Prompt, run this command: Dumpbin.exe /headers c:\where\you\put\it\setup.exe Where "setup.exe" is the setup EXE created

Can't connect to database from file

Deadly 提交于 2019-12-17 19:35:23
问题 I try to connect through: Microsoft SQL Server Database File (SqlClient), but I recieve error: The attempt to attach to the database failed with the following information: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 52 - Unable to locate a Local