.net-4.5

Can Visual Studio 2012 be installed side-by-side w/ Visual Studio 2010?

女生的网名这么多〃 提交于 2020-01-09 01:52:50
问题 Will Visual Studio 2012 interfere/break .NET 4 and/or Visual Studio 2010 if installed side-by-side on the same instance of Windows? 回答1: As Reigo said, yes. Here's the link to the official Microsoft page with the information Reigo provided, and more details: http://msdn.microsoft.com/en-us/library/ms246609%28v=VS.110%29.aspx 回答2: The .net 4.5 release is an In-place upgrade. This means that the binaries for .net 4.0 will be REPLACED by the binaries for .net 4.5 . Microsoft has attempted to

Awaiting Asynchronous function inside FormClosing Event

你说的曾经没有我的故事 提交于 2020-01-08 21:51:54
问题 I'm having a problem where I cannot await an asynchronous function inside of the FormClosing event which will determine whether the form close should continue. I have created a simple example that prompts you to save unsaved changes if you close without saving (much like with notepad or microsoft word). The problem I ran into is that when I await the asynchronous Save function, it proceeds to close the form before the save function has completed, then it comes back to the closing function

Compiling as AnyCPU produces assembly with 32BIT flag set on 64-bit machine

无人久伴 提交于 2020-01-07 02:27:06
问题 I've created a brand new .NET 4.5 WinForm project in Visual Studio 2013 on a 64-bit machine. After compiling, I run corflags in the .exe and the 32BIT flag is set. Version : v4.0.30319 CLR Header: 2.5 PE : PE32 CorFlags : 131075 ILONLY : 1 32BIT : 1 Signed : 0 When I take a look at Task Manager, it's also marked as a 32 bit process. I didn't add any references that would maybe force it to run in 32-bit mode. I took a look at the project file and didn't spot anything suspicious either. I can

Unable to decrypt claims cookie from .NET 4.5 to .NET 3.5

為{幸葍}努か 提交于 2020-01-06 12:54:11
问题 I have been trying to get the following scenario to work for around a week now with no luck. I have 2 applications, a .NET 4.5 application that is claims enabled, which is working perfectly well (works with other .NET 4 and up applications); and a legacy Intranet system built using WebForms .NET 3.5. The legacy application CANNOT be upgraded to a later version of .NET (would be so much easier). What I want to happen is that when I login on the .NET 4.5 application, I need to be authenticated

Create an event handler for control created programmatically

元气小坏坏 提交于 2020-01-06 12:43:47
问题 I am working on a WPF application and what I want is if a specific Radio Button from group A is selected the program creates a second set of Radio Buttons call them group B and at the same time a disabled textbox. Now I want to create an event so if the user Selects option 3 from Group B the text box becomes enabled and when it is unselected it disables again. Now I have the working programmatically but when I try to create the event handlers I am referencing a non-existent control and it won

DataGridView doesn't update Enum in BindingList

假装没事ソ 提交于 2020-01-06 01:37:27
问题 The DataSource of my DataGridView is a BindingList<Filter> which contains an enum. The gridview contains only two columns: a regular textbox column for a string, and a combobox (drop down) column for the enum. If I bind the combobox column to the enum variable of my object I get an error. Here is the code for my objects: public class FilterProfile { public FilterProfile() { filters = new BindingList<Filter>(); // the list that gets bound to gridview } public string name { get; set; } public

Is single Request object instance in REST client okay?

醉酒当歌 提交于 2020-01-05 12:30:52
问题 I'm writing a simple REST client for a C# WinForm application. I use RestSharp to make sending requests and getting responses easier. I have a few questions regarding how I should design my client. The user interacts with the client only once. He pushes a Button and the client is instantiated and passed to private methods to do some logic in the background. It accesses objects from the server and synchronizes them with objects in the user's internal database. The point is that the client's

Infinite IObservable from Task function and toggle observable

好久不见. 提交于 2020-01-05 04:06:08
问题 I have two things : Function that returns Task<TResult> query and IObservable<bool> toggle . What I want to create is IObservable<TResult> that when toggle gets true , it start an infinite loop where it calls query every time and returns it's result. Then, when toggle gets false , it should stop the infinite loop. I did read how to make an infinite loop from task, but I cannot figure out how to toggle it on and off. Also, it cannot run the query in infinite loop and just filter it. It should

How to set entity framework 4.5 to never set any property as Nullable

▼魔方 西西 提交于 2020-01-05 03:31:41
问题 The one feature that I cannot stand with-in the Entity framework is where the complex Result object sets some properties as Nullable. Is there a global setting to where that Nullable property is never set to yes? 回答1: It appears that even if you get the property Nullable to be False , that it will still generate a Nullable version of your object. Check out the accepted answer of Entity Framework: Set nullable to false, but type is still nullable. Also, read How to manually update your Entity

Google Spreadsheet service Using OAuth 2.0 - C#

微笑、不失礼 提交于 2020-01-05 02:58:22
问题 I'm facing an issue with Google Spreadsheet service. Previously I used below code to call my spreadsheet then retrieve data and save into my local database. SpreadsheetsService service = new SpreadsheetsService("MySpreadSheet"); service.setUserCredentials(userName, password); string token = service.QueryClientLoginToken(); // Now 404 error SpreadsheetQuery query = new SpreadsheetQuery(); SpreadsheetFeed feed = service.Query(query); foreach (SpreadsheetEntry spreadsheet in feed.Entries){ //