visual-studio

Deploying .Net dll via installshield with digital signature, IE won't run it at default security level.

Its been a long saga of deploying my .Net uploader but I'm very close. I created my .Net uploader dll in Visual-Studio, generate an installer for it with InstallShield and digitally sign it (in InstallShield). I then put that CAB file on my server and setup the html page like so: uploader.html: <html> <body> <script src="/include...

stop redirect? watch code in Visual Studio?

I am using Visual Studio to compile and run my ASP.NET website. Now, one of the pages have searchbox acting very odd, because it's redirecting to typical "FileNotFound" page which we're using to redirect when there is a typo in URL or something (and definitely not for searches). The search is a separate .ascx control, so it's exactly t...

Visual Studio Creating Debug File In Release Mode

I asked a similar question a while ago http://stackoverflow.com/questions/1477582/error-creating-debug-information-code-wont-compile but never found a solution. That problem seems to have evolved a bit. Now Visual Studio is creating a PDB debug file even when the application is in Release mode and debugging is turned off in Web.config. ...

recording call stack in Visual Studio

Hi, I'm trying to debug a really large c++/c program in Visual Studio. Changing value of one parameter changes the result dramatically. I want to record a call stacks for both runs and diff them. Does anybody know how to dump a call stack to a file in VS without setting breakpoints and using Select ALL/Copy in the window? Thanks. ...

Opening a file from TFS using the full TFS Path, from a web site

So I have a website running that displays full path of a TFS File on the page somewhere, I want the user to be able to click on it, which should then open up that file from TFS inside their Visual Studio. The command to do this inside Visual Studio is "File.TfsOpenFromSourceControl" (DTE command) - it's basically the user manually going...

How to get Visual Studio Unit Test to copy a file to the tests area? (which works when running/debugging)

Hi, BACKGROUND: I have a sqlite file that is marked as COPY in it's properties. When I debug my WinForms application in VS2008 (or run it) it does the right thing and copy it to the debug/run area. QUESTION: When I run unit tests (using VS2008 unit tests) it is not performing this copy. Anyone know how to get this working? So that m...

visual studio copy to clipboard IDE freezes

this is really frustrating me. this problem occurs when I have a particularly large .cs file (one i'm working on at the moment has 6000 lines and many anonymous types). I will copy a line or a part of text, and sometimes after copying several things to the clipboard, or sometimes even after the first copy, vs CPU usage shoots up to 50% ...

MSVC _open/_close/etc

Why are the API's _open, _close, and other standard file i/o functions prefixed with an underscore? Aren't these part of some standard? ...

visual studio: is it possible to color custom tags in code?

Hello. Is it possible somehow to color specified code in specified color in any version of visual studio? For example, make background of if( VERIFY( ... ) ) green and background of if( ! VERIFY( ... ) ) red? Maybe some addon exists or some version of visual studio has such functionality? ...

can i use visual studio 2008 for a regular asp project

i have taken over an asp project from a friend and he was basically just using notepad++ to develop. I would like to use visual studio 2008 but there is no project file or solution file at this point, just a bunch of asp pages and some images, css the other trick is that he will still be developing for a bit but doesn't want to use VS....

Visual Studio regular expression for finding commented blocks of code

I am beginning work on a large Visual Studio solution, and have come across areas that have large blocks of commented-out code. The blocks are usually more than 3 lines in length, and all start with // (probably Ctrl+K,C was used to comment these out). I would like to try to find out all the places these exist in my solution so our tea...

When did I last 'Get Latest' from TFS?

I have some version of code on my machine. I want to set up a second machine with the same version of code so I can pull down a shelveset based off this version. However, I didn't write down the day/time I last did get latest on my machine. To get the right version, I need to know when exactly I last did 'get latest' on my machine. I...

Using the Visual Studio XML Editor on RDL files

When using Visual Studio to edit Reporting Services *.rdl files, the default designer used is from the "Microsoft SQL Server Reporting Services Designers" installed product. When viewing the RDL code, this code is displayed as plain text and I want to take advantage of the XML Editor in visual studio. Linking the *.rdl extension to the...

Visual Studio Debugging is not attaching to WebDev.WebServer.EXE

I have a solution with many projects. On Debug, I have three web projects that I want to start up on their own Cassini ASP.NET Web Development servers. In the Solution Properties - Common Properties - Startup Project, I have Multiple startup projects chosen with the three web applications' Action set to Start. All three web development s...

use of extern methods between dll projects?

I have a debug condition to manage memory where I have extern void* operator new(unsigned int size, const char* file, int line); extern void operator delete(void* address, const char* file, int line); extern void Delete(void* address); #define FUN_NEW new(__FILE__, __LINE__) #define FUN_DELETE delete This exists in...

How to prevent Error List Window from showing up within Visual Studio ASP.NET Editor?

Any errors or warnings within the markup pops up the window and it reminds me VB6 error message box, stealing the focus and concentration. Quite an eyesore. Is there a way to prevent the Error List window from showing up while editing ASP.NET markups? ...

Unit testing with an input file

All: I have a unit test that is testing functionality that requires an input file. This test was built using VS 2008's built-in unit testing feature. My problem is that the file needs to be discoverable by the unit test. However, when the test runs, it runs from a temporary "output" directory under the test results folder. It can't fi...

How to fix a C1010 error without turning off precompiled headers?

So, I have to use precompiled headers in my VS 2005 project. Now I have a shared source file that does not have a #include "stdafx.h"... How can I include the shared source file in my project without adding stdafx.h to the top of the source file and without turning off precompiled headers?? ...

how can i get the button's command argument?

Is it possible to get a button's command argument in javascript. I don't want to manipulate it, i just want to read it. If possible - how? ...

Under what conditions will you get unresolved external symbol for __declspec(dllimport)?

I am converting an application to use .dlls and I'm riddled with linker errors stating unersolved external symbol"__declspec(dllimport) public: void __thiscall Rail::SetNextrail(class Rail *)" There is more gibberish at the end of this error message. Why should this happen and how do you fix it? __declspec(dllimport) is be...