visual-studio-2008

How can I generate the SQL CREATE TABLE statement for an MDF table?

I have an .mdf file with Visual Studio 2008 with one table in it that has numerous columns of various types. How can I generate the SQL statement that produces this table so that I can alter it and create another similar table? Is there a way to do this without SQL Server? ...

.Net 3.5 sp1 unable to start debugging on web server.

Hi, When trying to debug my web application, I'm getting an "unable to start debugging on the web server" error then with html displayed right after in the same pop up. All the inline code in the html shows an exception e.g object reference not set, unhandeled exception was generate, etc. I tried all the suggestions on google to no ava...

secure a web application

Ok... I have created a web application using Visual Studio 2008 using C#.. Now i need to secure this website; for that i need to add a login page. I am not using the login control of visualstudio.. i am just entering the username and password and there is an API which returns true or false after authentication... If it returns true t...

Unit Tests in VS2008 force rebuild of all dependencies

Why, when I go through my unit tests in VS2008 - either using run or debug - does VS insist on rebuilding all the dependencies of the test project i.e. the projects that I'm testing in the unit tests? Sometimes they haven't changed - I've just amended some of the unit tests. Or perhaps I've modified one of the assemblies - yet it insist...

How to update Visual Studio Template Cache

I've updated a default template in Visual Studio 2008 with the following path: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\Web\CSharp\1033 But when I've tried adding a new file with this type of template, I'm still getting the old version which I have found to be cached in this folder path: C:\Progra...

Developing Locally for a site that, when live, utilises Url Rewriting.

I've just installed and configured my server (WS2008, IIS7) with version 2 of the URL Rewriting Module. I've setup a simple static redirect as follows /contact >>> /pages/contact/default.aspx So users of the site have a simple url to get to the original, longer file path. It works great and even post backs to the right place. My ques...

Why don't post-deployment scripts run in VS2008 database projects?

I've got a VS2008 database project, and I created a post-deployment script under Scripts > Post-Deployment, but it appears to be a no-op (even when I put syntax errors into the file, everything succeeds). The rest of the database deployment succeeds though (and it does create my tables). Any clues? ...

Troubles drawing to my ClientRectangle using GDI+ & C#

I am working on understanding collision detection and have decided to create a program that simulates Pacman. Simply put when a Pacman runs into a Ghost it dies. I specify how many Pacmen I would like and in my MainForm_Paint (called when my control needs painting) I create an array of the specified amount of a class I created called P...

Shortcut to turn on Resharper

Usually I start VS2008 without Resharper because it makes VS startup way too slow and I just need to fix a bug. But sometimes, I do want to turn on Resharper. Is there a way to setup a keyboard shortcut that enables Resharper? ...

No protocol binding matches the given address 'http://0.0.0.0:3371/Common.svc'. Protocol bindings are configured at the Site level in IIS or WAS configuration

I intermittently get the error below when running a WCF service in the VS 2008 developer environment: No protocol binding matches the given address 'http://0.0.0.0:3371/Common.svc'. Protocol bindings are configured at the Site level in IIS or WAS configuration The only solution I have found is to reboot the pc and all wor...

How to layout a Silverlight app?

I am brand new to Silverlight. Just downloaded and installed it (the SDK and the controls toolkit), went through a few tutorial and getting my head around XAML. I want to build a fairly simple app with 3 panes. It should look similar to the image below. Panel 1 will have a TreeView. Whenever the user clicks on a node, something els...

How to generate a HTML API documentation in VS 2005 and 2008?

I have done my project and now it is documentation time. Up to now I was able to generate the XML files from the project. Now I want to get the HTML API out of it. But I can't figure it out. ...

Changing activeindex numeric to text

I have an asp.net page, i want to change the active index numerical values to text values? like......... currently it is 1 to 2 and it goes like increasing............ instead ..i want a,b,c,d ............ ...

VS2008 How I can get rid of the "Error List" window

Hello, I don't really like the Error list window, I prefer to use the Output window. The only way I can hide the Error list window is to make it floating and to put it as a small popup window in a window corner Thanks! -Claudio ...

How to "EnforceConstraints" to avoid linq errors?

Hello, I'm working on a sample from the book I bought. And, for unknown reason, I get the following error message " Could not find an implementation of the query pattern for source type 'System.Type'. 'Where' not found." The VS2008 help says that I need to add System.Linq and System.Collections namespaces to solve the issue. Unfortun...

Visual C# 2008. CRUD Example using Dataset, DataRow with an Access Mdb

I'm using Visual Studio C# 2008 I've created (visually) a dataset that points to a mdb file (Access 2007) This DataSet is called "EstacionarDataSet" EstacionarDataSet ed = new EstacionarDataSet(); DataRow newRow = ed.Tables[0].NewRow(); newRow["patente"] = tb_Patente.Text; newRow["numerobox"] = tb_Box.Text; newRow["fechahora_ingreso"] =...

<%= autocompletes to <%@ Assembly= in Visual Studio

Hi, Using Visual Studio 2008 with the asp.net MVC framework. In partial views, if I try typing "<%=" to print out some data from the model, it autocompletes the "<%" to "<%@ Assembly" (tagiing my "=" on the end). Very annoying and I'm nearly sure it didn't used to, but can't think what I could have done to cause it. Any ideas anyone?...

How to get all filename in a given directory

I want to get the file name in a given path is there any apis available . My programming environment is vc++ mfc ...

Error: The project type is not supported by this installation.

I'm trying to open a silverlight project in Visual Studio 2008 and getting this error. The project type is not supported by this installation. Let me tell you I did installed: VS2008 SP1 Silverlight Tools 3 Silverlight SDK Silverlight And they were installed in the sequence they are mentioned here. Still I'm getting the same error....

Template specialization of a single method from a templated class

Hello. Always considering that the following header, containing my templated class, is included in at least two .CPP files, this code compiles correctly: template <class T> class TClass { public: void doSomething(std::vector<T> * v); }; template <class T> void TClass<T>::doSomething(std::vector<T> * v) { // Do somtehing with a vect...