visual-studio-2008

Standalone ASP.NET development server

I remember seeing a page on codeproject.com where a developer took one or two .dlls from Visual Studio Web Developer 2008 and created a simple win32 form application for hosting a standalone development server. It was a small applicaton that allowed you to enter the path, port number, and a "GO" button, and it launched the server stand...

Installer Custom Action problem - can't write to register key

In the Custom Actions editor I've added the custom action to Install and Uninstall stages of the process. In the properties window I've marked the CustomActionData property as : /TARGETDIR = "[TARGETDIR]" I'm hoping that the above passes the installation directory info into the custom action. The custom action seems to be firing, but...

how to do a "Move type to another file to match its name" accross a complete solution

Hi does anyone know of a way to split all classes in one solution into multiple files? The point here is that I've inherited a project in which a few hundred files contain a thousand or so classes... I'd like to be able to get to a 1 file per class approach.. Using resharper I can easily do this manually, but I'm guessing there must b...

Is it possible to disable both debugger visualization and ToString() invocation in all the debugger views of VS2008?

Dear ladies and sirs. My project depends on a 3rd party assembly which defines debugger visualizers for some of its types. Usually this is totally fine, but some types have lazy logic, which becomes eager once the data is observed in the debugger. And when I wish to explore the lazy behavior all this visualizers completely screw it. I ...

Retrieving dynamic text from a website in vb.net (VS2008)

Hey guys, i want to be able to retrieve dynamic data from a web page (share prices). I started out by retrieving the html code before i realised that as it is live data, the html code will be of little use. Although i am looking to capture specific data, all i wish to do is process a webpage that i specify which will return the text off ...

Visual Studio Project Comparison

Guys, Is there a program or add-on to Visual Studio 2008 that will compare and show the differences in 2 solutions. I currently have 2 solutions, a "live" project and a new version of the project with some differences. I'd like a program that will compare the 2 solutions and show me the changes made. ...

Debug Techniques: Visual Studio 2008 Process fatal crash after debug of WPF application.

I have a relatively large C#/WPF Visual Studio 2008 solution that I am trying to test and synchronize across 2 developer's computers. On my computer, I am able to build and debug (run) the project successfully without errors. On the second computer, I am able to build the solution without any errors. When I attempt to run the solution,...

Got a "The project type is not supported by this installation" when converting MVC2 application to VS2010

I just installed Visual Studio 2010 Beta 2 on my hard drive. I also reinstalled MVC Beta 2. I opened then my solution in VS2010 and I got the error message "The project type is not supported by this installation". I don't really understand since, first I upgraded from MVC1 to MVC2 in Visual Studio 2008 and today I tried to convert it to...

How do I stop Auto-Complete during macro execution in Visual Studio?

I am working on a couple of macros and whenever I am insterting text the Auto-Complete functionality is running and causing problems. This is also described in the comments of this question. I can manually disable the autocomplete check boxes that are interfering but that isn't really what I am looking for. Is this where the Undo Cont...

Programmatically modifying a file on Windows Server 2008 (Web Ed.)

I have written a .NET 2008 application, incorporating Microsoft.Office.Interop.Excel, that modifies an existing Excel 2007 spreadsheet. It works perfectly on my WinXP development computer. When I upload the app to a Microsoft Web Server 2008, it opens the file and reads from the file, but when the app tries to save the file, it throws t...

Debugging a DLL from VS2008 in VC6

I am currently debugging a project in VC6 (slowly porting it over to VS2008). The project links to a DLL that I have produced in VS2008 with a Debug build. (I know - a strange situation to find myself in.) I need to debug the project in VC6 and step into the calls to the DLL. Even though I have the PDB alongside the DLL, VC6 still repor...

Redirection between two websites within one solution (ASP.NET + VS 2008 + IIS 5.1)

Hi! I have an issue with redirecting from one asp website to another within one VS solution. I have set up virtual directories as follows: C:\WebSites\Website1 - /Website1 C:\WebSites\Website2 - /Website2 My starting website is Website1. I want to redirect user to Website2. I use Response.Redirect("/Website2/Default.aspx") and get 404 e...

visual basic 2008 connection to sql server compact 3.5

i'm a beginner user of microsoft visual studio 2008 and i want ask of what would be the initial code to connect a visual basic 2008 form to a sql server compact 3.5. i want to create an add new account program using the above applications. ...

How can I get the highest value from asp.net arraylist.

I am using VS2008, and ASP.NET 3.5 C# I have an array list that is populated using a textBox & button for input of numbers. After clicking the button, I need to display the highest number in the arraylist. So far I know I need a loop to compare the the items within the arraylist. using System; using System.Collections.Generic;...

VS 2008: Launching Silverlight Apps in Debugger: Various Random Errors

Hello. We have been getting a range on infuriating error dialogs using Visual Studio 2008 SP1 when debugging our solution which is a 38 project solution with a group of Silverlight 3.0 projects. These errors are seemlingly random, but they are getting so frequent that it is a serious productivity problem now: I have been starting to get...

How to sort projects in visual studio 2008?

Hi, How can you sort your projects within a solution folder. I have a solution with 3 soltion folders and in there I have several class libraries but they don't seem to be sorted by name but by creation. Is there a way to sort them by name? (from within vs 2008, not by changing the sln manually) Regards, M ...

Running MSBuild script on development machine

Hi, I have an MSBuild script which performs a lot of tasks, as it is run on our build server. I want the script to be run each time a developer builds from Visual Studio on their local development machine, so that a) the build process they are runnning locally is the same as that run by the build server so any problems in the build c...

Moq Linq-to-SQL readonly property

I have a table aspnet_User in my model(dbml file) where I have a property UserName which is ReadOnly. I thought I could do this. var mockAsp_NetUser = new Mock<aspnet_User>(); mockAsp_NetUser.SetupGet(au => au.UserName).Returns("JohnDoe"); But then I get an exception: Invalid setup on a non-overridable member. An easy solution would ...

Can VS tell you how long you program has been running between breakpoints?

Basically I'm wondering if I can save myself updating my code with System.Diagnostics.StopWatch, and somehow just get away with using the debugging features of VS (2008 in particular) I.e. if I put a breakpoint before and after my method call, and then 'run' it. Is there anyway to tell how long VS was running before it stopped again? (O...

Can I change dll-interface without recompilation exe-file?

I have an abstract class in my DLL. class Base { virtual char * First() = 0; virtual char * Second() = 0; virtual char * Third() = 0; }; This dinamic library and this interface are used for a long time. There is my mistake in my code. Now I want to change this interface class Base { virtual const char * First() const = 0; ...