visual-studio-2008

Including references from x86 or "Any CPU" to other assemblies in Visual Studio 2008

It seems that if I have a .NET assembly that is going to be loaded by some unmanaged "x86" code, running on a 64bit O/S (e.g. Vista), then I need to compile that .NET assembly with the .x86 Solution Platform. What about other .NET assemblies that my original assembly references? Are they allowed to be "Any CPU" assemblies? Or must the...

Cannot debug in VS2008 with Windows 7

Since installing Windows 7, I cannot debug a website. I am an administrator on the machine, but when I try to debug, it says: Unable to start debugging on the web server. YOu do not have permissions to debug the web server process. You need to either be running as the same user account as the web ser, or have administrator privlege." I ...

Unnecessary files remaining after Publish

When I do a 'Publish' on my ASP.NET MVC website, I'm finding unnecessary empty folders in the publish folder. This is annoying because I have to manually delete them so they don't get uploaded through FTP. This happens even when I select the following radio-buttons: Delete all existing files prior to publish Copy Only files needed t...

How to add menu command handler in VC 2008?

how to add a menu command handler in vc 2008? ...

What symbol is this that appears on the VS.NET IDE?

Hello. Everyonce in a while I click in something that makes this symbol appear. What is it and what does it serve for? ...

VS2008 copies to clipboard on double-click

Hello, since some days ago I have a problem with VS2008 in a daily task. Every time I double click a word in the text editor, it goes automatically to the clipboard (as if I pressed CTRL+C after the double-click), which is really annoying. I've googled but I found nothing. I've search through VS2008's options and found nothing. I don'...

#define _AFX_NO_DEBUG_CRT causes a stream of compilation errors

I have an MFC C++ project compiler under Visual Studio 2008. I'm adding a _AFX_NO_DEBUG_CRT in my stdafx.h before the #include to avoid all the debug new and deletes that MFC provides (I wish to provide my own for better cross platform compatibility). However when I do this I get a stream of errors such as the following: >c:\progra...

Swiching back target framework (from 3.5 to 2.0) successfully

The only referenced assembly from the 3.5 framework in my project was System.Data.DatasEtextensions What i get now, is 102+ errors after swiching the target framework from 3.5 to 2.0 in visual studio. Of course the project is not compiled anymore and my typed dataset seems to be destroyed. What can i do? Here are some of the errors ju...

Debugging in Visual Studio 2008 without setting an break point

I have downloaded an open source project that I would like to use to further my ASP.NET MVC skills. The project is split up into multiple smaller projects. When I launch the web site in debugging mode, is there a way to set the debugger to stop without having set a break point so I can step through the code and see what is happening bef...

How to refresh "Documents" in Team Explorer from Visual Studio add-in

Hello! I'm developing an add-in for MS Visual Studio and I need to refresh node "Documents" (or some subnodes) of Team Explorer of VS from my add-in. How I can do it? Thanks! ...

Visual Studio 2008 Publish Fails.

HI everyone, i need some advice regarding Visual Studio 2008 Pro. We develop a lot of web service applications and ever since we started we keep encountering an error on our production server that does not seem to occur on the development or test systems. When publishing new code to the server we are normally met with the following err...

Why are certain files not published in the App_Data folder?

I'm using Visual Studion 2008 to build and deploy a webservice project. I've added a bunch of files to the App_Data folder: some xml, some plain text and 2 pdf's. All these files are included in the .csproj file (if they are not, they will not be published) But when doing a 'publish' from VS2008 (of course with the option 'Included file...

TFS: is it possible to checkout code while excluding certain changesets?

My gut feeling is that this is not possible, but what I'd like to do is this: checkout my code from TFS but exclude a specific changeset in that checkout. If it's not possible to do this directly, is there some obscure TFS feature that might let me remove a changeset from an already checked out set of code? I'm more curious than anythin...

Access a control in javascript

i have a control i created behind code Dim txtdate1 As New TextBox txtdate1.ID = "txtdate1" cell.Controls.Add(txtdate1) Cell is a header table cell i added to a gridview. I need to access this in javascript var txtdate1 = document.getElementById('txtdate1'); OR var txtdate1 = document.getElementById('<%=txtdate1.clie...

How to rebuild the Visual Studio Toolbox?

The toolbox in Visual Studio Professional 2008 has somehow ended up with 12 instances of each control. They are just the standard controls, no third party controls, and I have no third party plugins. Is there a way to rebuild the toolbox to correct this issue with the dupes? I've been living with it for a while, but it's pretty annoyi...

ClickOnce Questions

Hi, I have a VS2008 Solution that contains a Client project, WindowsService project, and ServiceConsole project. When I deploy, I would like the WindowsService and ServiceConsole to be in the same folder since ServiceConsole needs access to WindowsService's app.config (i.e. Settings.settings) file to configure it. Is this possible wit...

Disable Visual Assist X for certain project types

Hello, Is there any way to disable Visual Assist X for all project types but C/C++? I'm switching a lot between C++ and C# projects, and I way prefer Resharper for handling C# projects. I know I can enable/disable Visual Assist manually through the toolbar, but is it possible to configure it so it will be disabled by default unless it'...

Compiling Qt libraries to run with Visual Studio 2008, why does nmake fail?

I'm trying to get my Visual Studio Qt plug-in to work, so to recompile the Qt libraries i ran the following commands from a VS command prompt: c:\*Qtfolder*>configure -platform -win32-msvc2008 After this I ran nmake and started the compilation process. It went for about 45 minutes before aborting due to linking errors. I got a total ...

Visual Studio 2008 Output - Hide dll loads and unloads

Visual Studio automatically displays dll loads/unloads in its output panel, like so: 'DialogAppDEBUG.exe': Unloaded 'C:\WINDOWS\system32\wbem\fastprox.dll' 'DialogAppDEBUG.exe': Unloaded 'C:\WINDOWS\system32\ntdsapi.dll' 'DialogAppDEBUG.exe': Unloaded 'C:\WINDOWS\system32\wldap32.dll' 'DialogAppDEBUG.exe': Unloaded 'C:\WINDOWS\system32\...

Web Deployment Project does not warn of errors in ASPX files

I want to compile my ASPX pages so that if there is a bug in them it will tell me to fix it. Traditionally Visual Studio only compiles the code behind so I found recommendations to use Web Deployment Project. I have done that but it builds successfully even though I have set a string value to an int member. I expected it to error but...