Hi
I'm currently working on a .NET Cybercafe management program and would like to calculate the amount of data downloaded from the Internet by each computer in the Cybercafe, since users have to pay for their download amount.
I believe there has to be some sort of API in Windows to give me this.
Where should I look?
Thanks everyone.
...
Hello,
I just started using NUnit to write test cases for my asp.net web application project.
Some of the code written to access database values fetches the ConnectionString from a "section" defined under "configSections" of web.config file.
This works fine during the normal execution of the project on a web browser. But when I access...
Hi,
I've been serialising and deserialising .net objects using the XmlSerializer class without problem, however we now need somebody else to look at that data to perform some analysis on it.
In order to help with that we've produced an XSD based on our class like so:
xsd.exe /t:DataClass Assembly.exe
The start of the XSD looks like th...
In the MSDN documentation, System.Reflection.Assembly has a property called CodeBase which is defined as overridable.
Public Overridable ReadOnly Property CodeBase As String
However, if I try to create a new class that inherits System.Reflection.Assembly, I get an error message that tells me it cannot be inherited. So how can I overr...
I'm using reflection to access and store properties and fields. However, to avoid having redundant data, I want to get rid of auto-implemented properties' backing fields, which are also enumerated as normal fields. Looks like these backing fields are named as "{PropertyName}k_BackingField", and it would seem that I could make do with jus...
Official Mono project website says that Mono works successfully on Windows, Linux and Mac OS X. Is that true?
I want to build applications which work at least on Windows and Linux. Is it possible with Mono?
P.S. I know that similar topics already exist (e.g. http://stackoverflow.com/questions/56013/cross-platform-net), but they may be...
Now that the Sharepoint conference has started and at least some of the NDA restrictions have been lifted.
I was wondering which version for the .net framework Sharepoint 2010 will use. Am especially interested in if Sharepoint workflow is built on the workflow in .net 4.0. Since we have had problems with performance in workflow for .ne...
The question in short: How can I debug the code generated during a debugging session on the generating program? (see code below)
I am facing the following issue: I would like to debug into dynamically generated/compiled code from the application that generates it. I provided an oversimplified example to clarify it. This example doesn't ...
I just found "Has anyone published a
detailed comparison between different
in-memory RDBMSs?" that is related
to my question.
TimesTen (see also) is a In-Memory Database from oracle.
It has a lot going for it including.
Fast, consistent response time
High transaction throughput
Standard SQL, no application rewrite
Persi...
Dear ladies and sirs.
This question is in continuation of this one. The deal is simple.
Given:
A collection of lazily created singletons.
Multithreaded environment.
Wanted:
An implementation with as little lock penalty as possible when an already created object is accessed. It is OK to pay higher penalty on removal or lazy initia...
Is there an equivalent to F#'s List.map function in C#? i.e. apply a function to each element in the list and return a new list containing the results.
Something like:
public static IEnumerable<TResult> Map<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> funky)
{
foreach (TSource element in source)
...
To my knowledge Uri implements ISerializable, but throws error when used like this:
XmlSerializer xs = new XmlSerializer(typeof(Server));
xs.Serialize(Console.Out, new Server { Name = "test", URI = new Uri("http://localhost/") });
public class Server
{
public string Name { get; set; }
public Uri URI { get; set; }
}
Works just...
Hi,
I am using c# .net compact framework 3.5 and i want to convert a video file to byte array so that i may upload it on the server.
In the similar manner i am doing the image uploading which is getting the success result....
HttpWebRequest request;
request.ContentType = "image/jpeg";
request.ContentLength = byteArray.Len...
I need to dynamically generate some types. The generated type has several methods, constructors, implements an interface and defines the static constructor. Is there a tool that can help with the task?
I am aware of this plugin for Reflector, yet it is only useful on the method level, while I have to generate a whole type.
There is Run...
I'm trying to parse a URL, but I'm having problems:
http://www.meteor.gov.tr/deniz/deniz-suyu-sicakligi.aspx
When I call HttpWebRequest it throws a exception:
System.Net.Sockets.SocketException:
Eine vorhandene Verbindung wurde vom
Remotehost geschlossen
In english:
System.Net.Sockets.SocketException: a existing con...
First of all, just grant that I do in fact want the functionality of a Queue<T> -- FIFO, generally only need Enqueue/Dequeue, etc. -- and so I'd prefer an answer other than "What you really want is a List<T>" (I know about RemoveAt).
For example, say I have a Queue<DataPoint> dataToProcess of data points that need to be processed in the...
As my latest questions have stated, i am in a process of researching on Silverlight 3 and its application as a suitable RIA solution to a pre-built project a client of ours wishes to webify. And my experience in .Net and silverlight is about 3 - 4 weeks.
I have now become aware of .Net RIA Services. I require to use an existing VB class...
Is it possible to validate an XML file using an XSD loaded at runtime from embedded application resources instead of using a physical file, with .NET (Framework 3.5)?
Thanks in advance
...
.NET 4.0 introduces new support for dispatching invocations on dynamically typed objects. As far as I can make out, this involves:
no change to the CLR
new types in the BCL
new compilers that convert new syntax into usages of the new types
In the Java space, folks are discussing adding a new dynamicinvoke bytecode to the JVM such th...
One of our .NET 2.0 application started to just randomly disappear. There are no records in the Event log, Dr. Watson doesn't generate crash dump, no nothing...
How to troubleshoot this application?
...