visual-studio-2010

Advantages and disadvantages of upgrading from vs2008 to VS 2010

I need to put forward some strong arguments to the management to upgrade our projects from vs 2008 to vs 2010. However, I would like to know the downsides as well so that I can be well prepared. Please help me with as many high-level points as possible. ...

.NET Windows 7 specific errors

I have a .NET application and a setup fot it. Built using VS 2005. The development machine is Windows XP SP3. Once somebody installed it under Windows7. And get the following errors WinForm ThreadException System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memo...

annoying indenting in Visual Studio when editing .aspx files

When I am editing VB code inside a .aspx file in Visual Studio 2010, my code is automatically indented in a bizarre way. I have searched through the options and can't find anything that fixes this. [I thought unchecking Pretty listing (reformatting) of code in Text Editor -> Basic -> VB Specific would for sure do the trick but it didn'...

Script# and compiler problems

I've just come across a pretty strange problem with VS2010 and Script#, which most of the time I am able to re-create. In my simple scenario I have 2 projects in my solution; a standard Asp.Net MVC2 Web Application, and a Script# jQuery Class Library. I created a static class (attributed with [Imported]) with a static method on it, the ...

How to get started with WCF Performance profiling

Hello, I'm trying to figure out how to profile a WCF service so I can identify any bottlenecks. I have found a bit of information on line, but nothing that assumes no prior knowlege which is where I'm at. What are recomended FREE tools? - visual studio tools - clrprofiler Here is information I found using vsperfcmd.exe to profile w...

WPF programs runs in Visual Studio 2010 but not when clicked on exe

Hi, I've made a WPF application that runs perfectly inside Visual Studio 2010. When I built it (debug or release mode) and try to run the app, I've got an error, the form doesn't start. any ideas? thanks Filip ...

Cannot load "fpacutl10.dll" error in VS2010

I am getting a Cannot Load "fpacutl10.dll" error every time I click on the Style button on the Properties tab in inside of Visual Studios 2010 when I am editing a web page. Has anyone else have this error and how do you fix it? I have tried reinstalling VS2010 and installing KB2201993 patch from microsoft. ...

In the new Visual Studio 2010 SQL Server project type, what is the .dbproj.schemaview file for?

And should I add it to the source code repository? ...

LINQ to Entities, several one-to-one references to the same tables and naming

Hi, I've started porting a .NET SQL Server application to LINQ to Entities. I have (among others...) one table called Users, and one called Time. Time is reported on a specific user (UserId), but it is also recorded which user made the report (InsertedByUserId) and possibly who has updated the Time since insert (UpdatedByUserId). This g...

Getting "Unhandled win32 exception" error when trying to instantiate CR XI R 2 Document

I'm trying to upgrade an old ASP.NET application we've got, which was written in VS 2005, and uses Crystal Reports XI Release 2, to VS 2010; and still using CR XI R 2. When it gets to the point of trying to instantiate the ReportDocument type, I get the following error: An unhandled win32 exception occurred in w3wp.exe [3148] The Just...

Visual Studio 2010 Migration Issue

I installed VS 2010 on my Win XP SP3 machine and... Created a C# Dll project Compiled and it works fine Added a resx file to the project and added a few images to it Compiled and now it gives the following error. --------------------------Compile Error----------------------------- The "GenerateResource" task failed unexpec...

Microsoft visual studio auto complete selection problem

Hello. when i am coding visual studio do not select best value. if you look this image you will understand what i mean microsoft visual studio 2010 ...

MSDN Library download?

I spend a lot of time offline, and while normally I'm in the middle of some book or magazine for work, I've recently been reading through the MSDN Library documentation of Visual Studio 2010 Application Lifecycle Management (aka TFS 2010). Unfortunately, this documentation doesn't seem to be included on either the Vs2010 nor the VsAlm2...

site scraping: drop down controls and search button click

Imagine a web site, where there are 2 drop down controls like min age and max age. After I choose min age and max age, I would like to hit the search button. How do I get the search results into an output stream and then I could navigate the DOM HTML. I already know how to naviate through dom html via htmlagilitypack. I just do not know ...

How to save the VS window layout for single/extended-multiple screen?

I often work at the office using dual screen and at home using single screen. The window layout of Visual Studio 2010 is messing with me :(. I want to save/restore the layout so that I can quickly "switch" to the layout I want. How can I do that? Is it possible? Any helps of yours are much appreciated! ...

Editor for end user documentation in C# WinForm app

I'm developing a WinForm app in c# 4.0 and would like other (non-developer) colleagues to contribute writing a context sensitive end-user helpfile. First I thought I could use "HTML Help Workshop" from Microsoft, but it seems outdated (Vista and Windows 7 not supported). Then I've looked at Sandcastle, but the documentation is lacking an...

Content blured in Silverlight4 after making a rotation and a scale

Hy, I am making a rotation of 180 degree and after that a scale of -1 on X axis. This is applied to the main grid of the user control. In this grid i have a button and a stack panel with textBox. The problem is that after the animation is done the button and the textBox become blurred. If someone can help, i wait an answer. Thanks. ...

SP2010: how to create a list view which filters a lookup field

As the title says: in sharepoint 2010 i need to programmatically create a view which lets me filter on the items on a list (a list of person). In this person list i have a lookup field which refers to another list (projects): i need to show only the people that work on a determinated project (passed as a string) I have created an exampl...

Count Code Lines Number in Visual Studio

One team will analyze our .NET project(solution) code, so, before, they asked about how many lines of code contains our project. Is there some statistical data, some code metrics in VS 2010? ...

Cant load interop.PRNADMINLib in c# on Windows 7 64 bit

Hi have a project that uses the functions in prnadmin.dll, in order to the use them I reference the interop.PRNADMINLib.dll It all works fine on 32 bit but I get the following error on 64 bit: Could not load file or assembley 'Interop.PRNADMINLib, version=1......... I have registered the prnadmin.dll on the 64 bit system using regs...