visual-studio-2008

Can't see the designer view in Visual Studio 2008 C# Windows Forms due to weird error.

Hi, when I try to click on the designer tab to get the designer view, I get this error: To prevent possible data loss before loading the designer, the following errors must be resolved: The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the follo...

Web Service Project vs Web Site with .asmx file: differences and worth upgrading?

Consider 2 scenarios where we want to host a .NET web service. Nothing too fancy, simple data types back and forth. They both reference out to an assembly to perform the complex business logic & data access. The project would have a couple .asmx files each with a couple methods apiece. Web Service Project When Visual Studio creates th...

VS2008 crashes with xml when in project

Having an issue with vs2008, anytime I have an xml file in a project and go to open it, devenv crashes out. Not specific xml files, but all I've tried. Have reinstalled vs2008 and run devenv /safemode. If I open the same xml file directly without a project, no problems. Any Ideas? Unhandled exception at 0x76f76541 in devenv.exe: 0xC0000...

Tools to organize Dataset designer?

Hi, Does anybody know of good tools/plugins to organize the dataset designer in Visual Studio 2008? Right now it's a big jumble of TableAdapters without relationship views - it would be very cool if there was a tool available that could organize it, kinda like how it's done in SQL Server Management studio's 'Diagram' pane. Cheers, WT ...

C# Graphics Newbie Question

Good Day, I have some small transparent gif images (under 100x100) and wrote the following code to iterate through all the pixels to give me the RGB values: private void IteratePixels(string filepath) { string dataFormat = String.Empty; Bitmap objBitmap = new Bitmap(filepath); int counter = 0; for (int y = 0; y < objBit...

Adding item to tab control in VS 2008 WPF app

Adding item to tab control in VS 2008 WPF app I am bit of a newbie to WPF. I am using VS 2008 and working with a WPF app. With the design editor I add a Tab control and then add a new tab. I drop an item like a button onto the the tab control. But instead of actually being in the individual tab the item is almost modal on top of the c...

Is there a key to suppress anchors in the VS Windows Forms designer?

I have anchors set for numerous control on a Windows form, and now I want to resize the form in the designer without anchors being applied. Is there a key to suppress anchors in the designer temporarily? In the Visual DataFlex Studio, for example, we added the ability to hold down the Ctrl key while resizing in the designer for just thi...

asp.net mvc template missing

I installed asp.net mvc and then followed it up by installation of visual studio 2008 express. When I do new project I dont see mvc template to choose from. How do i add the asp.net mvc template for visual studio to know where it is? ...

Visual Studio -- how do I save debugging properties so they're applicable for all projects?

The accepted answer to the question http://stackoverflow.com/questions/298708/debugging-with-command-line-parameters-in-visual-studio accurately describes how to set command-line arguments for a given project: "In VS 2008, right click the project, choose properties, go to the Debugging section -- there is a box for command line argumen...

Visual Studio 2008 Warning About Changes to Designer-Generated Code

This question is kind of anecdotical but still interesting to me; I was wondering why Visual Studio 2008 is not loving the following use of constants: public class Service101 : ServiceBase { /// <remarks> /// Shown at Start -> Settings -> Control Panel -> Administrative Tools -> Services /// </remarks> internal const str...

Convert C# Library To MSTest Project

I have some class libraries with NUnit tests, and I want to convert the project to use the VS 2008 MsTest integration. (Right click add test etc.) Is there and easy way to convert or do I need to edit the csproj manually. Thanks ...

How do I build my website in Firefox?

Hello, Here's an easy question. How do I configure Visual Studio 2008 to build my webpage in a certain browser? I really want to build in all 5 well-known browsers (IE, Firefox, Chrome, Opera, and Safari), but right now I am having to right click the actual html files and open them in different browsers. In dreamweaver, there is a sim...

Crystal Reports - "The report you requested requires further information"

I have some Crystal Reports that were created using Crystal (external to Visual Studio) and are now loaded in the VS project. Before the report is previewed I set up the report database information like this in the report and all subreports. var connectionInfo = new ConnectionInfo(); connectionInfo.ServerName = "192.168....

Is there a way to customize the Unit Test Wizard in Visual Studio Team System?

I am tired of Unit Test Wizard on Visual Studio, it helps a lot, for sure, but there are some things that I always have to change, like replacing explicit variable typing by "var". There is a way to customize it? ...

How can I step into Microsoft's .net framework source code?

I'd like to step into Microsoft's source code but cannot. I followed the instructions at http://referencesource.microsoft.com/serversetup.aspx In particular, I disabled "Enable Just My Code" and Enabled "Enabled .NET Framework source stepping". Finally, set the source symbol location to "http://referencesource.microsoft.com/symbols". ...

What could cause VS2008 to crash and then take explorer.exe with it?

This happens to me quite frequently...at least once every 1 or 2 weeks...and it is currently driving me insane. I can be working in VS2008 performing the most basic of tasks and the entire program will stop responding. After waiting quite a while the only option I find myself with is to open the Task Manager and end the devenv.exe proce...

Using OpenGL on Windows Form Application in Visual C++

Hello, I want to draw 3D graphics on Windows Form Application in Visual C++.How can I adjust OpenGL library on Visual Studi 2008 ?Could you advise me any tutorial that mention using OpenGl Library with Windows Form Application and Visual C++? Best Regards... ...

How do I work on a form without checking it out of the Team Server?

In SourceSafe I could "get the latest version" and work on my PC without checking the webform out. When finished I could double-check if anyone worked on it and then decide whether to check it in or not. In Visual Studio 2008 Team Server, whenever I start working on a form it checks it out automatically. How do I work on a form without ...

Why do I get a Script Documents Tree under my solution when running it?

When I run my solution, when certain parts of code are run such as logging in, I noticed that a node called "Script Documents" shows up under the solution node. Under script documents, it says Windows Internet Explorer and under that, various files show up, such as plain text files just named "anonymous code", javascript files, ScriptRe...

'Project creation failed' when creating new Smart Device application

Hi Everyone, I'm running Visual Studio 2008 Professional Version 9.0.30729.1 and am having a serious problem creating a new Smart Device project in either C# or VB.net. I get the following error when I try to create a new Smart Device application from template: Object reference not set to an instance of an object ... and a 'project cr...