visual-studio

How to load an image dynamically to a report?

Hi all. Is there a way to load an image dynamically to a report based on image path. The image file name is stored in database. FYI. I'm using CrystalReport designer embedded with VS.NET 2005. ...

Could not load Microsoft.VisualStudio.Web.ToolboxItemConfiguration in Windows Forms project

Hi all Need help in a very strange questions (at least it seems strange to me). I have a solution with one Windows Forms project and a few class libraries. There is a Service Reference added to the Windows Forms project. When launching Visual Studio, I get the following error message: Could not load type 'Microsoft.VisualStudio.Web...

Cannot debug website: no symbols loaded

I'm suddenly getting an intermittent error with break points for my website. I'll get the solution from svn work for a ~ a day on it and then the next day I'll insert a break point and all of a sudden I get the "no symbols message". I've tried deleting all obj and bin folders. verfiying all pdb files are in datetime sync with .dlls ...

How to use Windows Symbol Packages with Visual Studio 2008?

At Microsoft I can download the Windows Symbol Packages for XP, Vista, Server, even Windows 7. My Problem is: how do I use these Symbols with Visual Studio? Where in VS 2008 can I add the downloaded and extracted symbols, so I can debug into Windows itself? What I want to achieve: I want to debug _beginthreadex/endthreadex, to see why/...

Document load is being skipped - what document is causing this?

when loading up a solution in VS2008 I get: An error was encountered while opening associated documents the last time this solution was loaded. Document load is being skipped during this solution load in order to avoid that error. How can I find which document is causing the problem? ...

How to quickly surround text with html markup in vs 2008?

Hello, I am working with the vs 2008 editor. Is there a way to take a piece of text for example, highlight it and use shortcuts to quickly add markup. For example, lets say I have the text, I went to the store and I want to bold the line the store, I have to type <b>the store</b>. Is there a quicker and easier way to do this? Thanks...

Cannot find Microsoft.VisualStudio.TextTemplating assembly

I am doing some work with T4 (Text Template Transformation Toolkit) and am trying to get to a point where I can create my own custom text template host. However, all of that relies on the Microsoft.VisualStudio.TextTemplating assembly and I cannot find it on my system! I first tried adding a reference to the assembly in Visual Studio, b...

Refactoring plug-in for Visual Studio 2003

Are there any free refactoring tools available for Visual Studio 2003? ReSharper seems to require a license key. ...

"Right Click" keyboard short cut for Visual Studio?

Argggg!, I'm trying to force myself to use as little mouse as possible and I can't find the answer to this simple short-cut anywhere! Here the the steps: Open up Visual Studio. Open any C# file (or any code file I believe) Point your mouse anywhere on the window/file. Right Click Is there a shortcut key for this so I don't have to m...

What is the difference between // and /// in Visual Studio?

Stylecop is telling me to use /// instead of // when I´m commenting. What is the semantic difference for those two and when should I use which one? ...

Strange visual studio 2008 behavior when pressing keys

Every once in a while I'll do something that causes strang behavior when pressing certain keys. 1)The single quote key (') will not type a character unless I press it twice, in which case it will print two backwards single quote characters (`). 2)The (backwards single quote?) key types a # character. 3)The angle bracket keys (< and >) ...

Asp.net Dev Server using wrong version of the framework?

Currently developing an ASP.NET WebApplication with VS2008. I stopped development for a few weeks, and when I came back, my project is exhibiting the following problem: The whole project compiles fine (all targeted to Framework3.5SP1). However, when I launch it (with ASP.NET Development Server), I get a message (from the browser) that t...

Delete files from disk that aren't in a Visual Studio project

Can anyone think of a way (perhaps using a PowerShell script or similar) where I can look for *.cs files that are on disk in the folder structure, but aren't included in a project file? This has come about gradually over time with merging in Subversion etc. I'm looking for a way to clean up after myself, basically. :) ...

Does Visual Studio Professional come with SQL Server Developer (not Express) edition?

A co-worker and I are disagreeing on this. He thinks we have licenses for SQL Developer because we purchased VS 2005 Professional. It's been a while since I've installed it but I don't recall that being part of the installation whatsoever. It's always been a separate install and license. Been to the MS VS site and can't find anything...

OpenGL in C++ - Crashes at runtime

Hi, I'm working on some OpenGL in C++ in Visual Studio 2005. // SetUpOpenGL sets the pixel format and a rendering // context then returns the RC HGLRC COpenGLBaseWnd::SetUpOpenGL(HWND hwnd) { static PIXELFORMATDESCRIPTOR pfd = { sizeof (PIXELFORMATDESCRIPTOR), // strcut size 1, /...

Disabling a TextBox in C# .NET using CSLA

I am trying to disable a number of text boxes intended for displaying data (not edit) in one of my UserControls. However, for some reason I can not get the textBoxes to disable properly. I've set "ApplyAuthorization on readWriteAuthorization" to true and the textBoxes are databound to the correct properties. I've also added the followi...

Problem getting type to appear in intellisense from project reference.

I'm getting a compiler error saying that "Acme.Business.User" is not defined. I have a class library project called "Acme.Business" that has "Acme.Business" as the assembly name and root namespace as well. None of the classes use the "Namespace" keyword, so they all should exist in the namespace "Acme.Business". I also have a class lib...

Cannot get the Exception Assistant to work

I have a C# WPF app that makes use of a number of assemblies that use native code. My problem is that most of the time, when my application throws an exception, the Exception Assistant does not come up - just the Break/Continue/... dialog. I of course have the Exception Assistant turned on in the Visual Studio options, and I have the par...

Per-filetype "View whitespace" setting in Visual Studio

Is there a way to enable/disable the "View Whitespace" feature in Visual Studion on a per-filetype basis? I'd like to be able to edit python files with visible whitespace, but not other types. ...

C# .net How to display a message in the output window without being in debug mode ?

I'm from Java background, in Java program I can use System.out.println(message) to print a message to the output window, what's the equivalent in the C# .net Visual Studio ? I know when I'm in debug mode I can use : Debug.WriteLine("Debug : User_Id = "+Session["User_Id"]);<Br> System.Diagnostics.Trace.WriteLine("Debug : User_Id = "+Ses...