visual-studio-2010

Why is a datasource not created for one of our EF models?

We have a Model project with 4 EF models in it. Notice the properties folder starts out empty. With the Model project selected I open the data sources window. Three datasources are created and displayed. You can see how it creates a .datasource file for each model, except the eFinancials model. Any ideas why this happens. There i...

"Unable to start debugging" - VS2010 ASP.NET MVC 2

I can lunch debug session only once with VS2010 and ASP.NET MVC2. When i end first session and try to lunch another i can see... "Unable to start debugging" - no other messages, I'm using Visual Studio Development Server instead of IIS, Windows 7 64-bits I can add that few days ago i was working on Windows XP and everything was fine. ...

VS2010 Changing style sheet based on the browser

In Visual Studio 2010, is there a way of changing the Cascading Style sheet on the server-side based on the client browser? I want to create different style sheets for the different browsers (Firefox, Chrome, IE, Opera, Safari etc..) and specify which one to use from the master page. ...

How do I keep MSDeploy from deleting extra folders in my project?

I am using the MSBuild runner in Team city to build and deploy my project to a staging environment. Everything works perfectly except for the fact that it keeps removing my repository folder located in the root of the project. In Visual Studio 2010 there is a check box in the publish profile dialog that says "Leave extra files on destin...

How do I access the CodeDomProvider from a class inheriting from Microsoft.VisualStudio.TextTemplating.VSHost.BaseCodeGeneratorWithSite?

Does anyone know how to get a CodeDomProvider in the new Microsoft.VisualStudio.TextTemplating.VSHost.BaseCodeGeneratorWithSite from the Visual Studio 2010 SDK? I used to get access to it just by in mere inheritance of the class Microsoft.CustomTool.BaseCodeGeneratorWithSite, but now with this new class it is not there. I see a GlobalSer...

Why am I getting an "Ambiguous Match" error here?

The page that I'm currently working on searches for various entities based on what portfolio they are in. In order to apply the other search criteria (besides for Portfolio) the page first gets the entities by portfolio and then applies the criteria to them, as shown here: IPortfolioLogic logic = this.objectFactory.GetObject<IPortfolioL...

How do I invoke an F# function from the VS2010 immediate window

While debugging an F# application, I would like to be able to invoke an F# method from the VS2010 immediate window but it doesn't seem to work. The problem appears to be that F# methods are actually FSharpFunc objects. I tried using the "Invoke" method but the interactive window doesn't recognize it. ...

JQuery plugin - BlockUI - works strangely from Visual Studio ?

Using the BlockUI JQuery plugin I find strange behaviour from within an ASP.Net page. I've implemented one of the BlockUI plugin demos (you can try out the original here - http://malsup.com/jquery/block/#dialog ) within an ASP.Net page. When I serve this page from Visual Studio (MVWD 2010 Express) the 'Would you like to continue' dialo...

AJAX for Visual Studio 2010

I download the ajaxcontroltookit.binary4 file from codeplex is there an installer to install ajax 4 for Visual Studio 2010. Could someone give me some links to these things that I need, please ...

AJAX Templates for Visual Studio 2010

Is there a installer to install AJAX templates for Visual Studio 2010 like when you create a new website all the AJAX configuration is automatically put in the config file, like they did it for VS 2005 and 2008. If there is could someone give the link ...

Is it possible to connect to multiple TFS server from Visual Studio 2010 Team Explorer

I want to connect to multiple TFS server from Visual Studio 2010 team explorer. Say I have connect to TFSServer01 and selected projects P1 and P2. I would also like to connect to another server TFSServer02 and select a project P3. But doing this in team explorer is not possible. It forcibly closes the first connection. This is the scena...

Is there a way to collapse code in Visual Studio with ASPX inline code?

If I use the Code Behind method, VS 2010 automatically gives me a way to collapse functions in my C#/VB.NET code. If I'm using the in-line method where my C#/VB.NET code is inside the script tag of the ASPX page, there's no option for this. Is there a work-around or a plug-in that will enable this feature for in-line code as well? It'...

Visual Studio: Syntax highlighting for Doxygen-style C++ comments

Hi all! I want enchanted syntax coloring in comments for C++ language in Visual Studio 2010. For example, I have the following code: /*! \sa testMeToo() \param a the first argument. \param s the second argument. */ int testMe(int a,const char *s); In Visual Studio all \param, \sa and other Doxygen commands are not h...

Silverlight f5 debugging error

I am attempting to create a simple silverlight 4 application in visual studio 2010 ultimate running on windows 7 x64 and I am unable to use f5 debugging. The error is: Unable to start debugging. A fatal error occurred. For more details, please see the Microsoft Help and Support web site. HRESULT=0x8004005. In researchi...

dotnetopenauth asp.net mvc2 project template - broken when running from localhost:xxxx

So I create a new dnoa mvc2 site from the template, run setup.aspx without issue, login and authorize my openid - all ok, but on the redirect to http://localhost:18916/Auth/PopUpReturnTo?dnoa.uipopup=1&dnoa.popupUISupported=1&index=0&dnoa.userSuppliedIdentifier=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid&dnoa.op_endpoint=https%3...

Add connection point bug?

Hello, Today I had to pass the ATL Tutorial from MSDN but met a problem. Unfortunately, I'm not a real C++ developer and can't do it myself. In Step 5 when I add connection point, wizard create _IPolyCtrlEvents_CP.H but it doesn't implement the Fire_ClickIn and Fire_ClickOut methods. How I can implement them? I'm using VS2010. Thank...

silverlight 4 project into a single solution or seperate?

i started off with a new silverlight 4 project in a seperate solution while my web app, database, bll/dal and web services are in a seperate solution. I quickly ran into the whole clientaccesspolicy.xml problem when silverlight client tried connecting to my other solution running in http://localhost:4415/ but that just doesn't work with ...

How to get rid of "unsafe" warnings (strcpy, sprintf, strdup)

I'm trying to get rid of some compiler warnings that say strcpy, sprintf, etc are unsafe. I get why they're unsafe, but I can't think of a good way to fix the code, in a C++ style. Here's a excerpt of the code: extList->names[i]=(char *)malloc(length*sizeof(char)); strcpy(extList->names[i],extName); // unsafe // str...

How can I use Visual Studio 2010 for C development?

I would like to do some C development in Windows environment using Visual Studio 2010. There are a few similar questions on this topic, but they are all based on that you are creating a Win32 console application, and a C++ project. How can I do C development using only .c and .h files as I do in Unix? without creating a C++ projects con...

Code Analysis tool errors with "The given key was not present in the dictionary."

I get the following unhelpful error while building my .NET project when Code Analysis runs. It happens both in Visual Studio and building from the command line with MSBuild. * 1 total analysis engine exceptions. MSBUILD : error : CA0001 : The given key was not present in the dictionary. Any ideas on what is broken? Edit: Have fo...