visual-studio-2010

Visual Studio 2010 crashing on startup - "unhandled win32 exception occurred in vcpkgsrv.exe"

Hi, I'm on Microsoft Visual Studio 2010, Version 10.0.30319.1 RTMRel Whenever I open a C++ Win32 Console program I have I get "unhandled win32 exception occurred in vcpkgsrv.exe" Anyone had this / know a work around. I think (?) I'm on already on the latest version of VS2010. tks ...

Will IIS express run php in Visual Studio?

Will IIS express run PHP in visual studio? If so, will you be able to debug php in Visual Studio? ...

"Not Connected" message in Visual Studio 2010 when using TFS

In Visual Studio 2010 Premium I have a project that is connected to TFS. Sometimes I see "not connected" messages on the tabs of individual files when open in VS2010. All TFS related functionality (i.e. "Check Out For Edit") seems to be working correctly. Here's a screen snippet from a VS2010 Winforms project to show what I'm talking a...

How do I: Visual Studio Syntax Highlighting Extension

I want to develop an extension for VS2010 that will allow me make some additional features to syntax-highlighting. I installed the SDK, how do I start from? Please give a little snippet (or a link to code) where I can see how to start. Note: do I have to check the whole block of code, or the SDK tells me on each word what it is, how i...

Visual Studio publish fails

I can rebuild and build my application without any errors, but I cannot publish it to my local IIS 7 web site. I most certainly am missing a step... It is an XBAP application that i'm trying to publish to a web site. I created the web site by manually adding web site in IIS7 with default settings. I noticed that there are no sub fol...

Target .Net 3.5 in VS2010 for C++ executables

Is it possible in VS2010 to create a mixed mode executable that targets .Net 3.5? If we try this we get error MSB8009: .NET Framework 2.0/3.0/3.5 target the v90 platform toolset. Please make sure that Visual Studio 2008 is installed on the machine. If we then change the toolset in the properties to v100, then the resulting executable s...

When to use the TestProperty-Attribute in the Silverlight Unit Test Framework?

The other Attributes (aka. TestMethod, ExpectedException, etc.) i know where and when to use, but i don´t know what i can do with the TestProperty-Attribute. Why should i use it and when? Whats the reason for this attribute? I found no useful documentation on the Internet, that explains the TestProperty-Attribute. And intellisense doe...

MIDL compilation error (and maybe idl file generation question).

We're looking into moving our application from VS2008 to VS2010. We generate some COM objects with "attributed programming" and the IDL is automatically generated. The import directives for both files are different and the compilation fails on VS2010. on VS2008, it generates something like : import "docobj.idl"; on VS 2010 impo...

NUnit with VS 2010 is no longer stopping at breakpoints

The answer to this has got to be simple, but I sure don't see it. I'm working on an MVC2 project under VS2010, with Unit tests written in NUnit. I debug the tests (and code) by starting the NUnit GUI, then clicking Debug -> Attach To Process in VS, and attaching to nunit-agent. This has all worked fine for some time. I added one addi...

Does Visual Web Part support ObjectDataSource in designer?

I'm trying to upgrade some Sharepoint 2007 webparts to SP2010 using the web part projects built into Visual Studio 2010. Namely, I'm using Visual Web Part to migrate our existing controls, which make extensive use of ObjectDataSource. However, when adding an ODS to the control in the Visual Web Part project, it will not pick up objects i...

VS 2010 Web Service project template missing?

This may be a silly question, but I can't find the web service application template when I try to create a new project. ...

Rhino Mocks and Visual Studio: How do I fix this error?

I'm having another fun problem with Rhino Mocks. Can anyone answer this one: Here's the call that I'm making in my code: Expect.On(this.mockDal).Call(this.mockDal.SaveObject(entry)).IgnoreArguments(); mockDal is mocking something of type Dal, and it's SaveObject method's signature is this; void SaveObject(object obj); Visual Stud...

I'm about to start using ASP.NET MVC2 for my web application.

I have a pretty big web application that I created last year using ASP.NET webforms. It has two parts: Admin and Client (each one a project inside a single solution). Admin logs in as you would expect and manages the clients. Clients log in and manage themselves. SQL Server back end. It relies heavily on MasterPages and LINQ. It ha...

ListView displays data in debug build but not release build

I have a project on a Windows 7 machine in Visual Studio 2010 that contains a WPF ListView using a DataTemplate and it is showing strange behavior. I can run the project in Debug or build a Debug executable and launch it outside VS and the ListView will be populated with data. If I build in release mode the data is returned but does not ...

Visual Studio 2010: How to add a simple file not as a resource?

I just want to have a "data" directory in the project, and that it will be located at the startup directory of the application. When I add files with drag&drop they're not appearing in the startup directory of the application (they're embedded or something). Seems to be very simple but not found any solution yet =[ ...

Target Silverlight Version is stuck

I have my shiny new Visual Studio 2010. I want to develop a Silverlight 4 web app with it. I made a project and it told me that I needed to update my Developer version of Silverlight. I followed the link provided and did what it suggested. I then went back and created my project (under a different directory). But when I try to selec...

Can I create games using XNA if I have Visual Studio 2010 installed?

Pretty straight forward question. Thank you. ...

Exception in brand new Silverlight project

I am getting the following exception message when I try to run my newly created Silverlight app: An error occurred while trying to make a request to URI 'http://localhost:8732/Design_Time_Addresses/IsAProgrammer.Service/Service1/'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain p...

catch all exceptions in the application with just one try-catch

Hello, Is there any way to catch all the excepions within an application at Main() with a single try-catch irrespective of threads and appdomains within the application?? In other words I just want to use one try-catch to log all the errors in my application instead of using multiple try catches in various places. Would appreciate any...

How to activate selection mode when editing form in design mode in VIsual Studio 2010

Every time I click a control (button, textbox), a new border is added. I can't select the controls on my form now. What I'm looking for is a command to activate the selection mode but I can't find it anywhere on the Toolbox pane or on any toolbars. Please help. ...