visual-studio

Visual Studio showing {...} as value for Javascript variable in debugger

Visual Studio 2010 shows '{...}' in the debugger as the value for a Javascript variable. The type is object. How can I view the contents of the variable? There's no expansion icon. ...

How to execute a SQL script to prepare DB before executing Unit Tests in Visual Studio

Hello, I have a lot of unit test that depend on a certain configuration of a database. I would like to execute a script every time I run the unit tests so the database is Ok and the tests do not fail due to wrong data at DB. I currently have a SQL script to put the right data at the DB. Is there a way of doing that from Visual Studio (...

Visual Studio 2008 always saves SLN file on exit

Got a bit of a weird problem. I'm checking a solution out of TFS source control, and not making any changes to it; just opening it using the SLN file. If I then close Visual Studio (or do a Save All), Visual Studio prompts me to save the SLN file. Even if I do (by overwriting it, it's a read-only file), it continues to do this every t...

Not able to attach running process in VS2005

Hi, I am not able to attach certain running process created by sm other process by "attach to process" in VS2005. It is showing disabled. When I tried to attach through just-in-time debugger it is throwing error pop up that : "unable to attach the crashing process. A debugger already attached.". I checked in the task manager, it is sho...

Add a parameter to an MDX-Query

Hello, I am building a Report in MS Visual Studio which gets its data from a cube. This has amongst others a dimension called Player. I want to hand over a parameter 'Name' and receive the number of games the player has played. But I do not get the parameter integrated in the MDX-query I use. I had defined the parameter and in the query...

Setting up Visual Studio with a cloud based SharePoint site

I have a SharePoint site on the cloud where I access it through a URL like this one; https://exampleemeamicrosoftonlinecom-1.sharepoint.emea.microsoftonline.com I can also edit the site with SharePoint Designer by pointing to the same URL. I'm at the stage in the project where I want to do some specific things so I am going to use V...

Working Directory in Visual Studio C# file

What exactly is Working Directory in the properties of Visual Studio C# project. I have see a project where I right click and go to Properties and then I go to Debug tab, it shows me Working Directory where Author of the code has specified folder in local machine. I want to know what does that working directory means and what kinds of f...

How do I attach my Visual Stuido Add-in window to a tab programmatically?

I'm creating a small addin in the hopes of making it fun and easy to play with graphics in Visual Studio. There has been one small annoyance though, I can't seem to figure out how to attach my newly created window to the tab bar. It's all F#, but the solution should be just a couple of function calls so please feel free to use C# or VB...

How to redirect visual studio visual basic macro output to the output window?

I'd like to run a Visual Studio macro which is a command line tool, and have the results appear in the output window of Visual Studio. ...

Parsing Datetime

I have a date time as a string, eg. "2010-08-02", I'm trying to convert it to UTC with the following code snippet DateTime.ParseExact("2010-08-02Z", "yyyy-MM-ddZ", CultureInfo.InvariantCulture) When I print to the console, I get the following: 8/1/2010 5:00:00 PM. Is there a reason why the date shows up as the date before the date I'm...

Way to profile the build process?

My C# Solution is taking longer to compile that I would like. Is there a way to profile the build process to see what is taking so long? ...

upgrading a project from vs 2008 to 2010 loses generated code in service reference

I have a project that I'm upgrading from 2008 to 2010. My problem is with the code being generated by a service reference. Any classes used in the Reference.cs are given by their full name according to the reference The difference results in a 'cannot convert from foo.Data.MtkBaseRequest to foo.WebServicesClient.ModelDataService.MtkBa...

Recording a live video stream in C#/XNA

Hey everyone, I have a project that renders the web cam stream onto a texture. I was wondering if there was a way, either through DirectX's Audio/Video functionality or through XNA directly where I can record the stream into an avi file format? Thanks in advance for the help. ...

check for groups a user is a member of

i have the code to get the members of a local group example administrators private void GetUserGrps() { using (DirectoryEntry groupEntry = new DirectoryEntry("WinNT://./Administrators,group")) { foreach (object member in (IEnumerable)groupEntry.Invoke("Members")) { using (Direc...

ASP.net flow chart of pages in Visual Studio

Hey all, i am not sure how to put what i am looking for. The best i can describe it is a flowchart type of layout that shows your all your ASP.NET pages and how they are linked to one another. Example: ----------- ----------- |main page| |error.asp| -----------\ /---------- \-----------...

How to modify .xsd in visual studio 2003 to add/delete columns from a table

I have an existing visual studio 2003 application that uses .xsd (connect to oracle db). I need to modify one of the tables in the .xsd file but when I save the .xsd file, I get build errors. What is the correct way to modify the .xsd file so that the application doesn't throw compile errors? ...

Trace unmanaged function calls at runtime?

Is it possible to generate a tree of function calls at runtime? I'd like to get a feel of what the program is calling. This is essentially the same as breaking at a particular location, stepping through each function, and recording down what the function names are. I have no performance constraints. I am using Visual Studio, but do not...

Find all references to an object in an SQL Server database

I'm trying to find all references to an object in an SQL Server database. How can I quickly search? SQL Server Management Studio does not seem to do it. I use http://www.red-gate.com/products/SQL_Search/ but I'd like to find the "official" Microsoft solution to this. Is it in another product? For example, when I do a mass search in vis...

Visual Studio's amazing disappearing interface elements

Hi folks. I'm building an interface in Visual Studio. All fine and dandy. Then yesterday I did some resizing and had a crash, not sure which of those caused it, but now the progress bar I was using has vanished from the form. I'm not getting any compile errors, so as far as I can tell it still exists and is just playing hide and seek wi...

How to debug a TSQL in VISUAL STUDIO 2005?

Hello, I am trying to debug a TSQL via Visual Studio 2005. I added the database connection and are now able to connect. But I initially I couldn't see the "Attach To Process" under tools. I went into the customize option and drag and dropped the "Attach To Process" under tools. Now I can see the "Attach To Process" under tools, but it i...