.net-3.5

Target Framework change 4.0 to 3.5 breaks EF model. Error 111: Referential constraint errors

帅比萌擦擦* 提交于 2019-12-23 15:34:53
问题 I created a EF model in a library project which targets .NET framework 4.0. I just downgraded it to target framework 3.5 instead since one of the projects that will be using this library targets 3.5 and cannot be upgraded at the moment. After changing the target framework from 4 to 3.5, I am getting multiple 111 errors similar to: Error 111: Properties referred by the Dependent Role WfInstance must be a subset of the key of the EntityType xx.Entity.WfInstance referred to by the Dependent Role

VS2013 cannot add WCF service reference in solution

我与影子孤独终老i 提交于 2019-12-23 12:47:16
问题 I just created a WCF web site .net 3.5, I think by creting a default one would be enough to replicate. yet it is defficult to replicate. I have VS2013 with all updates as downloaded from my MSDN and I have windows 8.1. I must say, that a few months ago I was having the issue in some machines, so the other ones heleped and I was assuming it was something related with the installation, but now it is appearing on 3 different machines, one of them with windows 8. all of them 64 bits. The service

“Could not load file or assembly” Error. Works on my computer but not others

落爺英雄遲暮 提交于 2019-12-23 09:29:46
问题 I have a solution with a single project file. I am deploying as a ClickOnce application. It all runs fine and well on my computer but when I try to run it on someone else's I get this error System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. File name: 'System.Windows.Forms.DataVisualization, Version=3.5

Suddenly application crash - Fatal Execution Engine Error (7A0BC59E) (80131506)

亡梦爱人 提交于 2019-12-23 07:30:28
问题 Completely random and suddenly our application crashes on its production environment. The application runs on Windows XP and .net framework 3.5 sp1. In the application we provide a WCF service and we use the serial port. When the application crashes it leaves messages in the application log: .NET Runtime version 2.0.50727.3625 - Fatal Execution Engine Error (7A0BC59E) (80131506) For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. and Faulting

How do I detect a change of tab page in TabControl prior to SelectedIndexChanged event?

ⅰ亾dé卋堺 提交于 2019-12-23 06:46:11
问题 I currently determine what page of a tabcontrol was clicked on via the SelectedIndexChanged event. I would like to detect before the selected index actually changes, for validation purposes. For example, a user clicks a tab page other than the one they are viewing. A dialog is presented if form data is unsaved and asks if it's ok to proceed. If the user clicks no, the user should remain on the current tab. Currently I have to remember the previous tab page and switch back to it after an

How do I detect a change of tab page in TabControl prior to SelectedIndexChanged event?

烂漫一生 提交于 2019-12-23 06:45:15
问题 I currently determine what page of a tabcontrol was clicked on via the SelectedIndexChanged event. I would like to detect before the selected index actually changes, for validation purposes. For example, a user clicks a tab page other than the one they are viewing. A dialog is presented if form data is unsaved and asks if it's ok to proceed. If the user clicks no, the user should remain on the current tab. Currently I have to remember the previous tab page and switch back to it after an

Running builds using .net 3.5 MSBuild and NantContrib

孤者浪人 提交于 2019-12-23 05:05:15
问题 I noticed that projects that were originally created in VS 2008 do not compile using the nantcontrib msbuild task. There is a solution that I've seen here but it seems like a bit of a hack, considering 'MSBuildBinPath' has been depricated, and I don't exactly like the idea of changing this property on every single project file that I create in VS 2008. Short of changing build scripts to call msbuild through an exec task, is there any way to point the msbuild task at a particular version of

Run a method on all objects within a collection

末鹿安然 提交于 2019-12-23 04:54:47
问题 So I have a collection of Razzies created from a Collection of Bloops. I retrieve this collection using a Linq query. Reference:Linq Select Certain Properties Into Another Object? for the query. I would like to know if it is possible to run a method on all of the newly created Razzies before returning the collection, or even right after, just without using a for-loop. I tried this: Dim results = From item In bloops _ Select New Razzie() With _ { _ .FirstName = item.FirstName, _ .LastName =

Checking if Table Exists Keeping Connection Open in SQLite

风流意气都作罢 提交于 2019-12-23 04:50:14
问题 So I have a method which is supposed to check if a table exists in a database which is defined as follows: internal override bool TableExists(string tableName) { bool tableExists = false; // Check the Tables schema and see if the table exists using (SQLiteConnection conn = (SQLiteConnection) CreateConnection()) { conn.Open(); DataRow[] rows = conn.GetSchema("Tables").Select(string.Format("Table_Name = '{0}'", tableName)); tableExists = (rows.Length > 0); } // Actually called elsewhere in the

How to end excel.exe process?

我与影子孤独终老i 提交于 2019-12-23 03:45:09
问题 i m trying to get excel sheet-name of a excel file from vb.net 3.5 however it opens but excel.exe still remains in the process. How do i stop the process without killing the excel.exe from task manager? i realise new excel.application starts new process. i tried to use quit, close and dispose.......................nothing worked Below is my code Dim sheetName As New Excel.XlSheetType Dim newExcell As New Excel.Application Dim newWorkBook As Excel.Workbook = app.Workbooks.Open(MyFileName) Dim