visual-studio

VS.net 2008 issue with asp.net pages

Hi all, I am having problem in using the source view of an asp.net page in VS.net 2008 IDE. I am not using Design view at all. IDE hangs a bit every now and then, when I use intellisense in it, and I scroll the page. Please throw some light on it. Such issues doesnt come up while editing the HTML page, and while editing same asp.net page...

Visual Studio 2008 Professional vs VS 2008 Team System

I've been using the trial edition of Visual Studio 2008 Team System to develop projects and work with my client's Team Foundation Server. I am using the Team Explorer integration / source control plugin. My trial is expiring and I'm having trouble finding information on what exactly I need to purchase. I don't need to actually run a...

Visual Studio C++ Implement Interface

Hey Guys, I know in Visual Studio, when programming in C#, if I specify that a class implements an interface, I can right click on the interface and "Implement Interface", which will auto-magically populate my class with the appropriate method signatures. EDIT: Let me apologize for the vagueness of the original question. I'm looking fo...

When evaluating Visual Studio 2010, should you install the Ultimate version, or the version you think your company is most likely to purchase?

I want to install Visual Studio 2010 Beta 2 and I see several versions - seems they've gone a little nuts with the versions this time around so there's "Professional", "Premium" and "Ultimate". When it comes to Visual Studio 2008 we went with the Professional edition. I'm not privy to the reasoning but it serves our needs. On the one h...

How to enable Architecture Explorer in VS2010 Beta 2?

I just installed VS2010 Beta 2 from MSDN and could not find the Architecture Explorer. I installed VS2010 primarily to evaluate the new Architeture Explorer features, but could not seem to find this in the menu. ...

Firefox 3.6 build error on Windows VS2005 - C compiler cannot create executables

I am trying to build Firefox 3.6 Beta 4 using Visual Studio 2005 on Windows. I downloaded the release source, the latest version of mozilla build, but get the error "C compiler cannot create executables.". I have been able to build all other 3.5 and previous versions without any issues. The problem occurs at the start of the build proce...

FindByIdentity failing with PricipalOperationException in ASP.NET webapp

I'm struggling with an issue in utilizing System.DirectoryServices.AccountManagement in my internal web application. The error is not very descriptive, but here's what's going on: When I attempt to validate that a provided user id exists in the AD, I do so with the following code: private bool IsWindowsIDValid(string strWindowsID) {...

void has unknown size in Visual C++

In Visual Studio C++ version 9 (and probably other versions too), the following code: int a = sizeof(void); void const *b = static_cast<void const *>("hello world"); b += 6; Generates these errors: error C2070: 'void': illegal sizeof operand error C2036: 'const void *' : unknown size This code works under GCC, which treats sizeof(v...

how does binaryformatter serializes objects?

BinaryFormatter behaving in weird way in my code. I have code like following [Serializable] public class LogEntry { private int id; private List<object> data = new List<object>(); public int Id { get { return id; } } public IList<object> Data { get { return data.AsReadOnly(); } ...

VS2008 Unit Tests: Order of Execution

Folks, My apologies for the novice question. It's probably obvious, please don't laugh :-) I have unit tests defined for my Visual Studio 2008 solution. These tests are defined in multiple methods, in multiple classes across several files. I've read in a blog article that depending on the order of execution of tests is wrong; that ...

How to NOT generate debug information for specific source files / source sections?

Is there a way to create a Debug build of our Vs2005 (C++) project and exclude specific modules or code sections from being included into the debug information? Or is there an option to have VS generate multiple PDB files from a single project? It looks like our generated PDB file is getting too large for Visual Studio to handle/genera...

What are some "catch all" keywords I can use when debugging in Visual Studio - like "this"?

Hey Guys Again, learner here. Generally I like to be able to look at the whole state of the application to understand what information I have available to me in the current scope. Something I do a lot is open up QuickWatch and evaluate this which gives me everything inside the current class. I was wondering if there are any other ke...

In VS2008, is there a way to automatically "Attach to Process"?

Hi there, I'm working on a solution that has three projects, all of which run when I start debugging. It gets annoying because if I want to debug an aspect of a particular project that isn't my startup project, I've got to attach the process every time. Is there any way to have the debugger automatically attach to all projects? Thanks...

VS2008 deployment project. Change UpgradeCode for every build.

Hello. Is it possible to setup vdproj so as new UpgradeCode is generated for every new .msi? Why I need this. We have only one deployment project, only one application. It is very convenient (for non-developing audience) to double-click .msi file and reinstall it disregarding any other application already installed. Most often it is ne...

visual studio2008 connection

hello ...... Please I work with visual studio 2008 and my server is widows server2003 32bit And Oracle DataBase .its work verry good .. but i need now work in windows server2008 64bit .. when Run The Application The Application Connot Connect With The DataBase Please Eny Help ... Thanks Sorry My English Language Is Verry Bad ... ...

Where can I find the list of methods and properties in Settings.Default namepsace in Visual Studio?

I am working on a project that uses some plugins. These plugins are introduced during the run time. So i want to write on the data types of these plugins during run time. If i just want to save the changed settings during run time by using user settings and not use the customs file then what methods or properties should i use? I am tryin...

Frozen Resharper installator

Im testing latest 5.0 night builds and starting from last build R# installatior has frozen. I've tried everything - install / uninstall - add remove programs / repair - install previous 4.5 version - reinstall MSXML Still same - it hangs at the last step of installation (Uninstalling from VS or Repairing VS) Only way is killing process ...

Visual Studio copy/paste into Outlook with standard formatting?

I have custom settings in Visual Studio that include a dark background. Copy/pasting to Outlook produces a crime against eyeballs with a dark background in code on a white background of the mail. Does anyone have any ideas of how I can paste code in standard VS formatting (NOT unformatted text from paste special, and not paste with my c...

Conditional compiling according to VC++ compiler version

I am in the process of migrating our VC++ project from Visual Studio 2005 (VC8) to Visual Studio 2008 (VC9). Some of the projects in the solution have paths to third party libraries in their 'Additional Library Directories' field in the project settings. The paths look something like this: ..\SomeLibrary\Lib\vc9\x86 It would be really u...

Printing in .Net

I am printing out a Gridview along with a Title. I don't print anything else on the page. That works fine. However I have a cell that is a template field that i do not want to Print. How can I exclude that cell? Here is some code that I have. <div id="Printmeonly" align="center"> <table width="100%"> <tr id="trtitle" style="display:...