visual-studio-2008

Windows Forms Designer Float overflow

I'm not sure what's changed, but for some reason I'm getting a problem with Visual Studio 2008 Windows Forms Designer: C++ CodeDOM parser error: Line: 1978, Column: 80 --- Float overflow The call stack doesn't seem to point to any of my code either: at Microsoft.VisualC.CppCodeParser.OnMethodPopulateStatements(Object sender, Even...

How can i remove empty rows from DataTable from Excel?

Hey Guys, I have the same problem. But the differences is that my empty rows are in the middle and I have over 50 columns. The user wants to see the duplicated rows, so that means I cannot use SELECT DISTINCT * FROM [excel] The empty rows could be anywhere. The largest excel I faced with so far have over 100,000 rows. Is there a m...

How can i remove null or empty whole rows using string.IsNullOrEmpty method?

i need your help to remove null and empty values in DataTable. My Excel table 4678 rows but returning rows more than 1000000 i need to remove empty or null ... Also MY COLUMNS COUNT 60!!! :( please help me foreach (var sheet in Sheets) { dbCommand = new OleDbCommand("select * From[" + sheet + "$]", excelConn...

how can i see asp code(text in color) in Visual studio2008

I have an asp page and want to see it in VS2008 with color like html code. what setting should i change to allow asp page to be viewed correctely? ...

BuildShadowTask "Could not load file or assembly"

My Solution Built fine last Friday. Today I fired it up and I am getting this error message: Could not load file or assembly 'MyApplication, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. This is failing in my Smart Device Unit Test project. I have Googled...

the source file is different from when the module was built

This is driving me crazy. I have a rather large project that I am trying to modify. I noticed earlier that when I typed DbCommand, visual studio did not do any syntax highlighting on it, and I am using using System.Data.Common. Even though nothing was highlighted, the project seemed to be running fine in my browser. So I decided to r...

Dynamically read files in VS DBPro (using SQLCMD)

Hi, I'm using VS2008 DBPro. In my PostDeploy file I have many lines like this one :r .\Data\Test\Classifiers.CodeType.data.sql :r .\Data\Test\Classifiers.Currency.data.sql :r .\Data\Test\Classifiers.LOB.data.sql What I would like is to create a variable ProjectName so I could easely deploy different project data. Something like this ...

Why does moving classes into a new folder in Visual Studio break things?

I have an ASP.NET application with three areas. In the root of the application is a Models folder containing a hodgepodge of classes, including two DataContexts, some Repository classes, some ViewModel classes, some helper classes, and some business logic classes. I'd like to create subfolders for each of these subcategories and move t...

Referencing Nested Type in Visual Studio 2008 XAML Designer

Hello, With the following resource definition <ObjectDataProvider MethodName="GetValues" ObjectType="{x:Type sys:Enum}" x:Key="AccountTypeValues"> <ObjectDataProvider.MethodParameters> <x:Type TypeName="domain:Account+AccountType" /> </ObjectDataProvider.MethodParameters> </ObjectDataProvider> the designer complains t...

Visual studio 2008 project level settings

Is there a way to export settings for C# formatting at a project level so that we can put the settings file on a repository and everyone can use it without affecting other projects that are using different formatting styles? ...

Visual Studio 2008 Duplicate Project folders issue

Every time I create a new website in Visual Studio 2008, two folders are created in the projects folder; ie website1 & website1 (2)(using defaults for example). Folder "Website1" will have the web.config, the default.aspx and code behind page and the app_data folder. "Website1 (2)" will have the *.suo and *.sln files in it. Any ideas ...

Tricky linking error in Visual Studio 2008 ...

In Visual Studio 2008, I have a solution which contains two projects: one project is a .dll, the other is a command line application which calls the .dll. If I remove one of the files ("ast.c"), then add it straight back in, I get the following error. How do I fix this error? Error 22 error LNK2019: unresolved external symbol "__d...

Visual Studio 2008 format settings

I know in the tools-> options menu you can change the format settings for C# text editor. You can change the spacing and bracket formatting. Question Is there a way to configure the settings to enforce variable and method naming conventions such as pascal-case (MyVariable) and camel-case(myVariable)? If so, is there also a way to e...

Automatically run a list of tests in Visual Studio

Does anybody know how to automatically run a particular list of tests in the test list manager? We have two lists: a list of unit tests and a list of integration tests. Preferably we would like it to run the tests in the 'unit test' list automatically before it checks in to team system. We currently have a check-in rule that ensures th...

How to build a console app to multiple servers at once.

Hi All. I have a Job Launching system on a server. It polls our database for any pending jobs then launches the appropriate console app when a job is available. The Job data is centrally managed in the database and is growing apace so now we have a second server to add to our job processing capacity. This means the Job Launcher and e...

unable to connect sql with visual studio c#

i am unable to connect my program of visual studio c# with sql data base i think the i m missing any library can any one help plzzzzz.... ...

Is there a way of referencing the xml comments to avoid duplicating them?

This is not a biggie at all, but something that would be very helpful indeed if resolved. When I'm overloading methods etc there are times when the xml comments are exactly the same, bar 1 or 2 param names. I have to copy/paste the comments down to each overloaded method, where they are the same. Sometimes, however, this can cause m...

Control variable in add member variable wizard is disabled. Why?

Hi I have a MFC dialog derived from CMyDialog (is a CDialog) and try to add a control with the "add member variable wizard". But the checkbox "control variable" is grayed out. Any ideas what the problem is? For example: I have a edit control and want to add a int variable with lower and upper border (min and max value). I need to chec...

Can't get F# FSI to execute code in Visual Studio 2008

Hi, Very new to F#. Installed F# 2.0, created a F# Application, with some simple code, compiled it and it works fine. If I hightlight some F# code in VS 2008 and hit Alt+Enter (which every page says do) to get it to run interactively then nothing happens. Any ideas why this shortcut is broken? Is there another way round piping the hig...

How do I set a cell in a DataSet? HELP!

I´m trying to set a cell of type "System.Int32" in a DataSet by code, and my try looks like this: int aCarID = 5; // as an example... // points out the row that I want to manipulate - I guess this is what doesn´t work??? int insertIndex = myDataSet.tableCars.Rows.Count myDataSet.tableCars.Rows[insertIndex]["CarID"] = aCarID; What h...