problem about visual-studio-2010-beta-2-Collection of common programming errors
Saeed Amiri
c# visual-studio-2010-beta-2 compiler-bug
Due to a bug that was fixed in C# 4, the following program prints true. (Try it in LINQPad)void Main() { new Derived(); }class Base {public Base(Func<string> valueMaker) { Console.WriteLine(valueMaker()); } } class Derived : Base {string CheckNull() { return “Am I null? ” + (this == null); }public Derived() : base(() => CheckNull()) { } }In VS2008 in Release mode, it throws an InvalidProgramException. (In Debug mode, it works fine)In VS2010 Beta 2, it doesn’t compile (I didn’t try Bet
Georg Fritzsche
wcf-data-services visual-studio-2010-beta-2 astoria .net-4.0-beta-2
There’s no obvious entry point for implementing a custom provider for an ADO.NET Data Service using IDataServiceMetadataProvider, and then telling a Data Service to use that provider. Has anyone had any luck in this area? I’ve tried implementing this interface on my Data Source class, but none of my breakpoints are hit. There is also no (obvious) way to set the provider from the Data Service’s DataServiceConfiguration parameter passed in to the InitializeService function.Any help would be apprec
John Saunders
visual-studio visual-studio-2010-beta-2
I was hoping there would an option somewhere that would just let me open my VS 2008 projects and continue working in .Net 3.5 – while using some of the neat new VS UI enhancements.
skaffman
visual-studio debugging visual-studio-2010-beta-2 mbunit gallio
When I use the [Debug] button in Gallio, the breakpoints in my unit tests are not hitting. The unit tests are written with MbUnit/Gallio. I am using MbUnit/Gallio version 3.1 build 397 with Visual Studio 2010 Beta 2. The unit tests run to completion in Gallio Icarus, but they run past the breakpoints. I see the symbol tables loading in VS, but it does not stop at the expected breakpoint, so I am unable to debug it.
PaulWaldman
.net-4.0 azure visual-studio-2010-beta-2
Presently .Net 4.0 is not supported on Azure.This thread indicates that you will not be able to use .Net 4.0 with VS 2010 until it is supported in the cloud. http://social.msdn.microsoft.comI’d like a way to start developing Azure applications locally utilizing the new features of .Net 4.0. I am fine with not being able to deploy these applications until Azure officially supports it. From within the VS IDE; I tried replacing .Net 3.5 application references with newer .Net 4.0 references and Vi
bludger
visual-studio visual-studio-2010 visual-studio-2010-beta-2 beta-versions
Is it safe to use the beta versions of Visual Studio?By safe I mean, while developing any project in this studio, is it probable that it may cause some losses to my project? Or any other kind of risk?Should I just use the studio 2008 andwait for the stable version of Studio2010?Purpose of the question: I am doing my graduation project in .NET framework (includes – C#, WPF etc.).So I don’t want to put my project at any risk because of some issue regarding (beta) visual studio.Hence the question.
bludger
Don Wakefield
visual-studio visual-studio-2010-beta-2
I was on the process of starting a new WPF application with VS2010 beta 2, and while trying to add some menu items to a window VS hang. I terminated the program and restarted it. However, since then VS2010 crashes every time i try to either open any solution or when i try to create one. There is no messagebox, nothing, just a beep and then VS crashes. Has anyone experienced this before? Is there any way to find out if vs writes or logs anything before crashing? This is really annoying. 🙁
Felix
visual-studio-2010-beta-2 source-server
I just installed VS2010 Beta 2. When it opens for the first time it gives me a security error that “use source server only if you trust the origin blah blah”. At this time VS crashes. VS itself comes up normally, but since the source server alert pops up, it is in a modal window, so VS stops accepting input until I dismiss the alert, which I can’t do.I don’t really need source server; so if I can figure out how to disable it through the registry or some similar way, it would be good enough for m
Jeroen Pelgrims
c# visual-studio-2010 ironpython visual-studio-2010-beta-2
I have a Python file with as content:import re import urllibclass A(object):def __init__(self, x):self.x = xdef getVal(self):return self.xdef __str__(self):return “instance of A with value ‘%s'” % (self.getVal())I also have a simple C# console project with the following code:engine = Python.CreateEngine();ScriptSource source = engine.CreateScriptSourceFromFile(“test.py”); ScriptScope scope = engine.CreateScope(); ObjectOperations op = engine.Operations;source.Execute(scope); // class object crea
Michael Mrozek
c++ namespaces visual-studio-2010-beta-2 std
I am working on the ‘driver’ part of my programing assignment and i keep getting this absurd error:error C2065: ‘cout’ : undeclared identifierI have even tried using the std::cout but i get another error that says: IntelliSense: namespace “std” has no member “cout” when i have declared using namespace std, included iostream + i even tried to use ostreamI know it’s a standard noob question but this has stumped me and I’m a novice (meaning: I’ve programed before…)#include <iostream> using
skaffman
visual-studio x64 visual-studio-2010-beta-2
I’m using Visual Studio 2010, running in Windows 7 X64 I was trying to create a simple WCF implementation of duplex communication. Sadly enough I got stuck very quickly.I have 3 projects: – Service library with simple service contract and the implementation – ServiceHost: Hosting the service library via SelfHosting – Client: Consuming a method from the WCF serviceSomething I immediately noticed that the Service library had Any CPU as platform . The other two had x86 as platform . At this point I
Web site is in building