visual-studio-2012

Switched to VS 2012 and now form doesnt resize properly?

偶尔善良 提交于 2019-12-29 07:47:12
问题 I switched to VS 2012 yesterday from VS 2010 and all seemed to go well except this. I have a button on my form that when pressed extends the width of the form to show additional controls. Press the button again and it reduces the width to hide those controls. Now all of this worked great in VS 2010 and also works fine when I debug in VS 2012 but as soon as I publish or compile the project and open the .exe when you click on the button it adds like 5 to the width instead of the 100+ it needs

ASP.Net error - type is not compatible with the type of control

萝らか妹 提交于 2019-12-29 07:42:31
问题 I have a web site i created using VS2012 web edition, Running a VB.net asp web site, In the VS2012 debug/release mode it compiles and everything works good, When i upload it to a server (Windows server 2008 R2) I get the following error: The base class includes the field 'html', but its type (System.Web.UI.HtmlControls.HtmlElement) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlGenericControl). Line 2: Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Visual Studio does not allow breakpoints in MVC views

心不动则不痛 提交于 2019-12-29 07:35:09
问题 Sometimes Visual Studio does not allow me to set breakpoints in MVC views. This has happened to me scores of times, but it doesn't happen for every view and I don't know why. When you click on the left-hand bar to place a breakpoint, it places a white circle instead of the normal red circle. The message when you hover over it is "The breakpoint will not currently be hit. The source code is different from the original version." It goes on to describe how to allow breakpoints to be hit, but

Unable to start debugging - Visual Studio 2012

浪尽此生 提交于 2019-12-29 06:48:13
问题 "Unable to start debugging 'C:\Windows\System32\WWAHost.exe'. The Microsoft Visual Studio Remote Debugging Monitor (MSVSMON.EXE) does not appear to be running on the remote computer. This may be because a firewall is preventing communication to the remote computer. Please see Help for assistance on configuring remote debugging." Searched for similar posts, but didn't found one. If duplicate just inform. I am not trying to connect to any remote machine. Just testing on my local machine. Is

Fixing the “MSVCP110D.dll is missing from your computer” issue

↘锁芯ラ 提交于 2019-12-29 06:46:16
问题 I am facing the following (fairly common) problem: I am running my program in Debug mode in VS2010 and/or VS2012, but at startup it crashes, saying: The programme can't start because MSVCP100D.dll is missing from your computer. Try reinstalling the program to fix this problem. Now I found a number of possible solutions, but none of them work for me: Compile with /MTd instead of /MDd : actually this does solve the problem, but I am not allowed to: my program is part of a bigger program, and

Any CPU - Prefer 32 bit

筅森魡賤 提交于 2019-12-29 06:39:08
问题 What does the Any CPU - Prefer 32 bit option do? While I am aware that WinRT can not handle exe and can only run Windows Store apps, there are several questions exist on StackOverflow that ask the same question and both reference this blog that says: In .NET 4.5 and Visual Studio 11 the cheese has been moved. The default for most .NET projects is again AnyCPU, but there is more than one meaning to AnyCPU now. There is an additional sub-type of AnyCPU, “Any CPU 32-bit preferred”, which is the

Unresolved externals when compiling unit tests for Visual C++ 2012

那年仲夏 提交于 2019-12-29 05:46:06
问题 I want to create unit tests for a Visual C++ project. I tried following these MSDN instructions. I've found pages where they differentiate between unmanaged/mixed/pure code, but I don't fully understand those concepts. My code doesn't use .NET and would likely compile under MinGW with a few code adjustments. My main project builds an executable, so I followed the steps under To reference exported functions from the test project . For starters I got different project options: I went with

Visual Studio TypeScript Options

左心房为你撑大大i 提交于 2019-12-29 04:40:09
问题 How do I tell the TypeScript compiler to generate amd modules (--module amd) from within Visual Studio. Thanks. 回答1: In your project file you will need to change the MSBuild target that is building TypeScript files. If you are using the default template for "HTML Application built with TypeScript", unload your project, edit the project file, you will find a target called "BeforeBuild" that is calling the compiler at "$(PROGRAMFILES)\Microsoft SDKs\TypeScript\0.8.0.0\tsc", add --module amd to

ASP.Net Inproc session restarted after markup change in VS2012

夙愿已清 提交于 2019-12-29 04:37:21
问题 I upgraded my development machine to Windows 8 and Visual Studio 2012. I'm testing my ASP.Net applications (also upgraded to .net 4.5) on a local IIS. One thing that is annoying me, that hasn't been this way with my last configuration (Windows 7, VS 2010, .net 4.0), is that InProc-sessions are being restarted after changes in markup files. Example: I'm logged into my local ASP.net application, make and save changes in a *.ascx file, refresh my webbrowser and the session is gone. How do I turn

Visual studio compiles fine but still shows red lines

僤鯓⒐⒋嵵緔 提交于 2019-12-29 03:11:29
问题 I am using VS 2012 and it was working all fine until I started observing some funny behavior. When I open my code it shows red Underlines which we usually see when there is an error in our code. Surprisingly, code compiles all fine. I have made following observations that are not normal at all. Red Underlines in the code While cleaning or building the solution no error. red Underlines go away for some time after I build/clean the solution but comes back eventually. Because of this my