visual-studio-2008

Cannot open certain code behind files in Visual Studio 2008

Problem: When I try to open certain code behind files in Visual Studio the application hangs and maxes out one of my CPU cores. Notes: There's really nothing unique about the code behind except for the fact that it is referenced by two different ASPX pages. This, however, has never been a problem in the past. It's a C# code behind. I'...

Can't find reference to SQLXML in Visual Studio 2005 SSIS Package

I had a project I was working on in Visual Studio 2008, when the requirements changed and now it needs to be done in 2005. I was using SQLXML objects from Microsoft.Data.SqlXml, but now when I downgraded I cannot find this in the add reference pop up box. Does anyone know why this isn't showing up and how I can make it show up? I trie...

Some aspx controls are not recognized in the code-behind files

I noticed that some aspx controls were not being recognized by intellisense, and when I tried to compile, I got errors stating that the controls basically didn't exist. After a lot of tinkering, I realized that the .aspx.designer.cs file was missing for several .aspx files. What is the best way to re-create the files? ...

Refactor nested class - move to separate file - visual studio 2008

I am looking for a way to extract a nested inner class so that it is in a separate file. Is there an easy way to do this in Visual Studio 2008 (eg, using the refactor menu)? EDIT Maybe a refactoring menu option isn't necessary if manual refactoring is simple enough. ...

RadGrid Doubleclick

I would like to fire off the server side selectedindexchanged method of a radgrid on doubleclick and not on click. Is it possible to do this??? <telerik:RadGrid ID="RadGridCashier" runat="server" AllowMultiRowSelection="False" DataSourceID="SqlDataSourceCashier" Skin="WebBlue" AutoGenerateColumns="false" AllowFilteringByColumn="true" ...

Manage references in source control with Visual Studio

I'm having trouble managing my .dll references in projects in Visual Studio. All the registered .NET and COM references work fine but when it comes to .dll files on disk, if I refer to my files on disk, my colleagues will be missing references because they may have it in a different location on disk etc. Does Visual Studio have a environ...

Visual Studio 2008 crashes when opening azure projects

I'm trying to write my first Azure application with Visual Studio 2008. Whenever I open a solution which contains a Cloud project, I get a SQL Server error message. This problem is with the development environment / SDK configuration. I get the exception before I've executed, or even written a single line of code. I am not trying to c...

Basic LINQ to SQL Question: How to update table class references?

I am new to LINQ. I am using Visual Studio 2008 and have created a "LINQ to SQL Classes" (.dbml) file in my project. I've added each of my database tables to the design view and everything works fine. My question is this: When a change to a table's design has been made in the database, i.e. fields added, how do you update the class...

how to Apply code changes at run time without breaking exectuion

Hi there, I am in visual studio 2008 and working on a very huge project which takes alot of time to build now when it is running in debug and i make some code changes i want it to incorporate those code changes at run Time. i do understand that this will not be always possible but in some situation it is. I do know that when i break t...

Developing common applications working on both Windows OS and Linux OS with Visual C++ 2008

I wish to develop applications which should work both on Windows and Linux Operating Systems. Please help me how to proceed. ...

Visual Studio 2008 ASMX files

This is not technically a programming question but it does specifically relate to a heavily used programming tool so i think this is the correct place for it. In Visual Studio 2008 if i have an asmx web service and i double click on the asmx file it opens the asmx.cs file, this is eminently sensible seens as there is just a single line ...

Problem loading an image in web application (visual studio )

HI. I am doing a web project... I am still a beginner with visual studio. I am using VS 2008. I have created a table grid view on which after i am creating a column, i inserted an image and then selected a destination url to the image which was added to App_Data folder. I can see the image while editing but when i go for running the web...

VS2008 forces XHTML

Hello all, I don't want to use XHTML but VS2008 forces me to. When I type in an ASPX document < br it will autocomplete to < br /> But normal HTML4.01 does not use these things. So how do I get rid of this annoying XHTML autocomplete? I want normal HTML 4.0 ...

How to convert hash data to original data?

I hashed data with ComputeHash how can I learn original data from hashed data? private void btn_Hash_Click(object sender, EventArgs e) { HashAlgorithm ha = HashAlgorithm.Create(); Stream file = new FileStream(@"C:\temp\simetrik.txt", FileMode.Open, FileAccess.Read); hashClass.hash = ha.ComputeHash(file); listBox1.Items....

Tracking - and correctly ending - native and managed threads in a C# - C++/CLI - C++ Windows forms application prior to exit

This is a follow-on from: http://stackoverflow.com/questions/3264245/debugging-a-multithreaded-c-c-cli-c-solution-in-visual-studio-2008-what Please excuse the format, I've just repeated some of the description of the application here: I've inherited a project consisting of three levels of code. The lowest layer is native C++ that inte...

LINQ To SQL: simpest way to rebuild dbml file

What is the easiest way to rebuild a dbml file with Visual Studio 2008? There is no "refresh" option in popup menu as in the Entity Framework wizard. I use bat file (that executes sqlmetal) from the project nowadays. ...

VS2008/2010 debugger changes application behavior

I have a very simple Delphi 2010 dll that I load from a Visiual Studio 2008 C ATL console application (MVF GUI app does not work either). When I debug the console app from the IDE directly - no break points - the output from the application is not correct but when I run the app directly or if I attach to the process with the debugger the...

vtune - no symbols available [Solved]

I have used vtune several times in the past, usually without too much trouble. Unfortunately the gaps between each use are often so long that I forget some aspects of how to use it each time. I know that the line number and symbols information needs to be stored somehow. I thought that all that was required was to compile your exe with "...

Is there any advantages in using VS2010 for TDD vs VS2008?

I want to push our management to migrate to VS2010 sooner. The new feature in our project is to migrate to TDD. I want to convince that there are endless benefits of migrating to TDD and VS2010 simultaneously. Is there really? VS2008 Pro vs VS2010 Pro - whats good can be used in terms of unit-testing? (sorry for the dumb question bu...

prevent Visual Studio 2008 from creating xsc, xss files when I try to open xsd file

I used xsd.exe to generate a schema file for some XML. I want to include that schema file in my C# project in Visual Studio, but every time I add the .xsd file to my project and then double-click it to open it, Visual Studio creates these .xss and .xsc files for my .xsd file and it alters my .xsd file. How can I get it to stop automagi...