visual-studio-2010

Publishing my Website to my Local Disk Causes Exceptions to show Paths including my Local Disk

I've published my website many times. But didn't think about this though until I came across this issue. So I decided to publish my WAP project to a local folder on my C drive first. Then used FTP to upload it to my shared host on discountasp.net. I noticed during runtime that the stack trace was referencing that local folder still a...

Publish to Url the old way VS 2010

Anyone know if you can simply publish to a url? I don't know what the heck the new publish to web is but I don't like it. I want to be able to just publish to a url like I was able to in VS 2008 and down. I don't have a service endpoint to give it so not sure how to do this. ...

Doing TDD Silverlight 4 RC using Visual Studio 2010 RC

[EDIT] Based on feedback yes, VS2010 seems to support SL4 Library TDD despite a couple strange messages when first creating the tests which said the test could not target Silverlight - problem seemed to go away - chalk it up to an RC bug I guess. I think my real out-standing question now is how to TDD a standalone library that uses eleva...

Force File Reload Before Build

We have a tool that generates some code (.cs) files that are used to build the project. EDIT: These files are the other half of some partial classes, so the build process requires access to the source. It's not possible to compile it into a DLL, for example, and then set the build order. The tool is run during the pre-build step, but ...

Where to get MSDN Help Viewer for 2010 like earlier MSDN with Index, Tree and one window?

I upgraded to Visual Studio 2010 RC, and I remember filling one big form for MSDN help improvement campaign and I was wondering I will get to see a Help Viewer like MSDN included in Visual Studio 2008, which included One Program (Not IE), Index and the way to view preferred language setting. Google results shows that there were headline...

How does Entity Framework 4.0 determine which parameters are required for the factory method of an entity ?

Hi, I am working with Entity Framework 4.0 (VS 2010 Beta 2, NOT RC). I can model the EDM and produce the required database. When I ask VS to generate the code for the model, it generates the expected .designer.cs file. When I look at the factory methods for each entity that the designer has generated, I've noticed that it doesn't inc...

AjaxMin4 bug with Visual Studio 2010 RC?

When I compile my solution I get 2 errors which I did not get with version of 1.1 of AjaxMin. The "SourceFiles" parameter is not supported by the "AjaxMin" task. Verify the parameter exists on the task, and it is a settable public instance property. The "AjaxMin" task could not be initialized with its input parameters. If I re-install...

Is Visual Studio 2010 RC ever going to expire?

Is Visual Studio 2010 RC ever going to expire? Sorry if this isn't the correct place to ask but it doesn't look like it. ...

I have VS2010RC and VS2008 installed - how can I run MVC 2 with both tools?

Hey all - I just downloaded the release version of MVC 2, pretty excited about that! Problem is, I can now create a MVC project in VS2010 but I don't seem to be able to do so in VS2008. We are using VS2010 RC for our main project. We need to use VS2008 for a new project so we can use the Connector/NET for MySQL, and I would love to b...

ASP.NET MVC 2 VB, Not recognising my Import Namespace.

I had a problem with a project I converted from C# to VB, in that the VB version it cannot seem to find an object even though I declared it with an Import statement at the top. I created a new, default MVC 2 VB project, and the same problem occurs there. I create a new MVC 2 application, I then add a reference to System.Data.Services.C...

Error E_OUTOFMEMORY(0x8007000E) in Visual Studio 2010 RC

When I try to add a connection Linq to SQL with the OLE DB Provider : PostgreSQL OLE DB Provider I have an error message : Unspecified error: E_OUTOFMEMORY(0x8007000E) I don't understand what I've this message. ...

How to add datasource to a report in VS2010?

In VS2008 we have menu Report->Data Sources... which opens "Report Data Sources" from here we can see Project data sources & we can add them into our report by pressing "Add to Report". but in VS2010 RC there is no such thing like this (no Data Sources... option inside Report menu) any help? ...

How to do a burndown chart for the whole project in Visual Studio 2010?

I am very new to using Agile (scrum). we have planned sprints using story points, but have not assigned work (tasks) to all the user stories in the project, just in the sprint coming up. My boss wants to know how much work is left to do...and I don't know because I haven't planned those sprints. Can anyone give me advice or a resource...

VS2010 method comment block pretty format.

I have just installed the lastest RC of VS2010, which for me represents a shift from VS2008. A new comment formatting feature that I was looking forward to appears to be missing. About 6 months ago I read a Scott Gu blog post that mentioned a new VS2010 feature that would format /// style method comment blocks into more readable formatt...

Visual Studio 2010: highlight CSS text and comment

Consider a snippet of CSS code from a .css file in Visual Studio 2010 to be commented out. Normally Ctrl-E + Ctrl-C will comment your selected HTML and other source code. Highlighting CSS code & executing that shortcut combo results in a warning message: The key combination is bound to command (Comment Selection) which is not cu...

Why does adding a reference to project targeting .NET Framework 4.0 fail?

We have two projects that are both class libraries. Project 1 is a VS 2008 project and targets the .NET Framework 3.5. Project 2 is a VS 2010 (release candidate) project that targets the .NET Framework 4.0. When I try to add a reference to Project 2 in Project 1, it fails with a less than informative error message. I know that if I chang...

TFS Error: Unable to determine the workspace for this solution

Hello. I get this error when trying to "Go Online" with a project on a Visual Studio 2010 ALM project. The project was previously connected to a team project on Team Foundation Server (2010), but I had to reinstall both the SQL Server and the TFS installation and I guess all that information was deleted. Now, I'm trying to get the pr...

When developing a MVC project, is the the toolbox really useful?

I'm a noobie when it comes to VS, specifically VS 2010. I'm trying to learn MVC 2.0. If you're developing a pure MVC project, it seems like most of the toolbox is not useful. Shouldn't the IDE hide controls that aren't useful? Specifically, I'm looking at the AJAX extensions like Timer and UpdatePanel, but it seems like a lot control...

MVC 2 with VS 2010 View Building Error: Feature 'anonymous types' cannot be used because it is not part of the ISO-2 C# language specification

I have a shared project where I store all of my custom EditTemplates and DisplayTemplates. This is a regular C# class library project with the views all tagged as embedded resources. The target framework of this project is ".Net Framework 4". Inside the /Views/ folder I have included this web.config file so I get MVC 2 intellisense whe...

New asp "showat" attribute required inconsistently in VS2010. Why?

When I generate code using T4 templates in Visual Studio 2010, I get the following error for each of my asp controls when I try to compile: Control "ddState" is missing required attribute "showat". I have never gotten this error in previous versions of .NET. Further, I don't get this error when I manually construct my pages ei...