.net

How can I grab all the child elements in XML?

From this XML response: http://www.dreamincode.net/forums/xml.php?showuser=335389 I want to grab all of the users friends. I need to grab all of the information from the friends. Usually with the help I've been given I would use the unique ID to grab each, but since each users doesn't have the same friends it has to be dynamic and I can...

.NET Web Service "Could not create type"

The markup and code-behind file contents for my .NET Web Service are as follows (pretty much what VS generated): Services.asmx: <%@ WebService Language="VB" CodeBehind="Services.asmx.vb" Class="Services" %> Services.asmx.vb: Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.ComponentModel <System.Web....

ConfigurationManager Class and On Demand configuration changes

Are there any events that will fire if someone edited my custom made application config? I wanted to know such changes and apply it on my application. ...

AvalonDock - Bind MenuItem to State of DockableContent

I'm using AvalonDock to layout my application. I want to create a "View" MenuItem with a checkable MenuItem for each of my DockableContents that will show/hide each item. I'm not finding an example of anyone doing this, and it appears to me the State property is readonly, making it not possible to create a 2-way binding to the MenuItem...

SFML in a WPF control?

I've recently chosen to pursue the possibility of using SFML in a WPF control. I've heard about something relating to the WindowsFormsHost class, in that I should render to a Win32 window and use the aforementioned class to display that in a WPF element. I read there were serious issues regarding speed related to that method, so I was wo...

HTML Agility Pack Fix <li> list order

I have been trying to use the HTML Agility Pack to parse HTML into valid XHTML to go into a larger XML file. This for the most part works however lists become formatted like: <ul> <li>item1 <li>item2 </li></li> </ul> As oppose to what I would expect: <ul> <li>item1</li> <li>item2</li> </ul> Unfortunately this fo...

FileSystemWatcher Events in IDE

FileSystemWatcher provide us different kind of events from changed to deleted. I was wondering why I'm getting deleted event whenever I used visual studio 2005 to edit a file and changed event if I'm using notepad or notepad++ and other editor? ...

.NET API for music programming?

In short words I am looking for a .NET translation of JFugue. Update I realize that there is no real .NET alternative for JFugue, the posts bellow are always great as a guideline for one who wants to develop it by his own. Thanks for all of you. Note: I want to emphsize that my search is on the transcription part, not the playing part,...

How to make an email notifier like google calendar?

Hi I am using asp.net mvc 2.0 C# .NET 4.0 ms sql server 2005 iis 7.0 I want to make an email notifier system just like many sites have such as google. I want user to be able to set a reminder date and when that date is hit a email is sent to them. I am not sure how to do this. I heard of a couple ways but have not found any tutor...

why the AdoNetAppender isnt writing log messages to the DB?

I am using the AdoNetAppender and here is a portion of my config file <appender name="ADONetAppender" type="log4net.Appender.ADONetAppender"> <bufferSize value="1" /> <connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <connectionString va...

Create Outlook Calendar through .net application

Is it possible to create a shared calendar in Outlook programmatically through a WebService, I am looking for behaviour similar to the calendar integration in SharePoint? The calendar would need to be read only and would not need to reflect changes back to the WebService (at this time) ...

Which .NET APIs should I use to implement a turn-based game server that will respond to an iPad client app?

I've done a search on SO for this topic and have found similar questions, though none seem to address my specific concerns. I'd like to experiment with building a turn-based, eight-person multiplayer iPad game. For this, I'll need to build a game server that manages all the different games being played at any given time. The backend f...

What's the easiest way to convert Int32's bytes to String?

Dim intChunkId As Integer = &H4D546864 Dim strCunnkId As String = "MThd" Dim easiestWay = GetString(intChunkId) ...

LINQ on a DataTable IN a CLR Stored Procedure.

Hi, does anybody know if it's possible (and how) to use LINQ on a DataTable inside a CLR Stored Procedure? I have no problems using LINQ on a DataTable in a standard WinForms proj however; I'm using a Database Project in VS2010 on SQL2005 and creating a Stored Procedure: (simplified listing) [Microsoft.SqlServer.Server.SqlProcedure] ...

.Net Remoting - Reboot Server and get reboot status

I have a client server set up between different computers on a network using .Net Remoting in C#. The server runs in a service that starts up when the computer turns on. I want the client to be able to restart the computer that is running the server service and receive a status if the restart succeeded or failed. What is the best appro...

Passing parameters to .NET ClickOnce-deployed application from Flex without URL being visible

Hi folks, I'm passing parameters to a .NET ClickOnce-deployed application via the URL from a Flex application. This is done by simply redirecting the user to http://myDomain/myApplication.application?a=1. I would like the URL to not be visible in the browser that links to the application. From what I understand, ClickOnce does not wor...

How to improve performance by processing database results in parallel?

Hi all, I have a .net application which runs in the region of 20 to 30 SQL queries and processes the results 1 at a time. I have been trying to increase performance by doing some work in parallel. 2 of the queries take 75% of the time, purely because of the amount of data they return. My initial experiments have been to try to split th...

Is there a .Net wrapper or driver for Cassandra NoSQL database?

Is there a .Net wrapper or driver for Cassandra NoSQL database? If so could anyone point me at a link to it? ...

Upload a File from My Desktop to a Secured File Server (FTP) via Winform

I have a Winform, i need to give a user a change to upload a file from the desktop to a remote file server. The user just browse and locate the file then click upload button. Anything else happens behind the seen. I'm using C# Windows Application. Please note that the file server requires authentication before uploading or downloading. ...

Sharing Console Application object to Self-Host WCF Service

I need to share my application statistics via a wcf service. I'm able to self-host my wcf service but ServiceHost object constructor is default leaving me to unable to initialize other member variables of my service. Sample: public interface IService { //some operations here } public class Service : IService { object myObject; ...