.net

Why use wcf over web services on .net Compact Framework?

Let us assume I'm using communicating from my mobile device to my server via WCF web service. I could also do this with a standard web service as well. I have read the WCF Guidance for Mobile Developers (http://wcfguidanceformobile.codeplex.com/), the only thing I see there is WCF has SSL support while straight web services do not. No...

Create and Display 'File Copy' like Animation

Hi, I've searched around quite a bit on the Internet and I'm now pulling my hair out. I reckon this should be relatively simple. I'm sure I'm not the first person to want to do this. Here's what I want to do: I want to 'compile' a custom animation, from still images, and save it as an avi, or some other [animation] file format. As...

In reference to ASP.NET Caching, what is the purpose or reason for sliding expiration?

I am looking for a good explanation of why one would use sliding expiration when caching data in a Web application. It seems as if you would always want to cache content using absolute expiration so the data is forced to be refreshed. With sliding expiration you risk having your data be cached indefinitely. Is it only useful for cachi...

Recovering Broken Connections In A Peer to Peer Network

Hi All, I am implementing a peer to peer network using WCF NetPeerTcpBinding connections. I am using a central server which itself overrides the class CustomPeerResolverService. All this service does is register peers, and publish information about the peers to each other. On my server application I can visibly see which peers are cur...

Windows mobile device with credit card swipe and printer?

We're looking to produce a custopm application for a client written in .Net. The application will have a basic inventory and the user will sell an item, swipe the customer's credit card and take the payment. Is there a device that runs Windows Mobile and has a Credit Card swipe facility and a Printer in one? If not any recommendations...

.Net XML Serialization issue

Hello everyone, My confusion is, I am using .Net C# XMLSerializer to serialize a customize defined type, using the schema/cs file generated by XSD tool from an input original XML file. But the generated serialized XML file namespace is different from original XML input file. Especially from original XML file, Envelope belongs to namespa...

How to connect to the remote machine using c# and getting sqlserver instances ??

Hi How can i connect to the remote machine and getting the local instances using smo or any thing. using smo i did it for local instances but i dont know the same for remote instances how to do this. (My idea is connecting to the rmote computer and call the EnumAvailableSqlServers(true)) Can u give me ideas to do this??? Thanks in...

Automatically detecting incompatible DLL references

Is there a tool that takes a solution or a set of DLLs, and automatically detects incompatible references (two DLLs that reference that same DLL but with different versions, thus resulting in hard-to-detect runtime errors). Currently we're debugging such problems using Reflector, I'm looking for a magical automatic tool. ...

How do I test that every property in an object has been set/given a value?

I'm working on a legacy system that has uses stored procs, business objects and DTO:s. The business objects and the DTO:s often have the same properties. When calling a method in the service layer that returns a DTO, many transformations are happening. Stored proc -> dataset -> business object -> DTO. If a new property is added, it somet...

is there any problem to install different oracle 11g versions

is there any problem to install different oracle 11g versions. I mean if I have installed oracle 11.1.0.6 and i do install oracle 11.1.0.7 will anything conflict, such as oracle_home path, or any registry keys? will it cause any problem to .Net references to Oracle dlls? ...

How to Create a Virtual Windows Drive

Hello, I'm trying to create a Windows Virtual Drive ( like c:\ ) to map a remote storage. The main purpose is to do it in a clear way to the user. Therefore the user wouldn't know that he is writing/reading from another site. I was searching for available products, and i find that FUSE is not an option in Windows and WebDAV maps direct...

Designing a generic data class

Hi All, I want to popuate a listbox with objects of different types. I display the type (humanized) of the object in the listbox. I created a class ListBoxView that overrides the ToString method and returns a string according to the type. I create a List of ListBoxView and databind this to the listbox. public class ListBoxView { p...

Most useful Website links for a .Net developer

While working in new technologies we all tend to do a lot of googling on our problems. And while doing so we encounter a lot of useful sites. One of my favs is obviously Stackoverflow.com. To name a few more www.Codeproject.com http://www.eggheadcafe.com www.15seconds.com msdn and my most fav http://www.asp.net/learn/ pls contribute...

How can I change the extension of the file name in a SaveFileDialog when the user changes the filter?

We have an SaveFileDialog in our application, which offers a variety of formats the user can export media in. We determine the user's choice of format using the FilterIndex property of the SaveFileDialog. The various formats have different file extensions, so we would like the file name that the user has entered to change extension whe...

Choosing the fonts for windows forms application

Hi, I'm trying to design a windows form application. By default, .NET had put Tahome 8,25 on toolbar and Microsoft SansSerif 8,25 on everything else. To improve general look and feel of the forms I'd like to change them. Which font family should I use as a default? And what size should they be? For: Classic data input form (label + te...

Log4Net Not Rolling

Hi Everyone, I have a problem with Log4Net. Running C# .Net 2.0 Log4Net Ver. Not Sure. How do I check it? Think it's 1.2 It seems to only spawn a new file everytime I restart the web config. Any ideas why my log file isn't rolling over? <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> <max...

How to ensure WPF application will run perfectly on user computer?

Recently I made the WPF application and want to publish it for many users but application seems to have problems on some target user machines. It simply crashes when user is starting it. I build app with .NET Framework v.3.0 as target version and user machine has .NET Framework installed. I just want a way to ensure (for instance with in...

Subsonic 2.2: Update only works for some fields?

MyTable.Update(long.Parse(id), txtLocation.Text, txtCode.Text, locale, chkAvailable.Checked, DateTime.Now); Neither chkAvailable.Checked or DateTime.Now cause an update but changing the other fields do... What's going on? I'm using SQL Server 2005. .NET 3.5 SP1 Rob ...

RegEx for ICQ UIN

What RegularExpressionValidator.ValidationExpression should I use to allow only ICQ UIN like input? xxx-xxx-xxx and xxx-xxx-xx and xx-xxx-xxx and xxxxxxxxx so on.. i.e. with dash as separator and without. ...

Using LINQ with classes implementing non-generic ICollection

I wanted to run a LINQ query against a MatchCollection object but found this wasn't possible as it doesn't implement ICollection<T>, just ICollection. What is the best option for using LINQ with non-generic collections, both in terms of code conciseness but also performance and memory usage? (If interested, here is the non-LINQuified c...