visual-studio-2008

Strange VC++ compile error, C2244

Take a look at this peice of code: template <typename K,typename T> Pointer<typename Collection<T>::Iterator> BinaryTree<K,T>::GetBeginning() const { return new BinaryTreeIterator(this,BinaryTreeIterator::Position::atBeginning); } When I try to compile it using VSTS 2008, I get: error C2244: 'BinaryTree<K,T>::GetBeginning' : unab...

Showing solution path in VS2008 window name

Is there a way to display the path of the solution in the Visual Studio window's name? By default it displays (SolutionName) - Microsoft Visual Studio, I would like it to instead show something like (SolutionName) - (PathToSolution) - Microsoft Visual Studio. The reason behind this is I can have multiple versions of a project checked o...

Initial text is not populating in textbox

I have put an initial text in the text box of a asp.net web page. In the text property box. I want to load the text in the load time of the webpage. While i debug and run text box is not populating with that text. Please help me. <td class="textFieldColumn" style="height:16px!important;"> ...

Reason why a VS 2008 project is being rebuilt each time

Is there a way to find out the reason why a project is being rebuilt each time a Build Selection operation is issued in VS 2008? I've tried to even remove all dependencies from the Build\Configuration Manager (unchecked the build column for all assemblies, but the one in question). I get the same result: the assembly is rebuilt each ti...

Is it possible to control the destination folder when checking out a project from VSS 2005?

We are currently using VSS 2005 for source control - and please let me start by saying, I've read a lot of posts on Stackoverflow and I realize VSS is the devil. That being said... its what we have to work with now and I have a question about the checkout process. We have the code organized in a certain hierarchy on the vss server, but...

Transact SQL How to to do?

I need to generate a SQL update command in a *.sdf file. The *.sdf file is deployed using Visual studio. I am looking to generate a script which fills in a table the maximum number of records which is about 2MBytes. any ideas for how I can do this i.e. connect remotely to the database and script filling in the database with a dummy rec...

VS2008, Debugging, Local IIS Server vs Use Custom Web Server, SSL/https

I am debugging a vs2008 web application project using the custom web server option and some of the pages are using https. I can debug https pages. Using iis7/Vista. The way I'm doing it is: name of the self signed certificate is assigned to trucks custom server url: http://trucks hosts file: 127.0.0.1 trucks publish to http://trucks ...

My Text box is not rendering the text inside it

I have a text box where there is a initial text has been set in the text box of asp.net website. But after rendering the web page the text box is not showing initial text in the text box. Code for text box <td class="textFieldColumn" style="height:16px!important;"> <asp:TextBox ID="txtUserID" text="Enter User id.." runat="server" ...

Debugger question

I have a bug I am chasing (I think its a deadlock). When I run the code it hangs without the debugger flagging an error, so after a while I try pressing the pause (break all) button. The debugger then reports "The process appears to be deadlocked...". I then can see that all the threads are held up at lines saying EnterCriticalSection ex...

Why doesn't Visual Studio break on exceptions when debugging unit tests?

When I attempt to debug a unit test that fails because of an unhandled exception in my code, I expect Visual Studio to break on the unhandled exception so I can inspect the code and isolate the problem. Instead, the IDE instantly exits debug mode and the test is listed as "Failed", leaving me to consult the test result's stack trace to ...

How do I make a windows service installer from visual studio 2008?

How do I make a windows service installer from visual studio 2008? ...

How can I quickly check ASP.NET memory footprint?

When debugging an ASP.NET app in VS, is the WebDev.WebService.EXE process (viewable in Task Manager) a good indicator of memory footprint? ...

How to handle exception in a background thread in a unit test?

I'm writing a unit test suite to test a TCP/IP communication library. As I'm using BeginAcceptClient and EndAcceptClient, the messages are received in a background thread. After a message is received, I perform some assertions on it, but if any assertion fails, the VSTestHost.exe crashes. I googled a bit and found out its the fact the...

Can you have two tables in Visual studio 2008 report (in the report control) and how

Can you have two tables in Visual studio 2008 report (in the report control) and how is that done? I have a database with multiple tables and when I go to add a report control and then add a report it appears to only allow me to have one of the tables. I see all the tables in my data GUI but when I select properties on the report it onl...

CSSFriendly NullReferenceException

I'm debugging a project, but an error occurs and VS2008 is not showing me the line. Instead, it just show on the browser the Exception Message and Stack Trace as if I were running w/o debug. System.NullReferenceException [NullReferenceException: Referência de objeto não definida para uma instância de um objeto.] CSSFriendly.GridViewA...

How to edit a watch expression in visual studio 2008 with the keyboard?

In visual studio 2008, when the focus is on a watch expression in the watch window, how can I edit this expression without double-clicking the mouse? In visual C++ 6, it was the obvious: the F2 key. This is the consistent Windows behavior in listviews, e.g. for renaming a file in Explorer, editing a cell in Excel, etc. For some reason ...

How to find which is next statement after Page_load is done in ASP.NET?

When a page is posted back, which statement runs after page_load is done executing? Without knowing what controls are in the page. This is in VS 2008 debugger. EDIT: The question is about knowing which event and for which control comes next. ...

Formatting Performance in Microsoft ReportViewer Control

I am building a price list ap for use in my Business (in C# 3.5 using VS 2008 and WinForms) to replace an excel spreadsheet that suffers from 15 years of trying to get it to do things excel does not do well. I am presenting the list in a ReportViewer. The report has about 650 rows and 17 columns. It loads very quickly without any condit...

Generate Manager Report from Unit Tests (Visual Studio)

Is it possible to generate a report from Visual Studio 2008's integrated unit tests? Say, one you hand off to an account manager to include in an invoice for the client. One that looks say 10% as good as this? I ask because Rob Conery made a great video about using BDD to develop applications. And within it, he uses a 3rd party fra...

Clean solution in Visual Studio 2008 build event

I'm looking for a way to clean my solution as well as stop the localhost development server with each build in VS2008. Any ideas of how to accomplish this? edit: I apologize for not being clear. I am wanting to include this in a build event so that I don't have to manually do each task with each rebuild. Also, a call to clear the cached...