visual-studio-2008

Publishing a .NET C# website to an external server

Hi, I have just completed my first aspx/c# project using Visual Web Developer Express and consuming some custom controls and external web services. It runs fine on my development machine. If I now want to test this on a shared hosting account, do I just upload all the files with the current project structure? Will there be any problem ...

Windows Service error: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

I have a simple windows service application I am trying to debug in VS 2008 IDE but each time I run the code, I get the error "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." . This error occurs at the service.Stop() line below: static class Program { /// <summary> /// The ...

Why is WPF application running in debug mode slow?

Hi there, I know that running applications in DEBUG (build configuration) thru the visual studio adds a level of overhead but I have a WPF application that I am testing out that is painfully slow in its execution and other functions such as drag/drop of items. When I run the application in Release mode it performs like one would expect...

Visual Studio 2008 Database Edition

Managing server logins and database users between developers workstations and other deployment environments using Visual Studio Team System Database Edition Hello people, Looking at upgarding from 'Visual Studio Team System 2008 Database Edition' to Visual Studio Team System 2008 Database Edition GDR R2. Parametrisation in vstsdb is ...

What code is run by the c# designer?

I keep having issues with my code compiling and running fine, yet not loading in the designer. Then I have to debug my visual studio with a second visual studio instance to find the problem. What code is executed by the designer and in what order? ...

Problem when disabling checked iterators in vs2008 SP1 (_HAS_ITERATOR_DEBUGGING=0)

I've been having some trouble with vs2008 SP1 running in debug mode when I try to disable checked iterators. The following program reproduces the problem (a crash in the string destructor): #define _HAS_ITERATOR_DEBUGGING 0 #include <sstream> int do_stuff(std::string const& text) { std::string::const_iterator i(text.end()); r...

Silverlight Control Toolkit debugging symbols

Does the Silverlight Control Toolkit have debug symbols available anywhere? I know the source is distributed and I could just build that and reference the newly-built assemblies and their symbols, but that's lame. ...

Dataset allowing Null values even when AllowDBNull = False?

Hi, I have designed a dataset using VS2008 dataset designer. In one of the datatables, I have set "AllowDBNull" property of most of the columns to be False. However, still if I create a DataRow containing null values for these columns, this datatable accepts this row, without any error. Am I not understanding something here? Please adv...

Referencing Jquery statements and debugging

Hi, VS2008. I have an MVC app and I dynamically rendering html for a control I am building. I have written some javascript and put in a .js file. My master page has a refernce to my jquery js file. A user control then calls my code to render html. My js file uses JQuery. When i debug i am getting an "undefined" error when printing...

C# Console Problem

Consider this class: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Game.Items { class Item { private string name; public string Name { get { return this.name; } } private string description; public string Description ...

How can I delete bad Visual Studio templates?

How do you remove following noise templates, that don't even work? ...

Visual Studio 2008, Local Database, Diagramming.

I just installed Visual Studio 2008 and SQL Server 2008 on my machine - in that order. I note that VS insisted on installing SQL Server 2005 Express in order to be able to create a local database in by web projects. In any case, whenever I do add a local database and go to create a diagram, I cannot seem to modify the "Custom" table vi...

C# class both extends an abstract class and implements an interface

What if I have a class that both extends an abstract class and implements an interface, for example: class Example : AbstractExample, ExampleInterface { // class content here } How can I initialize this class so I can access methods from both the interface and the abstract class? When I do: AbstractExample example = new Example(...

Does Visual Studio 2010 have backward compatibility with visual studio 2008's addins ?

I have some really great addins in Visual Studio 2008 that I don't want to lose, but I've heard that Visual Studio 2010 will use MEF. Does it mean that I can say goodbye to my dancing banana ? ...

Publishing from IDE removes wildcard mapping in IIS7 in classic mode.

I have an ASP.Net app that I deploy to a IIS 7.0 server in classic mode. I use the publish feature from the Visual Studio IDE. Every time I perform a publish, the wild card mapping is removed. Anyone know how to prevent this? Thanks! ...

Is it possible to include a .vssettings file in a .vsi

In Visual Studio 2008, I've exported my settings to a .vssettings file. I have a .vsi file that includes a .vscontent file. In the .vscontent I've included a macro project like this: ... <Content> <FileName>MyMacros.vsmacros</FileName> <DisplayName>MyMacros</DisplayName> <Description>MyMacros to aid development</Descriptio...

Adding and removing tab pages at runtime in C#

I have a program that I want each person to have their own tab, each tab would be identical, however I would like to remove a tab if I need to. private void addPerson(string name) { TabPage tmp = new TabPage(); ListView tmpList = new ListView(); Button tmpButton = new Button(); this.SuspendLayout(); this.tabFrame.SuspendLayout...

Visual Studio 2008 with Vista, GLUT projects gives error on runtime

I'm sure that there is nothing wrong with my project. Because I have tried it on my ex computer with visual studio 2005 and windows xp pro, and it works error-free. I can compile my project. There is no errors on build phase.But when I try to run my project it says "*.exe has stopped working". Then I runned it on debugger mode. I saw t...

What is ec2-authorize?

I am new to EC2 and am trying to get it set up so that I can publish directly to it from VS2008. Everyone keeps mentioning using "ec2-authorize" to enable certain things, but what the heck is this? Nowhere seems to explain what it is or where it's accessed from. I tried it from a command line in the actual ec2 instance, but there's nothi...

Active Record Pattern and WCF: How to ensure data access methods on clients are "missing"?

I'm new to the Active Record design pattern and usually use a Data Mapper type pattern. The project I'm currently working on seems to meet nicely with the requirements for using the Active Record pattern in that the domain is fairly small and the object and database schemas are quite similar (though not identical obviously). I plan on ...