visual-studio-2008

Visual Studio Creating Debug File In Release Mode

I asked a similar question a while ago http://stackoverflow.com/questions/1477582/error-creating-debug-information-code-wont-compile but never found a solution. That problem seems to have evolved a bit. Now Visual Studio is creating a PDB debug file even when the application is in Release mode and debugging is turned off in Web.config. ...

how to load webapplication on server

I have made a web application using Visual studio 2008. till now it was running on my local host.. Now i want to load it onto the server so that it can run on my company server. How do i do that..?? Thanks ...

Save Visual Studio 2008 Toolbox Settings

Is there a way to save the Toolbox settings in VS2008? I've added a 3rd party set of DLLs to my current project and I don't want to have to load them each time I create a new sln/project. ...

Where's the dropdown list of events in Visual C#?

This article mentions the availability of a dropdown of default event handlers in Visual Studio (C#). I can't find it. What is in-line code? I am assuming C# code inside the aspx file? I tried that and there was no dropdown. Read the line just below the first grey box. I am using VS 2008 SP1. ...

Entity framework with "Group By" and/or "Order by"

Hi there, Say we've got a project that allows user to download things. On the main page, I want to show the Most downloaded files ordered by the number of download! All that using EF. How can i do this !! I've tried many things with Group By (Its a nightmare when you've got a lot of informations in an object). And i still dunno how to d...

Code Rush: Keyboard Shortcut to Add Using Statement

In VS 2008, when the caret is on the name of the class which doesnt have a using statement in the file, SHIFT+ALT+F10 will bring up a context menu to add the using statement. Is the same function possible with Coderush/Refactor Pro, only using the CRTL+' shortcut? Id CodeRush/Refactor Pro doesn't support it out of the box then an Add...

Code Rush: Keyboard Shortcut to Change Member Scope

When using CodeRush/Refactor Pro, I can use my mouse to toggle a context menu to change the scope of a member. By default, pressing CRTL+' doesn;t toggle this menu. Is there anyway to achive this using a keyboard shortcut? A soltuion involving CRTL+' would be ideal. ...

Accessing vs 2008 project running on localhost from a vm

I have a VM running IE6 and a VS 2008 project. I want to be able to access it via VM. So when I hit F5 a virtual server (or something) is running om my machine and i can test it by going to http://localhost:{some port}/ i wanted to access from the VM but i've tried http://{pc-name}:{same-port}/ and http://{pc-ip}:{same-port}/ but had no...

how not to hard code connection stringin all pages

I have a webconfig file which has a connectionstring in it... But then when ever i access a database i have to write the same connectionstring again and again... is there a way it can take the value of the connectionstring from the webconfig file itself..???? System.Data.SqlClient.SqlConnection dataConnection = new SqlConnection(); ...

How to get Visual Studio Unit Test to copy a file to the tests area? (which works when running/debugging)

Hi, BACKGROUND: I have a sqlite file that is marked as COPY in it's properties. When I debug my WinForms application in VS2008 (or run it) it does the right thing and copy it to the debug/run area. QUESTION: When I run unit tests (using VS2008 unit tests) it is not performing this copy. Anyone know how to get this working? So that m...

Do I need Visual Studio 2005 installed if I have Visual Studio 2008?

I'm the only developer at my company. All new development I do is in .NET 3.5 but I maintain a bunch of .NET 2.0 programs. I can create and edit .NET 2.0 solutions in Visual Studio 2008, so I'm wondering if there is any reason I shouldn't uninstall Visual Studio 2005 from my machine. Thanks ...

VS2008: how to run two separate projects from the same solution

I have a single un-managed C++ console-app solution (.sln) with two projects (.vcproj) both are built as .exe. I want to run them both at the same time (one is a client and one is a server). How do I configure my Visual Studio such that when I hit a single button, say F5, it would be smart enough to run one after another, in the order th...

Intellisense shows boost::boost::boost::boost::boost::boost::classname....... why?

I have some C++ code, and for some reason, for a couple of classes, they show up as boost::boost::boost::boost::boost::classname in the Visual Studio browser. The classes themselves are not in the boost namespace. There's no problem compiling the code. I've output the preprocessed version of the .cpp file, and I can't see anything fun...

VS 2008 with Windows 7

I have installed VS 2008 in Windows 7 (Ultimate) and I've been getting a COMException every time that I try to open an asp.net application project. The funny thing is, if I start my VS in "administrator" mode, the exception will not occur. Anyone knows what the issue might be? ...

Web Deployment Project Team Build Error

Visual Studio 2008 Web Deployment Project Team Build ASPPARSE Error I seem to have a common problem; one that is showing up but does not have a clear solution. I have a Visual Studio 2008 project structure that contains several projects that are class libraries, a web application project, and a recently added web deployment project. I...

can i use visual studio 2008 for a regular asp project

i have taken over an asp project from a friend and he was basically just using notepad++ to develop. I would like to use visual studio 2008 but there is no project file or solution file at this point, just a bunch of asp pages and some images, css the other trick is that he will still be developing for a bit but doesn't want to use VS....

Why doesn't the debugger hit this breakpoint consistently? Am I neglecting a file handle?

Consider the following code: static void Main(string[] args) { using (MemoryStream memoryStream = new MemoryStream(Resources.SampleXMLFile)) // Breakpoint set here { using (XmlTextReader xmlTextReader = new XmlTextReader(memoryStream)) { var z = XElement.Load(xmlTextReader); } } Console.ReadLine(); }...

Deploying projects with multiple dependancies (Visual Studio)

I have a solution - for example, called MyCompany. MyCompany has many projects, for example: MyCompany.Common (common class library - doesn't contain references to other MyCompany assemblies) MyComapny.Entites (Business objects) MyCompany.Data(Data layer) MyCompany.Logic(BLL layer) MyCompany.Web (web ui) MyCompany.SuperWindowsService ...

Errors in VisualStudio when opening UserControl in designer

Hello! Background: I have created this UserControl. In the constructor of the user control I call a function that retrieves some values from the database. If an error occurs while retrieving the values a messagebox explaining the error is shown. So far so good. The Problem: I have created a form that (among other elements) includes my ...

how to run my webapplication on the server ASP.NET

I have created a web application using Visualstudio 2008 using C# on my computer. I am using windows server 2003. I have now published the webapplication and put those contents in the server.. with a field called inetpub\wwwroot. i have created a root directory for it in the IIS with the name "super". Now i need to see this in intern...