visual-studio-2008

Problem with StringBuilder and XML Literals

I'm having a problem using XML literals with a StringBuilder in VB 2008. If I use this code everything is fine. Dim html As New System.Text.StringBuilder html.Append(<html><body></body></html>) MsgBox("hello") Now the problem is I want to wrap HTML around something that is generated in code. html.Append(<html><body>) msgbox("nothi...

F5 on WCF project in C#/VS2008 produces WcfSvcHost.exe error

My project is in VS2008/C# and a WCF service library. Trying to test the service, hit F5. Get the WcfSvcHost.exe error and this is more deatails below Error Signature: AppName: wcfsvchost.exe AppVer: 9.0.622.1152 ModName: mscorwks.dll ModVer: 2.0.50727.3082 Offset: 00080012 The IDE get back to normal code mode and the WcfTestClien...

Dependencies of dependencies not being copied to the output directory

Hi, I posted this question on the MSDN forum but haven't been able to receive much of an answer, so decided to try it out here. I'm having a problem with dependency libraries of a project not being copied to the output directory of a second project that references it, when the first library is mostly xaml. Here is a typical scenario w...

msvc9, iostream and 2g/4g plus files

Doing cross platform development with 64bit. Using gcc/linux and msvc9/server 2008. Just recently deployed a customer on windows and during some testing of upgrades I found out that although std::streamoff is 8 bytes, the program crashes when seeking past 4G. I immediately switched to stlport which fixes the problem, however stlport se...

Reset VS 2008 toolbars

How do I completely reset my Visual Studio 2008 toolbar? Right now I have toolbars randomly appearing/disappering when I write code vs. debug. Is this expected behavior? I'd like to get it to a point where the same set of toolbars appears and sticks to their same position in the toolbar area. ...

Opening .doc files from External Tools

I saw an article in a blog about opening .doc files from External Tools in Visual Studio 2008 (C# language spec in this case). I can't find this article anymore. Does anyone know how to do this (and also for .pdfs)? There doesn't seem to be much guidance on doing this in VS. Thanks ...

Team foundation server 2008 refresh issues

I've changed the areas/iterations in vnc and added work items in web access. When I access TFS from VS2008 at home, it shows 0 results for the same query, and iterations shows only one item in the drop down, areas show the old items. I am stumped! How do I "clean the cache" or refresh? Even though I've disconnected/reconnected and refre...

Obtaining active project in Visual Studio

In a Visual Studio plugin, I'm trying to obtain the currently active project. I've found some Web posts about using DTE.ActiveSolutionProjects. That function gives me objects that can be cast to and array of DTE.Project objects -- but it always gives me the same project, regardless of what I've loaded as the current solution in the ID...

Javscript debugging in Visual Studio

I have script debugging enabled in IE .. I have put the debugger keyword in the file and it gets caught too.. The debugger is already attached to the ie process and type is script .. When ie prompted "Would you like to debug" I pressed yes and choose Visual Studio 2008 (With my project opened) . When Visual Studio opens up, i get an ale...

What is MyAssembly.XmlSerializers.dll generated for?

I am working on a project which generates an assembly. I just noticed that an additional assembly *.XmlSerializers.dll is being generated. Why this file is auto generated and what it is used for? ...

Visual Studio 2008 - Disable .NET Framework debugging

A rather strange question I know... I was previously using the .NET framework source stepping option (tools>options>debugging>general) within Visual Studio 2008. Now although I have the option turned off, everytime I pause the debugger I start stepping into code I get taken into the .NET framework which takes an age to step back out of ...

How to make AnkhSVN remember my SVN + SSH password?

I want AnkhSVN to remember my SVN + SSH password. Until now I have to type it multiple times per operation. A previous topic discussed 2 solutions 1) Replace the default ssh client by renaming plinkw.exe to ssh.exe and moving it to one of the folders AnkhSVN searches for SSH client. 2) Replace the default ssh client in the configuratio...

Yes, another Source Control Question

Ok, I have read the other threads I could find on this subject, but still I think I want to beat this particular dead horse a bit. The situation I am in is this. I currently use Perforce locally on my computer at home and on my computer at work and I am very happy with it. But I want to share the SCM Love with my co-workers and we are ...

How can I stop execution for ALL exceptions during debugging in Visual Studio?

In my code, I currently have an exception handling setup which logs exceptions to text files. When I'm debugging the code, however, I'd rather not handle the exceptions and let execution stop rather than read the file, set a breakpoint, etc. Is there an easy way to do this using the Build and Release configurations (something like a pr...

Debugging windows mobile DLLs attached to binaries stored in device ROM

I'm currently working on a soft-input-panel for windows mobile and have run into a bit of a snag. The compiled DLL (once deployed) is loaded by devices.exe which is stored in the windows mobile device's ROM. This is causing quite a nightmare as Visual Studio 2008 refuses to see the devices.exe process (using attach to process) making it ...

Which files from a VSTS Database Edition GDR R2 project should be excluded from source control?

I'm getting ready to setup a Visual Studio Database Edition GDR R2 project with source control. Which files (if any), should be excluded from source control? ...

Edit and Continue quit working for me at some point.

I've been developing an application in C# (using VS2008) for quite sometime now and about a week ago, 'Edit and Continue' has stopped working for me. I can edit the code while debugging, but any little change that I make to the code now forces me to stop the project and restart it. The message that I get is this: Modifying a 'method' wh...

Tool for measuring Windows Service processes and used resources

HiI wrote a stress test vor my WCF service, but the service is in the remote machine, Can I measure that windows service used process and other resources? Is there any other tool? ...

What's your favourite VS 2008 shortcuts?

Possible Duplicates: Visual Studio 6 tips and tricks Visual Studio 2005 Shortcuts Favorite Visual Studio keyboard shortcuts I am a big fan of shortcuts in VS2008, it can save a lot of time and keep your fingers on the keyboard instead of the mouse. Recently I downloaded the entire list of keyboard shortcuts for VS 2008 and we...

Solution level build events in VS 2008

I know you can have pre and post build events at a project level, but I want to stop and start a service at the beginning and end of a build of the solution -- i.e. when I do a 'Build Solution' the service is stopped and the last action of the build is to re-start the service. There are no build events on the solution property page, so ...