.net

How will F# (sharp) be used?

I'm having trouble placing the concepts and possiblities of the to be introduced F# language from Microsoft. Will F# be used just for declaring functions? Or will applications be written 'entirely' in F# by mixing F# together with normal C# or VB code? ...

Is there a way to have my WCF settings set programatically?

I need to be able to store the XML of my web.config serviceModel element in a database, and have my application read it at startup. Is there a way to do this by just changing my startup code to "override" the serviceModel element in the .config file? I see there is an answer to another question about doing this for the appSettings sect...

Click-Once install .NET Framework over and over

The following dialog window keeps popping on my computer when starting "Click-Once" published application from Internet URL: [Microsoft .NET Framework Setup] - Would you like to download and install the Microsoft .NET Framework? The content you are trying to access requires the Microsoft .NET Framework. Would you like to download and i...

Iterate over all Query Values in C#

I'm trying to iterate over an unknown number of query values in C#... and can't find anything unrelated to LINQ, which I can't use. Anyone have any ideas? ...

Serializable partial classes

Guys, I have the follow VB.NET class definition: <Serializable()> Partial Public Class Customers End Class Inside another file I have the same thing (with different methods and variables of course). When I compile, I get the following error: Attribute 'SerializableAttribute' cannot be applied multiple times. The error is pretty self...

Show DNN stack trace?

I have a legacy DNN site, and an error shows up at the top of the page telling me that one of the modules failed to load. That's wonderful, but that doesn't tell me a damned thing about why the module didn't load. Does anyone unfortunate enough to work with DotNetNuke know how to view a stack trace when a module explodes? I keep looki...

What is type-safety?

I had a brainbench exam recently, got high mark, but there were a couple of questions which were hard for me. Maybe it's because english is not my native language... One of the questions is: Which one of the following describes type-safety? A programming construct used to ensure the security of reference and value types in the CLR ...

How do I add my program to PATH ?

For Windows: After my .NET program is installed, how do I set the system PATH to include my program absolute directory such that the user can launch my .exe from any directory within the console? Note: I want this to be done automatically without the end-user having to manually add the PATH himself. ...

Packet capture to database?

I'm a complete novice in database/PC application sp please forgive my ignorance. I'd like to capture packets to a database in real time so that multiple applications would have the ability to monitor physical I/O data being returned via udp packets from a PLC and I had a few questions. In the long run it will need to be cross platform ...

Best way to add logging in existing application (windows or web) .Net

Hi guys, I have inherited couple of .Net (C#) application which does not have any tracing or logging added to it. This application does everything from Creating , Reading , Updating and deleting records. It sends email and calls web services. Of course it is a nightmare to maintain it because there is no logging and no try catch mecha...

How would you approach this problem in F#? (high frequency sensor data)

Hello, I'm a mechanical engineering grad student and my adviser has just asked me to write a data visualization utility for one of our sensor projects. As it's summer and he wants me to have some fun with it, I thought this would be a great time to learn a language adept at scientific computing, so I went ahead and plowed right into F#....

Why is this Code Access Security example broken?

I know that CAS is of limited value, but I want to learn about it anyway. I don't understand the behavior I'm seeing: Basic default CAS seems not to work at all in my fairly normal environment. Take this sample class: using System; using System.Security; using System.Security.Permissions; namespace CASNotWorkingExample { class Pr...

What is the best AI language/framework for .NET?

I'm building an academic work that consists in a turn-based strategy game. I'm using XNA 3 for the graphics but didn't decide what to use for AI. I was considering to use P#, a Prolog interpreter for .NET but i found it a bit poor. Do you anything better for game AI than Prolog (maybe Haskell?) or a better interpreter then P#? ...

.NET Compact Framework Component Serializer

I am porting .NET Framework component to .NET Compact Framework. Component has ImageList in it. This component implements custom CodeDomSerializer. The constructor of the custom CodeDomSerializer contains following code for ImageList code serialization. TypeDescriptor.AddAttributes(typeof(ImageList), new DesignerSerializerAttribute(type...

In a .NET C# program, is it easy to transition from FTP to SFTP?

In a .NET C# program, is it easy to transition from FTP to SFTP? I'm trying to get a sense of how muh time it would take the contractor to make the transition. My personal experience is mostly with PHP, so I have no idea. Basically, what I'm talking about, what steps would have to be made? Obviously, different commands, but would anythi...

What reporting tools can I use for an XML datasource?

I'm looking for a reporting tool that I can use with an XML datasource. The XML files would be small, approximately 50-60K but may be as large as 200K. The goal of our project is to generate reports based on data submitted in the XML file. I understand I could simply use XSLT style sheets and output HTML but I prefer PDF, XPS, XLS, or D...

Where can I get a high resolution transparent version of the new .NET logo?

We've been using the FCG for a while to brand products and tools as .NET compatible. Microsoft has updated the look but I can't seem to find any high resolution versions of the logo. I'd be happy with a high-res PNG, PhotoShop or Illustrator file. ...

Ironpython console disappears instantly

I installed ironpython 2.0 in the windows xp professional box and it requires .Net framework 2.0 service pack 2 or later. The windows box has it. But still the console disappears. There is issue in either of them. Need help? ...

Get the item doubleclick event of listview.

How to get the item double click event of listview? ...

Using unmanaged code in .net

The case: There is a .net application calling unmanaged C code. Used method for this: public static class MiracleCreator { [DllImport("Library.dll")] private static extern void RunUnmanaged(string fileName); public static void Run(string fileName) { RunUnmanaged(fileName); } } It is used in a Windows Form...