visual-studio-2010

How to update DataContext based on changes in the database structure?

断了今生、忘了曾经 提交于 2019-12-31 00:46:20
问题 I'm working in Visual Studio 2010 using linq-to-sql's DataContext which has several maps to tables in the database. Now when I change something to the structure of the database I noticed that the DataContext doesn't change and results in errors. The DataContext no longer corresponds with the structure of the database. I usually resolve this issue by deleting all table maps in the DataContext and drag&drop them again from the Database Explorer in Visual Studio. I just feel that this is very

Could not launch xxx.exe. Previous attempt to profile the application finished unsuccessfully. Please restart the application

给你一囗甜甜゛ 提交于 2019-12-31 00:35:50
问题 I am facing an error message while profiling a c# console application in VS 2010 (using CPU Sampling method of profiling). When I click on Start Profiling: following error message is displayed: "Could not launch D:\xxx\yyy\zzz.exe. Previous attempt to profile the application finished unsuccessfully. Please restart the application." I have tried to profile a new Console Application, but I face the same error message. What can be the reason for this error? Do I need to configure something?

What causes the VS 2010 SP1 WPF Designer to crash?

送分小仙女□ 提交于 2019-12-30 18:59:33
问题 We're experiencing crashes on various machines in the VS2010 WPF designer in the following scenario: VS 2010 SP1 installed 64 Bit Windows 7 Reference to NHibernate.dll (Version 1.2.0.712) To reproduce the Error, create a new WPF Solution, perform the following actions: create a new WPF solution open the main window, add a textbox to it, set some static text add a reference to FluentNhibernate.dll, Version 1.2.0.712 Clean and Rebuild the solution Open main window in designer again, edit text

Getting Sql Server Data Tools to work with Visual Studio 2012 Express Release Candidate

随声附和 提交于 2019-12-30 18:54:13
问题 I'm struggling with migrating to Visual Studio 2012 Express Edition to handle a project that includes a database project with a .dbproj extension. This blog http://visualstudiomagazine.com/blogs/data-driver/2012/06/getting-visual-studio-2012-and-ssdt-to-work-together.aspx gives the impression that with a bit of work this is all basically manageable. First you have to convert the .dbproj to a .sqlproj in Visual Studio 2010. I managed to install Visual Studio 2010. This allowed me to convert

Looping through DataGridView Cells

心不动则不痛 提交于 2019-12-30 18:48:10
问题 I am creating a program that generates a bar code and then prints the shipping labels. I have a function that allows the user to upload a spreadsheet into the datagrid view. One of the column names is "Tracking Number". I would like to be able to loop through each cell that has a tracking number and then generate a barcode into a a new cell in a column called "barcode". I understand there is a loop function for this but I have never used it before. The code that generates the barcode is the

Telerik + Visual Studio 2010 Toolbox = Maddening Problems

自作多情 提交于 2019-12-30 18:38:05
问题 Has anyone ever found a solution to either of these problems: When entering any design mode in Visual Studio 2010 (WPF, EDMX, Silverlight, Reporting, etc) I see a message in the status bar like Loading toolbox content from package Microsoft.VisualStudio.IDE.Toolbox.ControlInstaller.ToolboxInstallerPackage '{2C98B35-07DA-45F1-96A3-BE55D91C8D7A}'... This locks VS for about a minute everytime. Telerik toolboxes have many duplicate controls. Toolbox doesn't show any items when expanded. I think

Warning: The referenced component 'Microsoft.Office.Core' could not be found

走远了吗. 提交于 2019-12-30 16:25:10
问题 When building one of my projects, I'm getting the following warnings: Warning 3 Cannot find wrapper assembly for type library "Microsoft.Office.Core". Warning 4 The referenced component 'Microsoft.Office.Core' could not be found. Strangely, the build fails with no errors. The warnings above seem to be the problem. This started happening after I installed some Office 2007 updates from Windows Update. Before that it was building everything fine. Has anyone experienced the same issue? Any ideas

How to uninstall application programmatically

Deadly 提交于 2019-12-30 14:32:09
问题 I tried this,this to uninstall the application programmatically. I am not getting any error or exception but the application is not uninstalled from my machine. Please see tried code also public static string GetUninstallCommandFor(string productDisplayName) { RegistryKey localMachine = Registry.LocalMachine; string productsRoot = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products"; RegistryKey products = localMachine.OpenSubKey(productsRoot); string[]

How to uninstall application programmatically

女生的网名这么多〃 提交于 2019-12-30 14:30:48
问题 I tried this,this to uninstall the application programmatically. I am not getting any error or exception but the application is not uninstalled from my machine. Please see tried code also public static string GetUninstallCommandFor(string productDisplayName) { RegistryKey localMachine = Registry.LocalMachine; string productsRoot = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products"; RegistryKey products = localMachine.OpenSubKey(productsRoot); string[]

How to add wcf service at runtime

强颜欢笑 提交于 2019-12-30 13:43:41
问题 How can i add wcf service at runtime in my winform UI. I created a wcf service which return running processes of hosted machine. I want to add the hosted machine service in my winform application. 回答1: You need to change endpoints dynamically at runtime, so You need WCF Discovery. Structure : WCF Consumer(s) <---> WCF Discovery Service <---> WCF Service(s) Implementation : How to: Implement a Discovery Proxy How to: Implement a Discoverable Service that Registers with the Discovery Proxy How