visual-studio-2010

Difficulty getting Visual Studio 2010 to attach to remote processes

It's been years since I've had such a hard time getting something to work. I'm at home, on subnet 192.168.50.nnn. I VPN'd in to XYZ company office machines that are on subnet 192.168.40.nnn, domain XYZ. I can ping the remote machines, I can net map their drives and copy files back and forth, but for the life of me I cannot remotely de...

Can't Create or Save File to Network Share in Visual Studio

I'm not certain when this problem started occuring, but it was approximately a few weeks ago when I upgraded from Visual Studio 2008 to 2010. I am on Windows XP Professional. The share is on a server running Windows Server 2003. I have a solution which contains a web site (accessed via UNC path, network share) and some class projects tha...

Change VS 2010 default skin

Hi everyone.. Is any one knows how can i change the default (light blue) skin of visual studio 2010 ??? Thanks, Liran ...

How to add your own extension in Visual Studio 2010 to the context menu of the html/aspx code editor?

I made my own extension for Microsoft Visual Studio 2010. Within my VSCT-file I defined a group for my command to add it to the context menu of the code-editor: <Groups> <Group guid="guidUCCmdSet" id="UCMenuGroup" priority="0x0600"> <Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_CODEWIN"/> </Group> </Groups> Thats work...

After upgrading from VS 2008 to VS 2010, getting Contains is not a member of system.array error

I have a website I developed in VS 2008 targeting .net 3.5. It has worked well. I recently upgraded to VS 2010 and needed to make a few changes to the site. However, I'm receiving compile errors (haven't made any changes to the code yet--was just launching the site to make sure it worked ok). I get "Contains" is not a member of syste...

IVsSingleFileGenerator equivalent for multiple files?

I'm writing a custom tool for Visual Studio and am currently using the IVsSingleFileGenerator interface. This works for the most part, but now I'd like to generate more than one file output. Does anyone know how do go about doing this? I'm really hoping there is just a different interface to implement. ...

T4 Preprocessed Template Debugging Not Working - Visual Studio 2010 RTM

I am attempting to debug a preprocessed T4 template and I am not able to step into the class created by running the preprocessed template. I am able to create an instance of the class but as soon as I try to step into while debugging, a new window pops up that says No source available. There is no source code available for the curren...

TR1 from Boost or VC10 - Which one is better?

I'm currently migrating from Visual Studio 2008 to 2010. My software makes heavy use of Boost and it's TR1 features. I now get a lot of compiler errors, because VC10 has it's own TR1 implementation. I know I can disable Microsoft's TR1 implementation with the _HAS_CPP0X switch (see here), but I'm not sure if this also disables other fea...

pinvokestackimbalance -- how can I fix this or turn it off?

I just switched to vs2010 from vs2008. Exact same solution, except now every single call to a C++ dll yields a 'pinvokestackimbalance' exception. This exception does not get fired in 2008. I have complete access to the C++ dll and to the calling application. There does not appear to be any problem with the pinvoke, but this problem i...

Organizing or Color Coding Project & Folders in Visual Studio 2010

I am looking for an extension to Visual Studio 2010 which would allow for better organization of the solution, projects, folders and files. I would really like to be able to color code specific project and folders. For example, my team is working on and ASP.Net webforms site and integrating ASP.Net MVC. I would love to be able to colo...

Multiple threads accessing singleton object in VS2010

I'm using Visual Studio 2010 to write a simple C#/.NET GUI app, wherein I use a Logger class to write tracing/debugging info to a single file from within all of the various classes of the project. (See source code below.) Each class's constructor writes an entry to the log when one of its object types is instantiated. One of those class...

When compiling x64 code, what's the difference between "x86_amd64" and "amd64"?

When compiling code with VC++, MSDN gives you the option between using the x86_amd64 toolset or the amd64 toolset (when calling vcvarsall.bat). How do I choose between those two when compile x64 code? Will the amd64 option churn out more efficient x64 machine code than the cross compiler? ...

STL on custom OS - std::list works, but std::vector doesn't

I'm just playing around with a grub-bootable C++ kernel in visual studio 2010. I've gotten to the point where I have new and delete written and things such as dynamically allocated arrays work. I can use STL lists, for example. I can even sort them, after I wrote a memcpy routine. The problem is when I use the std::vector type. Simp...

Runtime error when trying to run Fluent NHibernate tutorial example.

Hello, I worked through the Fluent NHibernate tutorial at http://wiki.fluentnhibernate.org/Getting_started and the project compiles fine. However, I am getting a runtime error and I can't seem to resolve it. The error is happening in the CreateSessionFactory method you can see in the tutorial. Here it is: private static ISession...

Creating of Menus in WPF Silverlight Application with Visual Studio 2010

Dear All, I want to make a Student Management Software using WCF (Visual Studio 2010). I have not made any projects in .NET. I need a lot of Master Screens, Transaction Screens, Reports and so on. How do i go on with this. Is it possible to create menus in WPF and i can create all my options [Student Master, Course Master etc.] in Menus...

System.Resources.MissingManifesResourceException - What's causing this?

I just added an image resource to my assembly via the Resources tab in the project properties of my project. The resource is a PNG image. Now when I load the assembly, I'm getting the error shown below. This is occurring in VS 2010. System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the spe...

Visual Studio 2010 C++ linker performance for large projects

Hello, At my company we're still using Visual Studio 2005, but are peeking at Visual Studio 2010 in the hope that it will speed up some parts of our development cycle. At the moment we're most interested in the performance of the C++ linker of Visual Studio 2010. When building our application, we're looking at link times between 40 seco...

Using Visual Studio 2010 C++ compiler and linker without Visual Studio 2010 having been installed

Hello, At my company we really like for our development tools to be able to be used from perforce, without having been installed. For a lot of tools (perforce, gcc compiler, snc compiler, even maya) this works after some tweaking, but for Visual Studio 2005 we could not get it to work. As far as we could see, the problem was caused by m...

Add Title Row to RadGrid exported Excel Sheet

I would like to add a Title row to an exported File from a Rad Grid. How can I do this? <telerik:RadGrid ID="RadGridHist" runat="server" DataSourceID="SqlDataSourceHist" Visible="false" AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true" OnPageIndexChanged="RadGridHist_PageIndexChanged" OnPageS...

Cannot Add Data Connection Visual Studio 2010

There is an error stating that i am unable to add a data connection because it cannot load a file or assembly: Microsoft.SqlServer.Managment.Sdk.Sfc, Version = 10.0.0.0, Culture = neutral, PublicKeyToken =89845dcd8080cc91 or one of its dependencies. The System cannot find the file specified. Any help would be great! Thanks. ...