.net-3.5-sp1

WPF: How do I prevent tearing with WriteableBitmap?

I'm using a WriteableBitmap to display images I process myself at around 20 frames per second. This question (WPF: More efficient way of displaying quickly-changing images?) and this question (How to display quick-updating images without large memory allocation?) indicate that the best way to do this is by using a WriteableBitmap. The ...

Read-only Run elements in a WPF RichTextBox?

I may be completely imagining this, but I could have sworn there was a way to make individual Run (or Parapgraph) elements in a RichTextBox read-only. I also could have sworn I tried a method for doing this out myself a few weeks ago and was satisfied with the results - I vaguely remember it looked something like this: <RichTextBox x:Na...

Installing .NET 3.5 SP1 on server broke WCF

I installed .NET 3.5 SP1 on server which previously had .NET 3.0 SP2. Before install site was working perfectly. After install and subsequeny server restart, site displays but anything that makes use of the WCF service has stopped working. The exception log reports exceptions like the following when any calls are made to the client pro...

WPF window goes black

Sometimes when i open a particular context menu on a button and then press another button the whole window goes black except for a rectangle. When i minimize and maximize or move the window to another screen the window repaints. I am registered to the button and context menu's events and it include some work like changing bounded propert...

Embeding a chat in an existing desktop user-enabled .NET application?

Hello. I am builing a win application that has user access control against a sql db, all the data is stored in this db as well. This project is to be installed in one site on 30-40 machines (I mean to say that it's not web, it's all in one place, maximum call it intranet). I want that while the program is logged on, the logged-in user ...

I need to implement a window application and validate users against a SQL DB.

Is there a way I could use custom membership provider without need to create an asp service for it? I prefer validating the users right from within the application exe itself against the DB. OTOH I still want to have a login form that implements System.Web.ClientServices.Providers.ClientFormsAuthenticationCredentials and interact with Sy...

Changing Context Menu's width results in poor rendering

All I wanted to do is have a context menu on a button with the width bounded to the button's width. Apparently that's to much. If you open the context menu and then decrease the size of the button and open it again everything's OK (the width gets smaller). If you increase the width (from 100 to 200 for example) the context menu's width i...

Upgrade website from ASP.Net 3.5 to 3.5 sp1

Is there anything special that needs to happen to a 3.5 web.config file to take advantage of new features in sp1? ...

How to write to .InstallLog during Windows Service installation

I'm using C# with .NET 3.5 SP1 in Visual Studio 2008 SP1. I have a .NET Windows service that I install using the technique described by Marc Gravell here. This solution simply bypasses the need to use the InstallUtil executable directly, meaning that I do not have to include it in my InstallShield project. When the service is first in...

3.5 SP1 Application Compatability Update (GDR) - Is there a list of known incompatabilities?

3.5 SP1 was released, which also included 3.0 SP2 and 2.0 SP2. All three of these service packs potentially introduced a number of incompatibilities if you were using these versions of any of the frameworks and installed the update. There was a lot of bad press regarding the SP1 update and the number of issues it introduced. e.g. http://...

Application done in Windows XP SP3 not working in Windows 7

I have done a WPF appliction using VS 2008 SP1 in Windows XP SP3. I copy the exe and dlls to my Windows 7 RC build 7100 machine. But the exe is not working. When I doubleclick on the exe, a message comes like 'Application stop working. windows is gathering the information'. Why this happends? I am overriding the OnStartup function in Ap...

MSCharts & .NET 3.5 SP1

i just download MSCharts, it says i need .NET 3.5 SP1 installed. i already have .net 3.5, whats the deal with sp1 ...

Entity Framework doesn't work with stored procedures!

Hi there, Is it true that you cannot call an sp with the EF unless the sp returns an entity? To test I created 3 Function Imports for an sp with 1. no return type 2. a scalar return type and 3. an entity return type then when i type "DataContext" then "." I only get intellisense on the function that returns an entity! I'm surprised t...

Replacing Process.Start with AppDomains

Background I have a Windows service that uses various third-party DLLs to perform work on PDF files. These operations can use quite a bit of system resources, and occasionally seem to suffer from memory leaks when errors occur. The DLLs are managed wrappers around other unmanaged DLLs. Current Solution I'm already mitigating this is...

Read WMF image from SQL Server

I am using a SqlDataReader and I am trying to read from a table I converted from an Access file, and is in SQL Server 2008. The datatype is now a varbinary(max). How do I convert this, so I can have it as System.Drawing.Image? It is a Windows MetaFile and I want to convert it to a PNG or GIF and save it to the filesystem. It appears ...

.NET3.5 SP1 patch

Hi All, Is the .NET3.5 SP1 patch cummulative? Means if I roll out .NET3.5 SP1, will it include or support .NET1.1 and 2.0 as well, or do I have to release all three versions in a order?? Thanks ...

Set System.Windows.Controls.WebBrowser's content to a static HTML literal?

Hello! I want to set up inline content of a WPF WebBrowser control: <WebBrowser> <html> <body><b>Inline content.</b></body> </html> </WebBrowser> Or alternatively: Dim wb As New WebBrowser wb.Content = "<html><body><b>Programmatic content</b></body></html>" ...

StructureMap, IIS 7.5 and FileIOException

Howdy all. I am trying to solve a problem which is apparently not uncommon and I'm not sure how to find how this was resolved for folks. When I run StructureMap on my machine through IIS I get an exception and it looks like this: **Description**: The application attempted to perform an operation not allowed by the security policy. To g...

ClickOnce, Skip asking for update (or fail lauch if skip is selected)

I update my ClickOnce app and then when the user runs they are asked if they want to install the new version: I am working in a highly controlled environment. When an update is available it has to be installed (backwards compatibility with the database is not ensured with old versions). Another option is to fail the run if skip is p...

WPF - Content section control

I am new to WPF and am trying to find the right control. I am coding a WPF app that has two sections. The left side is an Outlook like sidebar (Odyssey controls). For everything else I want a control that I can easily swap the contents of based on what is in the side bar. So the user selects an option in the side bar and all the cont...