visual-studio-2010

Visual studio 2010 connects all databases in Server Explorer when opening a solution

Hi to all ! Basicly, I think the title of the post here says it all. I am working with Visual Studio 2010 Ultimate 10.0.30319.1 RTMRel. EDIT: I am running Windows 7 x64. Everytime I open a solution it tries to connect to all databases present in Server Explorer. My problem is that some of them are not always available over internet so...

where's the ASP.Net WebService in Visual Studio 2010?

I am trying to create my first webservice. I've been googling for a tutorial or examples and most of what I find is from previous versions of Visual Studio and say to create a new ASP.Net Webservice...but that doesn't exist in 2010! What I need to do is have the service receive 2 strings, an agency and a man number. Then run a query t...

How do I make endpoints compatible with Silverlight 4?

I added a service reference to my project and the following warning appears in my error list... " Custom tool warning: No endpoints compatible with Silverlight 4 were found. The generated client class will not be usable unless endpoint information is provided via the constructor. " How do I create SL4 compatible endpoints? Why is my cu...

The specified type member 'DateTime' is not supported in LINQ to Entities

I am using the latest development version of the connector - 6.3.3 beta to connect to a mysql database via the Entity Framework 4 in VS2010. I have the following Linq statement which uses a TIMESTAMP column - createdDate - in the query. Here is the code: int timeThreshold = 5; DateTimeOffset cutoffTime = DateTime.Now.A...

What are some top reasons to upgrade to Visual Studio 2010? (while staying with .NET 3.5)

Beside IntelliTrace, what are some top reasons to upgrade to Visual Studio 2010? ...

Is there a way to show ALL the compiler warnings in Visual Studio 2010?

I'm cleaning up a project to get rid of all the warnings, but I can only see the first 100 or so in the Error List pane. This is a problem because we're using Team Server for source control and all the warnings shown are in files that are currently checked out (and therefore I can't modify without making someone else possibly do a lot o...

Object initializers in using-block generates code analysis warning CA2000

If I use object initializers in using-block I get Code Analysis warning about not disposing the object properly: CA2000 : Microsoft.Reliability : In method 'ReCaptcha.CreateReCaptcha(this HtmlHelper, string, string)', object '<>g_initLocal0' is not disposed along all exception paths. Call System.IDisposable.Dispose on object '<>g_initLo...

errors when i try to add db from another server to my solution

I have a classic ASP website I am working to try and convert to .NET- one page at a time. I am using VS2010 for this. The development db is on a network share drive, and when I try to debug my application I recieve an error because the BIOS command limit has been reached, as a result of the db being located on a network share drive. Is t...

Can I use intellisense for CSS in ASP.net 2010?

I've just installed Visual Studio 2010, but I cant seem to manage to get intellisense working to suggest classes. ...

Visual Studio 2010 Designer Bug: Unable to copy from obj\debug to bin\debug

Wondering if anyone has a solution to this 2010 bug. I have a project that built fine in Visual Studio 2008 that wont build in 2010 because Visual Studio is holding on to the dll after the application is run ONLY if a designer window is open. I created a really light weight project that shows this problem. If you create an applicatio...

Will Visual Studio Express for Phone 7 series mess up Visual Studio 2010?

I have Visual Studio 2010 professional installed. If I install Visual Studio Express for Phone 7, will Visual Studio 2010 still work? ...

Can I use all C# 4.0 features in a project that targets .Net 3.5?

Development Environment : - VS2010 - .Net Framework 4.0, 3.5, 2.0 Staging and Production Environments: - .Net Framework 3.5, 2.0 The project I'm working on is targeting .Net Framework 3.5. And today I used optional parameters feature, which is new to C#4, in this project and it worked fine. I think VS2010 is using C#4 compiler and is c...

How do I configure SQL to be a "shared hosting provider" for use within the Database Publishing Wizard?

VS2010 has the ability to either create a script, or "publish to shared hosting provider". What do I need to do to be able to use my private SQL server to become a Shared Hosting Provider for my dev team? What are the benefits of using this versus using traditional SQL scripts? ...

Visual Studio 2010 and WPF: Creating a special template

Hi! :-) Is it possible to do the following in VS 2010: Create a new template (or something similar) so I get a XAML - view and a view model, completely with the INotifyPropertyChanged implementation and a view model invoker, all in one? Create a project template that gives me a view and a full view model in App.OnStartup(...) instead ...

Can`t find the parent of a control which is in another page of a different project from source code

Hy, Can someone tell me how can i find the page parent of an element in Silverlight 4. The element is in a page of a Project2 (is a userControl), and i want to find that page in the codeSource of the ControlElement. The code which i use now is this (this code is in control): Project1.MainPage pageM = Application.Current.RootVisual as Pr...

Using variables in VisualStudio Application settings.

Hello, i have this little problem, i use the Application settings in VS 2010 to configure a path. now it would be convenient if i could add a variable there (its an argument) so it looks like this: C:\EXAMPLEDIR\... is there any way todo this? Or should i change the settings at startup in code? is this even possible (i would like to avo...

Visual Studio 2010: Automation/Packages/Macros, what to use?

Microsoft seems to have little discoverable content on the differences between all the different kinds of Visual Studio extensibility. The closest thing I've found to a description of the differences was an MSDN page that had a general "when to use which" list that could have been summed up with "it depends" for all cases. I am curious ...

msbuild across different solutions

We've started to separate out our single VS solution into multiple solutions for better maintenance. I am wondering if there is any best practice out there for msbuild script that build across multiple solution that may depend on the same project dll. For example: solution 1 contains [proj1 and proj2] solution 2 contains [proj3 which ...

What exactly does the EF wizard update when doing "Update model from database" in VS 2010?

Using VS2010 and .NET 4 what exactly does the ADO.NET EF wizard update when you right click in the EF model and select Update from database because I have a feeling that very little. For instance, making a column optional (null values allowed) in SQL Server Management (a value that was previously not nullable) and updating the model in...

How to debug in clr.dll or mscoree.dll

I followed these steps to be able to debug in the .Net framework code. This work well for some parts of the framework (for example for System.Drawing.dll), but not for other parts (clr.dll, mscoree.dll, ...). This seems a bit strange to me since the code in these dlls was released by Microsoft (at least the parts I see in the call stack...