visual-studio

Object not set to instance....blah

i have radio buttons that autopostback and set panels to either visible or invisible. The entire page is in an update panel so that i can force it to update and show the invisible changes. The radio buttons are also in update panels. It works fine except for one thing - my javascript went out the window! It can't find any of my controls...

Randomly named modules

When I debug certain applications (using Visual Studio 2005) I notice strange, randomly named modules are loaded. The names change each time. But they are like di-leyes, jnilel-e, lkmjelxl, llufvuwr. The module path is always identical to the module name. And the module timestamp seems to be the time when the module was loaded. So it s...

Convert text to .resources file

I created a new VS solution which needs to contain a modified subset of files from another solution. Both solutions have a default namespace of "Microsoft.Windows.Controls". The assembly from the old solution is named "WPFToolkit", and the new assembly name is "DatePicker". One of the files I copied over to the new solution is an embe...

In Visual Studio, what does the "Clean" command do?

You know, the one that outputs this=> ------ Clean started: Project: Foo.Bar, Configuration: Debug Any CPU ------ ========== Clean: 1 succeeded, 0 failed, 0 skipped ========== What it is cleaning? ...

confirm message box

I have a save button which when clicked should make some changes in the database. if (bFound== false) { // Giving the warning message // If user presses cancel then abort // Prepare the list of dbId needs to be deleted deletedBSIds.Add(dbId); } Here if the bFound field is true it should not execute the above statement, bu...

VS2008 not picking up recently added web controls

Has anyone had experience with VS2008 incorrectly identifying variables in the code-behind as not being defined on the .aspx page? How was this resolved? The page is executing properly without any runtime or compilation errors. ...

Can't see the TableAdapter Config Wizard in VC# Express 2008 after setting connection string

I follow this http://weblogs.asp.net/scottgu/archive/2006/01/15/435498.aspx Why I don't have any TableAdapter Config Wizard after the connection string (I use VSTudio Express 2008). I can only click on config wizard for each dataadapter not for the whole dataset. ...

Will Visual Studio 2010 support Sharepoint 2007 development?

I noticed in VS2010 beta 2 that all the templates are for Sharepoint 2010 ONLY. Is this true ? If so, will the VSeWSS 1.3 work with VS2010 atleast? ...

Can I build an application with Platform target=x64 and still be able to modify my source while debugging in Visual studio?

When I try to do that I get the error "Changed to 64-bit applications are not allowed" Will this be fixed in Visual Studio 2010? ...

Working with XSLT in Visual Studio

In my C# client application, I use XSLT to transform XML into HTML. I would like to be able to edit these files in place, without having to recompile the entire solution. I'm having trouble working out how to set up Visual Studio 2008 to allow this. The problem is that the XSLT files must get copied to the output directory somehow. Cu...

Lightweight version control for small projects (prototypes, demos, and one-offs)

Background I work on a lot of small projects (prototypes, demos, one-offs, etc.). They are mostly coded in Visual Studio (WPF or ASP.NET with code written in C#). Usually, I am the only coder. Occasionally, I work with one other person. The projects come and go, usually in a matter of months, but I have a constantly evolving set of comm...

Visual studio 2010 beta 2 problem

Hi there! I've been messing around with VS2010 beta 2 (ultimate) on windows7 and already I have a nasty problem - when I try to run devenv it's only shows me very-nice-beta2 splash screen and cpu usage of devenv process run to sky. If thats can help - on machine i have already vs2008 installed. ...

Expanding and Collapsing variables in debug windows

In those debug windows like Local Variables , Auto Variables and Watch , is there a way (like via an AddIn) to "expand all" or "collapse all" the individual variables listed? This way will make copying the data (which in my case are very large) to the clipboard easier and then it can be dealt with using a text editor. ...

Debugging exceptions in type initializers

I have a static class with no static constructor, but many static members. I throw a TypeInitializationException when the class is first used. I am breaking on CLR exceptions, and I have disabled 'Just My Code'. The problem is that I only get this exception when this class is first used; I don't break at the failing static field initi...

Can Delphi 5 generate a .PDB file that VS can use?

We've got this large application written in Delphi 5, and development is ongoing to this day. There is research going on into migrating to newer versions, but so far there is no success, as some 3rd party components have not been updated in ages and do not work on later versions. In the meantime however people need to continue work on i...

VS 2010 Beta 2, cannot add reference to System.Web.Routing from class library

Hi I have a class library project, targeting the .NET Framework 4.0. I want to have ASP.NET MVC specific extensions here, that I can use in other projects by just adding a reference to the class library. I have some Routing specific extension methods to accommodate localization in URLs, so I need to add a reference to the System.Web.R...

Does Visual Studio backup files when publishing a site from within VS?

Hi, When using the "publish website" functionality from Visual Studio, it deletes all what was already there, and then publishes only the files in the solution. Does VS make a backup of the files anywhere? They're not in the recycle bin. Thanks, Martin ...

When should you protect a strong name key file with a password?

In the visual studio project settings you can choose a strong name key file for signing the assembly. When creating a new one you can choose to protect it with a password. When should you do this? And when should you not? I am thinking that it could for example be not so smart to protect it with a password if the project is an open sour...

Developing and using a custom ASP.NET web control in a single solution

Hello everyone, I have a solution with a web site and also a class library with a control which inherits from the WebControl class. When I place the control in the toolbox and use it in the web site, I can no longer build the solution - Visual Studio (the compiler) complains about the class library DLL being used by another process (whi...

VS2010-Beta2 VPC?

Hi, Has anyone found a VS2010 Beta 2 vpc or must we roll our own? thanks, Bill ...