visual-studio-2010

Disable deserialzation Database Project Schema

Recently we started working with Database project in Visual Studio 2010. I have added a reasonably large database to the solution and imported all objects. All warnings have been eliminated so it builds fine. The one thing that really annoys me is that when you open the solution, the database project will start to load the database sch...

Split Stylecop rule SA1600

I like to split the SA1600 stylecop rule but how to do it? Right now it scans for undocumented classes, constructors, delegates, enums, events, finalizers, indexers, interfaces, methods, properties, and structs. I like to disable the warnings of some of them. ...

Installing Silverlight 4 Toolkit without Visual studio 2010 (for build server)

I have just been informed that the Silverlight 4 Toolkit (latest download) requires the prior installation of VS 2010. We are setting up an automated build server for a very large Silverlight Prism project and would prefer not to do a full install of VS 2010 on an unmanned build machine. Is VS 2010 actually required for an install of ...

My database (.MDF) doesn't seem to attach to my .\SQLExpress but i can view it in VS 2010 ?

Hi there, Can anyone help? I created a DB under APP_Data using ADD ITEM and choosing SQL Server DB and sure enough its there. I can even double click it and it opens up in VS 2010 in the Server Explorer tab. The connection that i have configured in my web.config is the following <add name="ApplicationServices" connectionString=...

Linker error with debug build with different compiler versions

Hello, We have a DLL, built with MS Visual Studio 2010, in release mode. We provide this DLL to different customers, along with a .lib file. The functions in the DLL are exported with: extern "C" __declspec(dllexport) int analyze(int id); Our customers have two applications that makes use of this DLL. Both of these applications im...

Visual Studio 2010 RDLC: Support for HTML?

I've read rumors that with the Report Viewer component of Visual Studio 2010 Professional, it is possible to render HTML from the database into a report. Unfortunately, I wasn't able to find definite information online and I'd rather not buy the upgrade just to try it out. Can anyone confirm or deny that this feature exists, preferably ...

VS2010 - SQL CRL Deploy error - Deploy error SQL04105: The model already has an element that has the same name

I have a SQL CLR project created in VS2010. It needs to run PreDeployScript.sql and PostDeployScript.sql. Both files exist in project. However, when trying to run the deploy, I get the following error messages: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.SqlClr.targets(96,5): Deploy erro...

Set application icon and window icon to Windows 7 friendly icon

I've created a WPF project in Visual Studio 2010 using .net 4.0 I've created an icon with many different sizes and formats right from 16x16 4 bit BMP up to 256x256 24 bit BMP. I set it as the program's icon in the property pages for the application, and as the window's icon in the icon propety on a WPF Window. This works to a point. ...

VS2010 C++ does not include paths to .pdb is my compiled .dlls according to dumpbin.

Visual Studio compiles the projects into dlls as I want it to, but when I inspect these dlls with dumpbin, then they do not have an entry for their pdbs, which is probably the reason why I cannot debug any of those dlls if I load them at runtime and their pdbs are never loaded. How can I get VS to write these paths? Visual Studio, C++. ...

VS2010 Publish Project

I am having trouble publishing to a Windows 2003 server in VS2010. In the past (with Vs2008) I just had to include the address of the server - now there are some new publish options such as "web deploy" and what not with some settings that I am not aware of. How do I get the publish working again? ...

Embedded Binary Resources - how can I enumerate the image files embedded?

Hello, I was following the instructions in this book, chapter on Resources etc. and what I can't quite figure out is, how do I replace this: images.Add(new BitmapImage(new Uri(@"/Images/Deer.jpg", UriKind.Relative))); images.Add(new BitmapImage(new Uri(@"/Images/Dogs.jpg", UriKind.Relative))); images.Add(new BitmapImage(new Uri(@"/Image...

Getting started with a cross platform C++ project

I am starting a c++ project which I would like to compile equally well in Eclipse (Linux) and vs2010 from the same repository and could use some help getting started. While many of the aspects can individually be Google'd, I was hoping for advice on how to approach the problem on a whole. For example, where to keep the library sources,...

Web Service Debugger Exception : Undefined complexType 'http://schemas.xmlsoap.org/soap/encoding/:Array'

I'm debugging a web service and only the first time I connect to it I get this exception on the DefaultWsdlHelpGenerator.aspx(?) class (take a look at the path) Now it seems to be related to compliance of the basic profile 1.1 but I have that turned off in the config file. <configuration> <system.web> <webServices> <confor...

How to dynamically add rows to a table in ASP.NET?

So today I started learning ASP.NET. Unfortunately I haven't found any good tutorials online, and I can't afford to buy books at the moment, so I've had to create a ASP.NET web application in Visual Studio 2010 and just play around with the default project setup. So far here's what I have in my Default.aspx: <%@ Page Language="C#" Auto...

WCF service reference generates void methods from WSDL

This is my first try trying to use WCF, so I'm guessing I'm doing something incorrect. I'm trying to access a soap service defined by the WSDL at http://confluence.atlassian.com/rpc/soap-axis/confluenceservice-v1?wsdl I'm using VS2010, and I add a Service Reference to my project and point it to the URL there (or rather, our intranet inst...

Visual Studio/Oracle Driver Help

Hi, I am trying to write a visual studio C# .net app which i can put on a subversion repository. The program runs on oracle drivers (Oracle.dataAccess) and should be easily managed and developed by anybody trying to access it. The problem is that Visual Studio finds the Oracle.DataAccess installed on the developer's computer and some ran...

Debugger.Launch() is now crashing my windows service after upgrading to .NET 4.0

For debugging environments, we have a conditional Debugger.Launch statement in the code to allow developers to debug into the startup code of the windows service. We just upgraded to .NET 4.0 today. Since the upgrade, if we exit out of the JIT window (i.e. we chose not to debug), the Windows Service is crashing (process is terminating). ...

Visual Studio 2010 extension (.vsix), obtaining the DTE2 instance

I have a Visual Studio 2010 extension, a .vsix file. I can obtain the DTE instance for my particular instance of Visual Studio, which I confirm by printing the dte_instance.Solution.Fullname. But for my DTE2 instance it appears to be giving me information about the wrong Visual Studio instance. Here is the work flow: Visual Studio devel...

Unable to create strongly typed view in VS2010 with Fluent Nhibinate and MVC2

HI, I was wondering if any one else had had a problem with VS2010 MVC 2 projects not being able to automaticly create a strongly typed view after doing a fluent mapping? When trying to do the mapping VS2010 doesnt show the Entities in the drop down and even if i manually put the class in it doent auto build the view . Cheers Dan ...

Is EntLib considered a plugin?

Is entlib considered a plugin (specifically the designer via right click on app/web.config)? I'm downloading/installing VS 2010 Express and I use EntLib 4 already with VS 2008 STD and I'm hoping that I'll still be able to use it with VS 2010 Express. I'd hate to have to go to manually editing the entlib config files. ...