visual-studio-2010

VS 2010 unable to load references from previous .NET version and unable to change target framework for new projects

I have an in-house proprietary library developed in .NET 2.0 using VS 2008 . I upgraded to VS 2010 and using the library in a new project based on 4.0. I have added the library as reference but when I am trying to compile I get an error stating that namespace doesn't exists. In addition I tried to change the framework to 2.0 for my new...

Where can I find up-to-date information / walkthroughs on VS 2010 deployment?

I am looking for information on deploying my web app to our test server. Having heard Hanselman say this is something you can do within VS 2010 easily I set out too find information on exactly how to do this but can not seem to find anything. Ignoring the fact that most of the blog posts / articles are over a year old, there just seems ...

How we can Use Custom theme in share Point Server 2010?

Hi, I wanted to change the look and feel of my share point server 2010 site. I have use office Power font to create my custom theme. .Thmx file. I am just wanted to know how to use the custom style to use in share Point server 2010. Like earlier we did in share point serve 2007 to create a theme folder. I want a fix solution. Like if ...

VS2010 Assembly Load Error

I am getting the following error when I try to build an ASP.NET 4 project in Visual Studio 2010: "Could not load file or assembly 'file:///C:\Dev\project\trunk\bin\Elmah.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)". I have verified that the dll does, in fact, exist, and is getting co...

Marshal structure pointer in VS2010

Hi, I have to call a C++ DLL from my C# program. I'm trying to do it using PInvoke - everything works fine in VS2005\ 2008, but after migration to VS 2010, I get this exception: PInvokeStackImbalance was detected Message: A call to PInvoke function 'sampleFunc' has unbalanced the stack. This is likely because the managed PI...

How to change Visual Studio 2010 Intellisense/context menu highlight color?

It seems I am not the only one complaining about this. The yellow/gold color on top of the white background really makes me spend more time locating the highlight item. It may not be an issue for people who like using mouse. But I am a keyboard person and try to use mouse as little as possible. So this color is very annoying. Microsoft s...

How to save a complete webpage using the built-in webbrowser in c#

Overall I am trying to write out a webpage to PDF. There is a web service that I can use to convert a file to pdf. So what I am trying to do is save out a webpage from the WebBrowser winforms control. I have already tried writing it out the document stream but that just gives me the html of the page and not the images that are used w...

Custom Webpart doesn't show up in Sharepoint 2010 after deploying from VS2010

Hello all, Full disclosure: Sharepoint development noob. I currently have 3 custom web parts built in an SP solution in VS2010. I build and deploy my project out to our local Sharepoint dev box. However, after deploying, only the first 2 custom web parts show up under the Custom category in the "insert web part" ribbon section. I checke...

Visual Studio adds a circular reference when I drag and drop a user control from the Toolbox

I have a user control C that is defined inside project P. C is present as a ".NET Framework Component" in my Visual Studio Toolbox. I open a form F (also defined inside project P) and drop C onto F. Once I do that drop, Visual Studio adds a reference under P pointing to P's own DLL. This is unnecessary and causes tons of build errors ...

Red Gate SQL Compare vs. VS2010 Ultimate

I used to use SQL2000 and Red Gate SQL Compare 3.2 and I was a happy camper. I wouldn't worry about tracking the changes that I make to the dev database until all the coding was done and I needed to compile a list of scripts to bring the prod db in sync with the prod. This is where SQL Compare and to some degree, SQL Data Compare, were ...

Stylesheets loading but styles not showing...

Hi- I have a website I created in VS2010 and am trying to run with IIS7. My website starts in all major browsers but for some reason the styles are not applied even though I've confirmed using Firebug that the stylesheets have indeed loaded. Also, when I use the inspect tool to click on an element, I can see in the right-side box the spe...

Cannot open multiple files when implementing IVSTextViewCreationListener.

In the Visual Studio 2010 SDK, I am able to implement the IVsTextViewCreationListener.VsTextViewCreation method: Public Sub VsTextViewCreated(ByVal textViewAdapter As Microsoft.VisualStudio.TextManager.Interop.IVsTextView) Implements Microsoft.VisualStudio.Editor.IVsTextViewCreationListener.VsTextViewCreated Dim textView As I...

vs2010: trying to debug javascript using Chrome: this is not a valid location for a breakpoint

Everytime I try to set a debug point in Javascript, eietehr while in Design mode or while runniong, I get the error: trying to set a breakpoint in javascript: this is not a valid location for a breakpoint When I go to VS2010's Options screen under Debugging Just In Time, I see that Managed, Native & Script are selected, I also plac...

Is there a way to modify Visual Studio 2008 or 2010 project pre-build events from within your code in C#?

Is there a way to modify Visual Studio 2008 or 2010 project pre-build events from within your code in C#? Does C# have such preprocessor directives that would allow one to configure what gets run before project compilation and build? The purpose of this is to scan the project for shader effect files (.fx) and recompile them without edit...

VS2010 "An item with the same key has already been added"

I recently installed Visual Studio 2010 and copied and converted an old VS2005 solution to VS2010 When I edit this solution, if I try to change a control's .image property, VS2010 creates a message box telling me that "An item with the same key has already been added" (screenshot below), and won't let me browse for an image. I can add ...

visual studio 2008 vs 2010 Pro unmanaged code

Hi, I'm a C++ programmer, I use Visual Studio 2008 Professional, only unmanaged code. I'm thinking of buying VS 2010 Pro. I'm confused, I don't know what are differences between those two. I know that, in plus, it has tr1 included. When I started using 2008 edition I was very pleased to see f.e. unit testing support but all new features...

App.Config Transformation for Visual Studio 2010?

For Visual Studio 2010 Web based application we have Config Transformation features by which we can maintain multiple configuration files for different environments. But the same feature is not available for App.Config files for Windows Services/WinForms or Console Application. There is a workaround available as suggested on the follow...

VS2010 Macro/Add In for "Run" and "Run On" commands in Visual Studio 2010

Much to annoyance of many developers Microsoft have removed the "Run" and "Run On" commands in Visual Studio 2010: More details at: http://social.msdn.microsoft.com/Forums/en/vstsdb/thread/f374c604-a7eb-496d-a261-9374790cdbf9 Has anyone seen or written a VS2010 Macro or Extension that fills the gaps and replicates this functionality? ...

Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException was unhandled by user code (VSTS 2010 on Microsoft Dynamics AX 2009)

I am trying to automate the UI testing process using VSTS 2010 on Microsoft Dynamics AX 2009. Using coded UI test, I am recording tests on on Microsoft Dynamics AX 2009. Recording works fine, it runs into issue when trying to run the test recorded on TreeView control in the application. Tests fails to execute on that control. Following ...

Service and Web Reference crashes Visual Studio

When I move the mouse over any of these two or right click any of them Visual Studio crashes with the following message in the event log: Felet uppstod i programmet med namn: devenv.exe, version 9.0.30729.1, tidsstämpel 0x488f2b50 , felet uppstod i modulen med namn: ntdll.dll, version 6.1.7600.16385, tidsstämpel 0x4a5bdb3b Un...