visual-studio

How to cope with "the application has failed to start because its side-by-side configuration is incorrect" error in vmware?

Hi all, When I try to open released .exe file (which I wrote in Visual Studio 2008) in VMWare Workstation 6.5 with Windows Server 2008 32bit OS, got "The application has failed to start because its side-by-side configuration is incorrect." error all time even if the code is; #include <stdio.h> int main () { printf ("HELLO\n"); r...

Best Practice for storing settings for a .NET Windows Service: Service Property Settings, Serialization, ...

I am working on a .NET Windows Service where I am trying to store settings that will be used when the service is started and while it is running. I have searched through posts on SO and found that using the Settings in the properties of the project is great for use with console and winforms applications. However, Google and SO are sile...

ReSharper: "Go To Declaration in .NET Reflector"

Do you know of a ReSharper 5.1 plugin that allows me to go to the declaration of a class or member that I do not have the source code for using .NET Reflector? Usually Reflector itself has this feature already (rightclick-> "Open in .NET Reflector") but unfortunately this feature does not work with resharper. The explanation for this ca...

Can I use the VS 2010 SDK to create add ons for VS 2008?

I'd like to create an add-on for Visual Studio 2008, but am finding more examples and sample code for VS2010 SDK. Is it possible to build an add-on with VS2010 SDK and target VS2008? If not, are there any good sites for VS2008 add-on dev? Google searches seem to all lead to http://msdn.microsoft.com/en-us/vstudio/, which is focused on VS...

Visual Studio installer project - adding another step to the uninstaller

I have a Visual Studio setup project where I need to add another step to the uninstaller for displaying some important info to the user. This needs to be done before the anything gets removed. From within VS itself, it only seems possible to add new dialogs to the installation process. How do I go about adding new dialogs to the uninst...

Cannot test WCF service in Visual Studio. "There was no endpoint listening."

I am attempting to test a WCF web service I'm developing by accessing it using a Winforms client in Visual Studio. The WCF service is being hosted by the Visual Studio ASP.NET development server, and I can see it when I access it via my web browser (it gives me the "You've created a service." page). However, when I attempt to connect to ...

ASP.NET Multiple controls with the same ID

I am trying to dynamically add some control in an asp.net page. It gets rendered fin, after clicking a button which causes postback I get the following error [HttpException (0x80004005): Multiple controls with the same ID 'ParentTextBox_ChildTextBox_TV_PostRender' were found. FindControl requires that controls have unique IDs.] Sys...

View address location of a variable in visual studio

Hello Guys, I am just wondering if there is any option in visual studio watch window to show the variable address locations like 0x00 or some other way? I am asking this because I would like to better understand how thing work in the low level. Thank you, Krishna. ...

Visual Studio Command

There is a way after you "Go to Definition" to push a hotkey to bring you back to where you were last at. There is another one to bring you back to the definition. It is not limited to "Go to Definition" though. I helps you trace your path through code. I use to use it but after a few month stint away from programming I seem to have fo...

Setting FILE_ATTRIBUTE_DEVICE in Visual Studio

Hello, I would like to know whether it is possible to call a CreateFile Function in Visual C++ to create a file with attribute FILE_ATTRIBUTE_DEVICE (0x00000040 hex, 64 decimal). According to the MSDN API, FILE_ATTRIBUTE_DEVICE is reserved and therefore I cannot use it, but I know there must be some way to create a file with such attrib...

How do you find out which solutions in your svn have a reference to a specific project

There are many visual studio solutions on our company svn, with different teams working on different areas. Some of our projects are re-useable library projects. The problem comes when someone makes a breaking change in a library project that is part of a specific solution..... How does that person know what other solutions will possib...

how to use cmake to generate visual studio at specified build directory.

I have cmake 2.8.2. and a project with directory like this: In the repository, I have bin directory to store built binary files. I can generate visual studio solution files in bin folder without any problem with cmake-gui. But I'd like to generate solution file using the command line version of cmake. I tried cmake -G "Visual Studio 9 2...

panel mouse scrolling event

am using c# vs-2005 i have generated textbox one by one on enterkey press event which are on panel and also i have set vertical scrollbar and autoscroll property set true. The vertical scroll works fine on enter keypress event but mouse scrolling not work its mix up textbox change align and else more. the problem above is all in mouse...

IDE gets corrupt after debugging in Visual Studio 2003

My solution currently contains 20 projects in total. These are all window applications. But lately after my OS(Windows XP SP3) downloaded updates from Microsoft and after adding just one window form in one of the projects, VS 2003 IDE starts crashing when trying to debug the solution. After crashing VS needs to be reinstall.... ANY a...

finally doesn't seem to execute in C# console application while using F5

int i=0; try{ int j = 10/i; } catch(IOException e){} finally{ Console.WriteLine("In finally"); Console.ReadLine(); } The finally block does not seem to execute when pressing F5 in VS2008. I am using this code in Console Application. ...

I'm getting Invalid expression term ":" error if I use <%:%> with VWD2010 Express

Hello, I'm getting Invalid expression term ":" error if I use <%:%> with VWD2010 Express, which I believe works with .NET4 framework. Only <%= %> or <% = Html.Encode()%> work. Is there any other configuration to apply or VWD2010 doesn't support that syntax? EDIT Here's a sample code I'm using <th><% : Html.LabelFor(x=>x.registrationD...

Breaking single thread

Hello. Is it possible to break a single thread in Visual Studio, while other threads will continue their execution? I have one background thread that does simple data sending/receiving, which I would like to happen, while stepping through my code in some other thread. ...

problem with terminating the running program

i am making a wpf application in which there is a main window. normally when i close the main window the program used to terminate automatically but now it doesn't. altough the window is closed the program still seems to be running in visual studio. how can i fix this simple problem? ...

visual studio windows phone 7 installation error

I try to install latest Visual Studio Windows Phone Beta Tools and I get following error: "Setup could not install the following component: Microsoft .NET Framework 4" Here is the error log: http://pastebin.com/CRumcpsN . I'm running under Windows 7 32bit. What I have to do to install Visual Studio Windows Phone Beta Tools? ...

executing $(ProjectDir).

Where can I execute and findout the value of $(ProjectDir). ...