visual-studio-2008

Visual Studio 2008 Development Web Server Problem.

Hi, I'm having a visual studio 2008 solution with asp.net 2.0/C# website. When I press F5 to debug, cassini - the development webserver starts properly and hooks it self in the system tray. But there's a problem after this. If cassini starts at say port 4004, the browser looks for port 4002. I will then have to manually change the port ...

Using WXI files in Visual Studio WiX Project

I've come across several sources stating to split up a WiX installation file into the separate parts (variables, components, etc.) using include files (.wxi). Makes perfect sense to me, so I took the <components> nodes out of the .wxs file and put them in a separate file, but when I attempt to compile the project in Visual Studio 2008 I...

How To Make A Web User Control's Child Control's Events Cause A Catchall Event To Fire On The Parent Once Per Postback

Say that I have a web user control that has several drop down lists in it. They are all set to AutoPostBack = true, BUT each SelectedIndexChanged event handler in my control will fire/chain the other SelectedIndexChanged handlers I have defined for the other DDLs. This means that when the user changes a single DDL, the event handlers are...

Visual Studio 'Publish' command fails

I'm working on a moderately sized WebForms project. Due to the peculiarities of management here, I have to upload the site to a remote server in order to test (no localhost testing). I'm using the 'Publish' command in Visual Studio 2008. Sometimes, it even works. Most of the time, I inexplicably get a "publish failed" in the bottom left ...

C++ Type information from VS2008

Hi, Is it possible to get Visual Studio to output any of the type information when compiling C++? GCC has GCC-XML and I was wondering there was something similar for VS2008. Thanks BEN ...

debuging pocket pc 4.2 (2003) app in visual studio 2008 over 802.11

I have been pulling my hair out! Does anybody know how to debug a app on a remote device running pocket pc version 4.2 over a wireless network? I can remote debug over active sync but this device only supports active sync while cradled at 57K baud (painful debugging experience). I do wireless debugging in widows moible 5 all the time....

How can I delete an entry from an array?

I am using Visual Basic 2008, and I am making a simple meeting planner program. The data stored for each day is stored into an array with three fields: calendars.Days calendars.ToD calendars.Appointment Days stores the selected day corresponding to the MonthCalendar object of the entry. ToD is the time of day selected by a combobox...

Resources (resx) maintenance in big projects

In a big project where you have lots of resources (resx) what would be the right approaches and/or tools of translation in order to save time, at the same time keep everything in order and leave nothing behind. More precisely, how to find (as far as translations are concerned) what has been modified (adds and removes are easy) of an ent...

Add Solution Folder for VS 2008?

I just started to use VS 2008 Express. I noticed that I cannot add a new solution folder within a solution in the way like VS 2005 Prof. Not sure if this feature is disabled in the Express version or not. In VS 2005, I can also add project within a virtual solution folder. This makes my projects in a well organized tree. However, I cann...

Is it possible to have multiple 'TestClass'es in MSTest?

I'm trying to write unit tests in MSTest and I've created two TestClasses. When I look at the Test List Editor, the only tests that are shown are the ones that appear in one of the classes. I can't figure out how to get tests from both of these classes to run. Any ideas? ...

VS2008 Macro to get command waiting to be executed

I'm currently trying to create a macro to help me debug an annoying JavaScript issue. There's a function that's getting called and it's throwing an exception. I've tried stepping through to find out what code is calling this function (because it shouldn't be called) but the third-party controls we're using and jQuery are creating a mount...

Displaying code sections with a different background color?

Hi, We have a tool that generates source files, and each generated file has several sections were a user can insert their own code. We would like to be able to mark those sections with a different background color than the automatically generated ones. Is there a way to do this in visual studio? Thanks! ...

Override visual studio syntax highlighting through a plug-in?

Hi, This is related to this question I asked earlier about syntax highlighting user-defined blocks of code. Is it possible to write some kind of plug-in for visual studio where it would override how it does syntax highlighting? Where would I start looking for that? Thanks! ...

Custom Wizard: Is it possible to add a dll reference to a project on creation from a custom wizard?

Hello, I was wondering if anyone could tell me if what I'm trying to accomplish is possible. I am using C# in VS 2008. I have two project templates and another template which links the two projects and calls their templates. The first project is a user control and the second is a test app that needs to reference the user control. I ...

Visual Studio 2008 not generating Web Service Reference.cs proxy class?

I just ported a project from Visual Studio 2005 format to Visual Studio 2008. This project makes heavy use of consuming web services. We use our own custom parent class for the generated proxy classes (Reference.cs) that Visual Studio generates up. I added a new web reference using Visual Studio 2008, and it did not generate the proxy...

VC2008, how to turn CLR flag off for individual files in C++/CLI project

This post says that it is possible to turn off the CLR flag for an individual .cpp file. From the post: You can set /CLR on or off in each .cpp file individually. Turn it on for the whole project,. as you have done, then turn it off for the files containing only native (unmanaged) code. When you have the VC++ procject properties dialog ...

WPF WindowsFormsHost VS2008 Toolbox has grayed out all the Windows Forms controls

I'm trying to use WindowsFormsHost in a WPF app so I can use some Windows Forms components. <Grid> <WindowsFormsHost> </WindowsFormsHost> </Grid> This all works ok with no errors, but when I go to drag a Windows Forms component from the toolbox in VS2008, they're all grayed out. In a way this makes sense as only the WPF compo...

jQuery Intellisense in VS 2008 not working with ajax ToolkitScriptManager

I've followed all the steps to get intellisense working for jQuery in VS 2008 SP1 (with the vsdoc hotfix). It works when I reference jQuery inside an asp:ScriptManager control like so: <asp:ScriptManager runat="server"> <scripts> ... </scripts> </asp:ScriptManager> But I'm using ajax ToolkitScriptManager instead and the intellisense d...

How to build an ASP.Net site that contains several silverlight projects with msbuild?

I have a VS2008 solution that contains and ASP.Net website, an ASP.Net WCF service, and several silverlight projects/applications. Building the solution under any of the Configurations that I have defined (Debug, Staging, Release) in the IDE works great. I also have an MSbuild project that builds the solution using an MSBuild Task, run...

The Following Module was built either with optimizations enabled or without debug information

I cannot get rid of this in my VS 2008 web project when debugging. I've checked that it's in debug mode on the non-web project in question and it's in Active(Debug). Deleted all items in my .NET 2.0 temp folder in Windows. Not sure what else to do here. ...