I work in two environments with Visual Studio 2008: my laptop and my laptop+external monitor. When I work with a second monitor, I like for my solution explorer and other non-code windows to be on the second monitor, and my laptop screen to be just code files. It's a bit of a pain to rearrange windows every day as I switch between enviro...
When I run a Test Project on Visual Studio I use the code below to access a file inside the test project code folder
var Location = System.IO.Path.GetDirectoryName(
System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName
);
var FileLocation = Path.Combine(
Location
,@"..\..\..\TestProject1\App_Data\da...
I love this site - any question that I'm just too lazy (or not good enough) to look up and I can hope that StackOverflow will come through...
Is there any way to set visual studio 2005 and 2008 to default new xml/xsl/xsd files to be utf-8 instead of utf-16?
i've done some looking but i just can't find a good site to refer to.. also i'...
I tried to upgrade from trial VS2008 to full... but, on Windows 7 Beta there is no "Upgrade to Microsoft Visual Studio 2008" option... anyone knows why?... did anyone else encountered this problem?!
...
I'm writing an add-in for ReSharper 4. For this, I needed to reference several of ReSharper's assemblies. One of the assemblies (JetBrains.Platform.ReSharper.Util.dll) contains a System.Linq namespace, with a subset of extension methods already provided by System.Core.
When I edit the code, it creates an ambiguity between those extensio...
Hi, I'm trying to summarize data in a crystal report. I'd like to create a columnar view of data in crystal but am not sure how to do it. I was wanting to use a crosstab but when I try to insert, the control never appears. I create a crosstab report but when done, it comes to a blank report. I want it to be like this except columns would...
I'm getting
Validation (): Attribute 'Factory' is not a valid attribute of element 'ServiceHost'.
from VS2008 in an empty WCF Service Application after I add Factory="System.ServiceModel.Activation.WebServiceHostFactory" to the @Service directive in the .svc file. I've added System.ServiceModel.Web reference to the code-behind.
I'm...
I know this is a darn simple question, but I'm very used to using Borland and wrappers, so this is a bit of a new approach for me. Can someone simply tell me how I Can open an OpenDialog that only gets .obj files from a visual studio c++ console app?
It's very much appreciated!
...
I have been having real problems getting the WPF designer to work in VS 2008 when i use the entity framework. I have a user control that gets data from an entity model. The user control designer loads fine but the main window throws the following error "Could not create an instance of type 'CampaignList". When i compile the project there...
Without:
MFC
ATL
using COM, with pure C++, steps taken thus far:
//steps above omitted
_ApplicationPtr application(__uuidof(Excel::Application));
//omitted
const BSTR wcharFileName = SysAllocString(L"...");
application->Workbooks->Open(wcharFileName);
application->put_Visible(10, true);
Question:
How to then copy a cell, fo...
I have a VS2005 project that contains a couple web service references. The project has recently been upgraded to VS2008 but now there is a problem with the web references...probably because they may not have been upgraded properly.
When I select Update Web Reference I get the following error:
"Value cannot be null. Parameter name: disc...
I am using asp.net web site administration tool to manage the different roles in my project (currently Customer and Administrator). During the development, in vs 2008, its very easy to manage the roles. (Project -> Asp.Net configuration). How do I manage my roles and users when the system is deployed (IIS)? Is it possible to run a "asp.n...
We do ASP.NET Development using Visual Studio.
A discussion point we've just had is whether or not our developers should have IIS installed.
With the ASP.NET Development Server you can run your web apps without IIS. Once you're happy with everything you can then deploy it to a test server running IIS and then onto Live.
In my opinion,...
In my application I am running the same winform in different contexts to control visibility of buttons, enabeling of text fields and the winform header text.
The way I decided to do this is simply by passing a string to the form constructor and check it with a couple of if statements that in turn contain the desired winform tweaks.
if (...
I have an app.config file inside my TestProject, but when I try to read it using ConfigurationManager it reads from somewhere else and it's none of my app.config's. How to correct this?
Current config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="Production" connectionString="Server=127.0...
I have a working, new installation of Windows Server, Team Foundation Server, SQL Server etc etc working in harmony, everything working great. Then -- I installed VS2008 Team Suite on the server so that I could use it as a build agent for automated builds/testing. After that the project portal was bombing out with...
This page has enc...
I've got an older assembly (Office XP PIA) that appears to target the .NET 1.0 framework. The assembly has been registered and is visible in the GAC (as well as the Win32 registry), but it doesn't appear in Visual Studio 2008 when I choose "Add Reference".
Does Visual Studio support referencing older assemblies?
...
We have a 2008 solution that has a file system website as part of the solution. This solution is under source control with Team Foundation Server. Every time the solution is closed it either checks out a file called vwd.webinfo or attempts to and complains that someone else already has it checked out.
Removing the file from source contr...
Visual Studio 2008 does a much better job of detecting and adding controls from projects to the toolbox for use in the forms designer. If you have an assembly with a UserControl- or DataSet-derived type, then it will automatically detect and add that control to the toolbox for designing forms. This is slightly better than the old system ...
Is it possible to deploy a Windows Service using ClickOnce? If so, how do you achieve this?
Currently we have to use a Deployment project, and the installation process could be simplified greatly by using ClickOnce.
...