visual-studio-2010

What does "Unatuthorized zone" mean when browsing xsd files with Visual Studio 2010?

When I open up an xsd file that includes other xsd files, all of the included files are added to a section called "Unauthorized zone". Visual Studio highlights the xs:include element and gives the following error when trying to resolve the schemaLocation attribute: Request for the permission of type 'System.Security.Permissions.FileI...

Cannot execute newly created TestMethod in VS2010

When I try to run a new TestMethod on an existing TestClass in Visual Studio 2010 (by right-clicking on the method name and choosing Run Tests) the test method does not execute. After a restart of VS, the problem has gone. Am I missing some refresh thing, or is right-clicking even the correct way of executing a single test method? ...

Visual Studio 2010 debug in a fixed port

Is it possible to choose a fixed port for the Visual Studio 2010 debug webserver? ...

Custom Ribbon action to open sharepoint creation wizard

Hi All, Do you have an idea of how can I open sharepoint site creation wizard from a custom action ribbon using javascript I think. I need to preselect the site defintion template too. Many thanks in advance, Jaime ...

Do you know of a good F# and C# interop example available?

I am going to write a C# WinForms application which will run a long data-crunching task in a BackgroundWorker, show progress in a ProgressBar and have buttons to start, pause, resume and cancel the operation. I'd like to write the calculation in F#. Do you know of any good examples or readings available in the Web which can help me? ...

VS2010 - Assembly Information

Upgraded to VS2010 Ultimate and when right-clicking on a project -> properties -> application tab, you get the assembly information. Right now it says Copyright Microsoft, etc. I'd like to default this to our company's name so I don't have to do it by hand for each project. Is this possible? ...

Change C++/CLI project to another framework than 4.0 with vs2010

Since I upgraded my project to visual studio 2010 project format, my C++/CLI project is targeted to .net framework 4.0. It is easy to switch the framework version to another version from a C# project, but I have no clue how to do this in a C++/CLI project, I see no setting for this in the project property pages. ...

Using Microsoft's xml document transform to transform web.config is adding unwanted whitespace.

I'm using an XML-Document-Transform to transform my web.config file for deployment to a staging server. Unfortunately it isn't transforming exactly as specified and is adding some whitespace to an element's text. This whitespace is then being picked up by the Castle Windsor configuration that I use and bombing the application. Here's ...

Can Visual Studio 2010 do ".inc" file syntax highlighting?

Can Visual Studio 2010 be configured to do syntax highlighting on ".inc" files? We have numerous large projects with tons of these ".inc" files (asp files) and so changing the file extension to ".asp" is not an option. All I want Visual Studio 2010 to do is treat these ".inc" files just like ".asp" files when it comes to syntax highlight...

Regions/code collapse in Javascript in Visual Studio 2010

Is it possible to create code regions in JS files in Visual Studio 2010? This method works in 2005, but I can't get working in 2010. ...

Crystal Reports in Visual Studio 2010

I just made the move to Visual Studio 2010 from 2008 and I guess I didn't do enough research before I moved. I seem to have gotten myself in quite a bind. I knew Crystal Reports was no longer a part of 2010 but the beta was downloadable. I followed this document for deployment. My only change to this document is on the bindingRedirec...

firebug debugging not working in VS2010

i have vs 2010 and debug with Firefox 2.6.3 .. firebug seems to be working OK except it does not seem to break on js errors.. anyone have any ideas? ...

Word 2007 Documents in Visual Studio 2010

I'm currently using Visual Studio 2010 Professional, and noticed the ability to create Word 2007 and Word 2010 documents as add-ins with C#. What I'm looking to do is fill in a report-type document with information in my C# application, and then output the final .docx. Is this possible using this feature, and how do I go about doing it?...

VS2010 - shortcuts for web controls and HTML snippets

Consider the feature in Visual Studio 2010 for snippets in the HTML Source view of a web page. type a control name in plaintext with no markup or brackets! ... e.g. hyperlink. Then hit Tab Your web control has been auto-completed for you. It's up to you to fill in the other details that you need. This works for form as well: ...

Access Violation Exception only appearing when running C# app without debugger attached

I have an application that works fine in Visual Studios 2008, and I am trying to get it into VS 2010 in order to use .NET 4, and I have a really weird problem. When I run the code from either Release mode or Debug mode with the debugger attached (F5), I have no problems running the program. However, when I run the program from either R...

How to see .net library source code with ReSharper 5 and visual studio 2010?

I used to see any .net source code (like System.String) with ReSharper and Visual Studio 2008. since I migrated to Visual studio 2010, this option doesn't give the full source code but just the definitions of the class. How can I fix this, to use the microsoft's symbols server again? Edit: Maybe the problem is only with .net-4.0 assemb...

VS2010 add-in custom menu item in files of Solution Explorer

Hey guys, I need to create a custom menu item for Visual Studio 2010 Add-in in C#, but I have had no luck in finding a solution for my needs. I am aware that there was a similar post (Visual Studio Add-In - adding a context menu item to solution-explorer), but it did not help, as the blog follows the process through the integration pack...

Team Coherence with Visual Studio 2010

For source control we currently use Team Coherence 7.1.3.25, which has been working great under a few different editions of Visual Studio, the latest being VS2008. We are migrating to VS2010 and I am not sure how to get TC to work with it. Do we need to make the switch to TFS, or is there an option to get TC to work with VS 2010? ...

Is there a tool to export C# to HTML with syntax highlighting

I am looking for some way to export a .cs file to an .html file for posting on the web but my searches aren't helping much. I remember years ago an IDE called DevC++ could do this for C code, but I'm not sure how I'd do it with C# 4. Can Visual Studio do this somehow? ...

how can I enable database logging in my ASP.net application

Hi, how can I enable database logging in my ASP.net application? I am using VS2010 (ASP.net MVC2 Project) and would like to see logging that highlights database activity between the application and the database, including database connection establishment (as I do have a connection related error somewhere). I'm using SqlServer Expre...