visual-studio-2010

Attach to process in VS2010 express using a web site. Is it possible?

為{幸葍}努か 提交于 2020-01-01 04:46:10
问题 I have read this article but it applies to web projects with a .csproj... What about a 'web site'? http://www.ninjatrader.com/support/forum/showthread.php?t=15671 People at work here tell me to just response.write my way to debug the web sites but I really miss the attach to process that is in the professional edition of vs2010.. or maybe I have to get used to response.write debugging? (Reason I am not debugging is ektron 8.0 does not compile is vs2010.. so I must attach to process.. or use

C++/CLI Missing MSVCR90.DLL

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 04:41:08
问题 I have a c++/cli dll that I load at runtime and which works great in debug mode. If I try and load the dll in release mode it fails to load stating that one or more dependencies are missing. If I run depends against it I am missing MSVCR90.DLL from MSVCM90.DLL. If I check the debug version of the dll it also has the missing dependency, but against the debug (D) version. I have made sure debug/release embed the manifest file. I read something about there being issues with the app loading the

MSBuild: How to build web deploy package for Web Deployment Projects (VS2010)?

混江龙づ霸主 提交于 2020-01-01 04:40:28
问题 I migrated a Web Site project (with Web Deployment project) from VS2008 to VS2010. Now I can make "Build Deployment Package" for Web Deployment Project in VS2010 and it works great! But I can't find a way how to do the same via MSBuild. 回答1: I answer on my one question. So after a lot of googling and 2 days of investigation it finally works. Brief how to: I created Configuration = QA (based on Debug configuration) for Solution via Configuration Manager. Important: I removed 'Platform'

HTML5 Javascript API Intellisense support in visual studio

a 夏天 提交于 2020-01-01 04:34:04
问题 I started playing with HTML5/CSS3 and the new JavaScript API something i noticed in VS 2010 is it doesn't have any support for the new JavaScript API i was wondering if there is anything i can do about it so in Vs2010 if i type : var canvas = document.getElementById('diagonal'); var context = canvas.getContext('2d'); i don't get any intellisense for the "getContext" method etc.. i dont wanna write the code and compile and pray it works. any idea how can i enable intellisense for new

Visual Studio 2010 intellisense colors

喜欢而已 提交于 2020-01-01 04:16:07
问题 Is it possible to change the color of intellisense in Visual Studio 2010. As you can see in this screen shot. Its virtualy impossible to see the types of the parameters because they're displyed with a white foreground colour on a grey background. 回答1: Success at last. If you install the Productivity Power Tools addin (http://visualstudiogallery.msdn.microsoft.com/en-us/d0d33361-18e2-46c0-8ff2-4adea1e34fef) From version 10.0.10819.19 onwards you get a new option. Namely Colorized Parameter

Cannot add a MVC controller VS2012 gives “object reference not set to an instance of an object”

烈酒焚心 提交于 2020-01-01 04:07:48
问题 I have searched extensively and cannot find another person on the planet with this problem... The symptoms are: In Visual Studio 2012, on a MVC 4.0 Project that was upgraded from VS2010 and is configured for dual version editing from VS2012 and VS2010. When I right-click on the Controllers Folder and select Add->Controller... from the context menu, I get an "Object reference not set to an instance of an object" error from Visual Studio. The existing code in the project runs fine, and if I use

Cannot add a MVC controller VS2012 gives “object reference not set to an instance of an object”

北城余情 提交于 2020-01-01 04:07:08
问题 I have searched extensively and cannot find another person on the planet with this problem... The symptoms are: In Visual Studio 2012, on a MVC 4.0 Project that was upgraded from VS2010 and is configured for dual version editing from VS2012 and VS2010. When I right-click on the Controllers Folder and select Add->Controller... from the context menu, I get an "Object reference not set to an instance of an object" error from Visual Studio. The existing code in the project runs fine, and if I use

Is my Visual Studio project a web application or a web site?

两盒软妹~` 提交于 2020-01-01 04:04:49
问题 First of all, when to use what and the overall differences between them has already been answered before. But I couldn't find an answer to this question: Where can I check if my Visual Studio project is a Web Application or a Web Site? 回答1: Personally, one tell tale sign for me is whether the project folder actually contains a project file, or not. You can see the icons differ slightly in VS - a web application has a layered world->docs->language icon and a web site just consists of world-

Is it bad practice to store SQL queries in resource file?

寵の児 提交于 2020-01-01 04:04:09
问题 I have a web application that communicates with SQL server. Rather than hard-coding all of the query strings, I have opted to store them in a global resource file. Is that considered bad practice? On a side note, when I do this, Visual Studio yells at me about the possibility of SQL injection, despite those queries being parameterized (not to mention the "spelling" warnings inside the resource file). 回答1: Practices fall into a range (e.g. Avoid , Prefer , Use , etc.) and depend on context. If

How to download file with asp.net on buttton's onClick event?

风流意气都作罢 提交于 2020-01-01 03:36:07
问题 I have a String variable (in C#) that contain the full path of PDF file on my server (like that "~/doc/help.pdf"). I want that in click on button, this file will download to the client computer. I created a button and made onClick event in C#. Now, which code should I write to do that? 回答1: I think you are looking for something like this. private void Button1_click(object sender, System.EventArgs e) { Response.ContentType = "Application/pdf"; Response.AppendHeader("Content-Disposition",