.net

Parsing Documents with a DSL

I'm trying to come up with a way to go through about a million documents which are formal documents (for arguments sake, they are Thesis documents). They are not all standardized but close enough. They are Titles, sections, paragraphs etc. There are subtle differences that might crop up such as in english, we call a title "Title" but in ...

System.Exception vs System.SystemException

What is the difference between System.Exception vs System.SystemException ...

Does sketchflow have a layout container?

All I see as a rectangle. What I'd like to do is have a panel and add controls into it (buttons, textfields, etc.) and then when I move the panel the controls move with it. Any ideas? ...

How to use CollectionAssert (and Linq?) to find all the values for one property, are the same?

Hi folks, this is an extension to a previous question I asked, today .... which highlighted the use of CollectionAssert to help test collections (which I never knew). I have an ICollection<Foo> foos; This has a property called Status, which .. to keep things simple, is an int or byte (whatever floats your boat <-- see what I did there?...

TCP programming with .NET

Hey, I'm having an issue with a socket programming job. I wrote a TCP client that sends commands via sockets/networkstream. I'm using Wireshark to look at the raw data that goes through the wires. Everytime I send a "command" (meaning I Flush() the networkstream), the Wireshark application tells me that the checksum in the TCP Header is...

The requested resource is in use. (Exception from HRESULT: 0x800700AA)

How can i solve this error " The requested resource is in use. (Exception from HRESULT: 0x800700AA)". This appear while navigating to different website using WebBrowser control in C#.net. can i know why? Thanks ...

.NET - A way to add my own clipboard format to existing formats

I have a Excel addin that displays some structures on the worksheet. Users can copy the structures and paste them in another worksheet or another application which is handled by the Clipboard formats. When a user copies the structure, I convert the structure into a specific format and put it on the clipboard using the DataObject::SetData...

Writing a text file

Using VB.Net and SQL Server 2005 I want to write a text file from the database like Open a text file, read the data from the database then write into the text file. Code. cmd = New SqlCommand("SELECT ID, Name, Dept from table", con) dr = cmd.ExecuteReader While dr.Read() Dim data As String ...

Where should the DAOs go in a project structure?

I am working on a project in VB.Net and need to implement the DAL. I am not quite sure where in my project is the best place to stick the DAOs. Should I stick the DAO in the same namespace as the business objects that are going to use them. Or should I lump all the DAOs together. I have a Java background which might taint my understandi...

How to use the mutex code in a C# program?

I have gone through the code of mutex, but it is giving me errors like: public override void dispose(bool disposing); no suitable method found to dispose This is occurring on initialize component, so I have commented that portion, but the major error I'm facing is on the design view part: The designer cannot process the code a...

How can create a webapplication in dotnetnuke framework?

I am very new to dotnetnuke. and want to know. steps to create and build a webapplication in dotnetnuke. how can we add module using dotnetnuke. how can we handle database in sqlsever 2005 or later on it. Want to know briefly and understanding explanation. ...

What is the difference between framework and architecture?

Really want to know diffenrence between framework and architecture. like dotnetnuke is the framework and mvc is the architecture. so if we take both this as a example. then can anyone tell me difference between. Want to know Which one is using when and Where? Which is good in terms of user requirement satisfaction? ...

How to run the mutex code in c#.net on button click event?

This is my code which I had tried to run in my c# .net 3.5 program but I'm getting errors. What am I doing wrong? error CS0115: 'Form1.Dispose(bool)': no suitable method found to override This is the code where i got the error: protected override void Dispose(bool disposing) { if (disposing) { this._userConnectionO...

Why Dumping a .NET Process Increases Memory Usage

We have a .NET service using ~30MB of memory at startup. (VM ~= Mem usage) I wanted to dump the process and find out what is holding those 30MB. The CDB debugger generating the mini-dump increased mem usage by 100MB. From the dump I could see those 100MB were image memory (DLLs) -------------------- Usage SUMMARY ---------------------...

Exception in Custom Action during RollBack

In custom action I override following function and got exception in rollback case... "savedState dictionary does not contain the expected values and might have been corrupted ". Is there any other way to rollback ? protected override void OnBeforeInstall(System.Collections.IDictionary savedState) { try ...

Why can I parse invalid values to an Enum in .NET?

Why is this even possible? Is it a bug? using System; public class InvalidEnumParse { public enum Number { One, Two, Three, Four } public static void Main() { string input = "761"; Number number = (Number)Enum.Parse(typeof(Number), input); Console.WriteLine(nu...

Unit testing with an external host process dependency

I'd like to run some NUnit unit tests against a class in a .Net class library assembly which is designed to be hosted by an external process (outside of my control) and loaded at runtime. The class I want to test derives from a class defined within the host exe that requires it to be instantiated within the host process. Any attempt to...

.NET DateTime to SqlDateTime Conversion

While converting .NET DateTime (when is default(DateTime)) to SqlDateTime should I always check if the .NET date is between SqlDateTime.MinValue and SqlDateTime.MaxValue [or] Is there a good way to do this. ...

Resizing image programmatically in C#

Possible Duplicate: Resize an Image C# How can I programmatically resize an image in C# so that it'll fit in a winforms control? ...

Parse JSON in .NET runtime

Hi. I want to get some response from WebServer. The returning data looks like this: [[3014887,"string1 string","http://num60.webservice.com/u3014887/b_c9c0625b.jpg",0], [3061529,"string2 string","http://num879.webservice.com/u3061529/b_320d6d36.jpg",0], [7317649,"string3 string","http://num1233.webservice.com/u7317649/b_a60b3dc2.jpg",...