.net

Why doesn't DateTime.ToShortTimeString() respect the Short Time format in "Regional and Language Settings"?

I have run into an issue that is probably due to my mis-understanding of how the DateTime.ToShortTimeString() method works. When formatting time strings with this function, I was assuming that it would respect the "Short Time" setting in Windows 7's Format settings Control Panel -> Clock, Language and Region -> Region and Language -> Fo...

Event vs Delegates

Possible Duplicate: What is the difference between a delegate and events? Possible Duplicate: Difference between events and delegates and its respective applications I am little confuse about use of event and delegate, what is difference between these two and where I should use what ? ...

Fails to start .NET app, ConfigurationErrorsException

Hi, I've installed a clean XP virtual machine for test purposes, only .NET 3.5 SP1 redistributable is applied. When I try to start our WinForms app, it gives the following exception: System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsExcept...

IIS 6.0 DirectoryEntry properties list

Hi I'm new to accessing IIS 6.0 using C# code. I'm using DirectoryEntry to set properties in IIS, but would like to have better understandig of what properties that I can access, and how. So if any of you have experiance using DirectoryEntry to access IIS 6.0, and know of a propertie list or a good staring point, can you help a new guy...

Stable RSS reader using .NET

Hi guys, i have been looking for stable RSS/Atom library for .net? Preferably open Source like As3 syndication library created by Adobe? Are there any other option? I want to integrate RSS feed in my .net based site . Also are there any javascript libraries for the same RSS feed reader? thx amit ...

Best Online Video Training Sites for latest DotNet technolgies..

Which site is offering latest dotnet technologies online video training.. (MVC, TeamSystem, LINQ, WCF etc..) i know pluralsight.com offereing on demand video training with latest contents.. but, price is little high.. anybody know any other better sites with quality content. ...

iTextSharp and DataGridView

Where can I find a code snippet which can convert a DataGridView to a PDF document using iTextShape or something similar? I want to have the same table headers as in DataGridView in my PDF document. ...

Single Precision Math Operations in .NET?

The .NET framework's Math functions mostly operate on double precision floats, there are no single precision (float) overloads. When working with single precision data in a high performance scenario this results in unnecessary casting and also calculating functions with more precision than is required, thus performance is affected to som...

Deploying Oracle PL/SQL Packages using a .Net deployment project

I am trying to put together a deployment package for a psolution which needs to configure an Oracle database schema. The schema contains most of the Oracle object types in one form or another. I want to run the deployment entirely from the deployment application, and have created a custom installation task to perform most of the action...

Abstracting .NET logging with Common Infrastructure Libraries:

Hi, I've recently been considering abstracting my logging across the application. A more specific post on another resource led to the recommendation of the "Common Infrastructure Libraries": http://netcommon.sourceforge.net/ Specifically, the Common.Logging class, which provides a common interface which can sit in front of a number o...

Spring configuration file cannot parse elements defined in my own schema

I have a very simple xsd which defines an element "cache" <?xml version="1.0" encoding="UTF-8" standalone="no"?> <xsd:schema xmlns="http://mysite/schema/cache" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://mysite/schema/cache"&gt; <xsd:complexType name="objectType" abstract="false"> <xsd:attribute n...

How do I get a path suitable for storing temporary files?

Hello, C# 2008 SP1 I have created an updater for our clients application. The way the updater works is to download all the updated files and store them in a temporary folder then check the file hashes. If everything is ok it will copy the files to the applications installation folder. Once this is been completed it will delete all the ...

Using Enterprise Library Data Access Application Block with strongly typed data sets

I want my strongly typed data sets to be database agnostic. Is it possible to use Enterprise Library Data Access Application Block with strongly typed data sets? ...

Microsoft.XLANGs.Core.ServiceCreationException : Failed while creating a ABC service

After deploying a set of services on QA environemnt, one orchestration is suspended with message Microsoft.XLANGs.Core.ServiceCreationException : Failed while creating a ABC service. In windows event log, I found: Object of type 'XYZ.Schemas_BFX_v01' cannot be converted to type 'XYZ.Schemas_BFX_v01'. any clue what causing this except...

Merging Two ObservableCollections

I have two Observable Collections that I need to merge into one collection. This arises because I have two methods, getTasks(staffID) which returns an ObservableCollection and getTasks(teamID) which selects the staff and pulls back the staff tasks. For the teams I will have multiple small observableCollections, I just want to merge the...

Searching for strings in big binary files

I have a big binary file (1 MB < size < 50 MB). I need to search for a string and extract the subsequent four bytes (which is the {size,offset} of actual data in another file). What is the most efficient way to do it so that the search would be fastest? EDIT: The strings in the index files are in sorted order. ...

Download when idle/low network utilization

I have an update service that needs to pull data down from remote, however like Microsoft's BITS I'd like to do this when the user is idle and/or when their network utilisation is low so as to not impact on their experience. What do I need to do or look at? Can anyone point me in the right direction on where to start with this and get t...

Does WCF require configuration to handle different methods of authentication?

A WCF service has been written and can be hosted in any web site. These web sites could use Windows, Kerberos, or Forms authentication. Is any particular configuration or development required within the service to handle these different authentication types? Or is authentication independent and the service doesn't need to worry about it...

Putting ListBox in ScrollViewer: mouse wheel does not work

Hi all, My mouse wheel does not work when putting a ListBox in a ScrollViewer. Does the ListBox somehow "steal" this event? <ScrollViewer VerticalScrollBarVisibility="Auto" Style="{StaticResource myStyle}"> <ListBox> <ListBoxItem>Test 1</ListBoxItem> <ListBoxItem>Test 2</ListBoxItem> <ListBoxItem>Test 3</ListBoxItem> <ListBoxIt...

Collection with equal elements in .Net configuration section

I am interested, if it is possible to have collection with same elements in .Net configuration. Like this, for example: <RetrySettings> <RetryTurn PeriodBeforeRetry="0:05:00"/> <RetryTurn PeriodBeforeRetry="0:10:00"/> <RetryTurn PeriodBeforeRetry="0:30:00"/> <RetryTurn PeriodBeforeRetry="1:00:00"/> <RetryTurn ...