.net-3.5 Questions

1

Solved

I am in the process of writing an application in C# which will open an Excel spreadsheet (2007, for now) via interop, do some magic, then close. The "magic" part is non-trivial, so this application...
Damon asked 1/11, 2012 at 14:45

7

Solved

Does anyone have any idea what the practical differences are between the System.Collections.Specialized.StringDictionary object and System.Collections.Generic.Dictionary? I've used them both in th...

6

Solved

I have a for loop with more than 20k iterations,for each iteration it is taking around two or three seconds and total around 20minutes. how i can optimize this for loop. I am using .net3.5 so paral...
Okoka asked 8/11, 2012 at 6:24

3

Solved

I have some code which is throwing an XslTransformException. This is the desired behavior (the XSL contains an xsl:message element with @terminate set to yes). I'm trying to catch this exception ...
Olcott asked 6/11, 2012 at 17:27

1

Solved

Why is it that for some of my web services, I get test forms, so I can see the generated XML data, but for other web services, I get a message saying "The test form is only available for reque...
Tonedeaf asked 5/11, 2012 at 15:7

3

Solved

Possible Duplicate: Is there an alternative to Dictionary/SortedList that allows duplicates? I am looking for a Dictionary sort of class which can have duplicate Keys. I search about...
Brion asked 1/11, 2012 at 20:8

4

I am able to fix a problem with a client where they cannot authenticate through a proxy doing the following: var proxy = WebRequest.GetSystemWebProxy(); proxy.Credentials = CredentialCache.Defau...
Redmon asked 22/10, 2012 at 19:55

4

Solved

I'm having an issue with converting a BitmapImage (WPF) to grayscale, whilst keeping the alpha channel. The source image is a PNG. The MSDN article here works fine, but it removes the alpha channe...
Jeanniejeannine asked 24/9, 2009 at 6:58

2

Solved

How I can get number of logical cores in CPU? I need this to determine how many threads I should run in my application.
Peckham asked 22/10, 2012 at 16:35

1

I have an application I have to check if .NET FW 3.5 has already installed. If already installed, I want to open a messagebox that asks the user to download it from Microsoft website and stop the i...
Reverso asked 19/10, 2012 at 14:38

5

How can i sort myScriptCellsCount.MyCellsCharactersCount (list int type) in linq public class MyExcelSheetsCells { public List<int> MyCellsCharactersCount { get; set; } public MyExcel...
Liv asked 17/6, 2010 at 14:10

1

Solved

I'm trying to implement a search function in a custom ListView and as such I am hiding Items with a custom ObservableCollection which allows AddRange, similar to the one defined on damonpayne.com (...
Attaint asked 18/9, 2012 at 12:16

6

Solved

I have a master page which is nested 2 levels. It has a master page, and that master page has a master page. When I stick controls in a ContentPlaceHolder with the name "bcr" - I have to find the ...
Grosberg asked 8/4, 2009 at 1:15

9

Solved

I have a dictionary of strings that i want the user to be able to add/remove info from then store it for them so it they can access it the next time the program restarts I am unclear on how i can ...
Groundwork asked 28/5, 2009 at 17:3

4

Solved

Looks like the following Ellipse in ControlTemplate does not get the BorderThickness, but why? <Window.Resources> <ControlTemplate x:Key="EllipseControlTemplate" TargetType="{x:Type Text...
Ladonna asked 26/11, 2009 at 14:26

7

Solved

It'd be really nice to target my Windows Forms app to the .NET 3.5 SP1 client framework. But, right now I'm using the HttpUtility.HtmlDecode and HttpUtility.UrlDecode functions, and the MSDN docume...
Impiety asked 30/8, 2008 at 20:13

5

Solved

is it possible to use dash (-) in a member name of an anonymous class? I'm mainly interested in this to use with asp.net mvc to pass custom attributes to html-helpers, since I want my html to pass ...
Lantha asked 5/3, 2010 at 18:32

4

Solved

I'm consistenlty getting this error on a multithreading .net 3.5 application ERROR 26 Exception thrown. Details: 'System.IndexOutOfRangeException: Index was outside the bounds of the array. ...
Frederik asked 5/10, 2012 at 14:19

1

Solved

I have a Decimal value representing fractional number of hours in a time interval. Now I need to sum this value to a TimeSpan, but I cannot find an effective method to do it. My solution, for now...
Verrucose asked 4/10, 2012 at 10:1

0

I need to acccess endpoint address in custom UserNamePasswordValidator in .NET 3.5. I am settting <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> and [AspNetCompatibility...
Vogele asked 2/10, 2012 at 9:28

3

Solved

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; // Ch...
Proselyte asked 13/5, 2011 at 15:23

1

Solved

I am trying to use Burn and WIX 3.6 to make an installer for my app. The installer must be capable of installing .NET 3.5 SP1 from Microsoft's web site. I am working from a working WIX project crea...
Puma asked 27/9, 2012 at 19:43

3

Solved

Having IEnumerable<Order> orders, how to get a Dictionary<string, IEnumerable<Order>> using Linq, where the key is Order.CustomerName mapped to a IEnumerable of customer's orders....
Juggins asked 25/9, 2012 at 17:53

4

Solved

It seems like many app providers are using OAuth2 to allow API access, such as Twitter and Facebook. Does anyone use a good library to do OAuth2 processing that is general enough to use acros...
Kudva asked 2/9, 2010 at 20:52

5

Solved

I am not trying to beat a dead horse, honestly. And I've read all the advice on thread killing, however, please consider the code. It does the following: It starts a thread (via StartThread metho...
Senior asked 18/9, 2012 at 0:7

© 2022 - 2024 — McMap. All rights reserved.