.net-3.5-sp1

Is there a way to set System.Windows.Controls.SplashScreen to a System.Windows.Window

Hello folks! I was wondering if I can set the splash screen to a programmatic SplashScreen instead of having to do it thru an image. Any ideas? Best regards ...

Implement a "Remember me" CheckBox in windows application?

Hello I am creating a Windows application (WPF) that is going to be running in few stations accessing 1 database. I already implemented a login form with a login system thru My.User.CurrentPrincipal. Now, I want to implement a "Remember me on this computer" check box in the login form, where should I store the value? Should it be a coo...

Entity Framework: Separation of concerns

Hi there, I'm using the EF and wondering how other people are separating the Data Context from the Entities. Basically i need one tier to access the Data Context (the model object) to call SaveChanges() etc.. and other tiers need access to the Entity type itself. So for example if a method returned an Entity and i called that method fr...

WCF: Timeout error

Hi there, I have a piece of code that calls a WCF service that is hosted on a server. The code keeps looping around and around calling this method over and over again. (It's asking for a 'status', so it's not doing any work at all). That's fine except that after a short period of time I get an error: This request operation sent to n...

.Net 3.5 sp1 unable to start debugging on web server.

Hi, When trying to debug my web application, I'm getting an "unable to start debugging on the web server" error then with html displayed right after in the same pop up. All the inline code in the html shows an exception e.g object reference not set, unhandeled exception was generate, etc. I tried all the suggestions on google to no ava...

AutoResetEvent, ManualResetEvent vs Monitor

Lets say i have to orchestrate a synchronization algorithm in .net 3.5 SP1 and any of the synchronization primitives listed in the title fit perfectly for the task. From a performance perspective, is any of those more performant than the other? I ask this because I have been coding for a while now, but without proper knowledge on the s...

WCF: DuplexChannelFactory timeout error

Hi there, I'm using a DuplexChannelFactory when accessing my WCF service so that my service can use a callBackChannel to communicate back to the client. That's all fine but I get a timeout error when creating the CallBackChannel if I do not use the channel for a period of time. I create the callBackChannel like so: OperationContext.Cu...

Is there a workaround to IE7's user agent being defaulted after installing .Net Framework 3.5 SP1?

I have verified that after installing the .Net Framework 3.5 SP1, when the User Agent string exceeds a certain number of characters, the user agent is defaulted to 'userAgent string:Mozilla/4.0 (compatible; MSIE 6.0)'. I've verified this behavior on several machines but can't seem to find a suitable workaround. This is preventing some Si...

Array.IsReadOnly inconsistent depending on interface implementation

A typed array implements both the System.Collections.IList and System.Collections.Generic.ICollection<T> interfaces, which both have their own IsReadOnly properties. But what on earth is going on here? var array = new int[10]; Console.WriteLine(array.IsReadOnly); // prints "False" var list = (System.Collections.IList)array; Console.Wri...

How can I stop a TreeViewItem from fireing the Selected event for itself, and its parent?

I have a TreeViewItem that when Selected, calles a method. However, I am finding that when the Selected event is called, the Selected event for the parent TreeViewItem also seems to be called. I would really rather than not happen, but I haven't been able to find any documentation telling my why this is happening in the first place. Co...

Set value to null in WPF binding.

Hello, please take a look at the following line <TextBox Text="{Binding Price}"/> This Price property from above is a Decimal? (Nullable decimal). I want that if user deletes the content of the textbox (i.e. enters empty string, it should automatcally update source with null (Nothing in VB). Any ideas on how I can do it 'Xamly'? ...

.Net Framework Prerequisite requirements if application build with .net 3.5 SP1?

What all versions need to be present on a user machine if I want to install an application (desktop wpf) made mostly out of .net 3.5 SP1? From your experiences ? ...

CryptDeriveKey (OID) is unknown whit SHA256 under Windows 7 64 bits

I'm testing some components i build with vs2008 SP1 targeting .net framework 3.5 SP1. I'm getting the exception "(OID) is unknown" in the method PasswordDeriveBytes.CryptDeriveKey passing "SHA256" as the parameter of the hashing algorithm (I also tried with "SHA256Managed" and "SHA256Cng" as mentioned here), this method works OK under X...

How to use the Validator controls with controls other than TextBox?

I want to use the Validator control to validate a FCKEditor rich text control. Is there a way to do this on either client and/or server side? And a broader question, is there a way to use the Validator controls for anything other than text boxes? ...

The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly

I am getting repeated errors about the ReadOnly property on performance counters whenever I try to debug a .NET windows service app. This app works fine on x86 windows vista, or x86 windows 2003. It's just stopped working on my new 64bit dev machine. I've run the relevant InstallUtil invocations on 64bit and 32bit command line VCVARS.b...

Silverlight: Passing a complex object between pages

Hi there, In pageA I have a HyperlinkButton that links to pageB private void Link1_Click_1(object sender, RoutedEventArgs e) { HyperlinkButton btn = sender as HyperlinkButton; string url = btn.Tag.ToString(); this.mainFrame.Navigate(new Uri(url, UriKind.Relative)); } How can I make a COMPLEX obj...

Installing Entity Framework

Hi there, I'm currently using Entity Framework at my job, but I've recently try to get it on my personal computer but I still didn't find a way to get it. Sure, I've searched on google but not really find any exe and not any thread that explain that. Thanks to help me out! ** EDIT ** I've now access to System.Data.Entity. But I've no...

upgrade visual studio to sp1

i'm going to install sql server 2008 on my computer,during preparing the installation there was an error like this: a previous release of Microsoft Visual Studio 2008 is installed on this computer. Upgrade Microsoft visual studio 2008 to sp1 before installing SQL Server 2008. So i should upgrade my visual studio to sp1, but i don't kn...

Unable to access DCOM object from Windows Service written in c# (platform Windows 2003 server) but can access the object when hosted as a console application

I have written an application in C# that writes to an accounting system via a DCOM object (name of the object is Toolkit Object). When this application is hosted as Windows Service in Windows 2003 the service is unable to open the DCOM object although the user identity under which the service is running has all the necessary access right...

Are there differences between running .NET app with 3.5 requirement on machine with or without SP1?

I have an application which requires 3.5 (not SP1.) My understanding is that SP1 is an additive service pack. Therefore, installing SP1 on a machine would not affect my application in any way besides performance. As far as I can tell from the sources listed below, SP1 is mostly about new features, and significant performance improveme...