I'd like to create a named pipe transport on Windows Mobile 6.x in Compact Framework 3.5.
After googling and so, I got that Named Pipes classes in .NET Framework 3.5 are not available in CF, and P/Invoke cannot be done because I found no support for SafeFileHandle, so I can't invoke "CreateNamedPipe" from "kernel32.dll".
Then, I was wo...
Hi,
I need to monitor and control a set of Windows Services that are running either on a local machine or remotely. I've heard of WMI and ADSI and the first one seems to do what I want.
Before going deep into it, I just want to check if I'm going in the right direction?
Thank you
EDIT
Additional information: I also need to inspect SQ...
I am migrating an old ASP application to a modern .NET version, to cut down on development times we are looking at the .NET 4.0 Entity Framework. However, we seem to have hit a brick wall in our development with this issue.
Given is a small part of our database:
A table OBJECT which contains a list of cars and their respective propertie...
without using GroupJoin:
var playersDictionary = players.ToDictionary(player => player.Id,
element => new PlayerDto { Rounds = new List<RoundDto>() });
foreach (var round in rounds)
{
PlayerDto playerDto;
playersDictionary.TryGetValue(round.PlayerId, out playerDto);
if (playerDto != null)
{
playerDto.Rounds...
We have a problem with an asp.net website we part build and host for a client. About a week ago the website would just failed to respond to requests, no error was returned. No code was deployed by us but the client does upload non compiled pages from time to time.
Restarting the app pool the site runs on fixes the problem but in 1-8 h...
Exactly as the title suggests. When I click a button on my webpage it should display a asp .net panel control that was previously hidden. The error I get is
Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
The KB Article points to a few things but most notibly "Th...
i just loved the fullcalendar and wanted to implement it in a small application, everythin worked OK. i am able to get the events from my database through json to the front end. but all events are being listed as "ALL-DAY" events itself. not able to figure out why.. here is the screenshot for the same. any ideas what is going wrong..? i ...
I am very new to Fluent NHibernate and I have a problem that I cant find the answer to.
I have a string column in my database table, containing a mathematical expression i.e: "10 + 15 * 5". On my entity I have a property that I call Formula and this returns a class that contains the mathematical "formula" (not as a string).
I beleive t...
Let's say we use NASM as they do in this answer: how to write hellow world in assembly under windows.
I got a couple of thoughts and questions regarding assembly combined with c# or any other .net languages for that matter.
First of all I want to be able to create a library that has the following function HelloWorld that takes this par...
We have the project structure as follows:
COMExposedCCW.dll -refers-> BusinessLayer.dll -refers-> Utils.dll
COMExposedCCW.dll -refers-> Utils.dll
The COMExposedCCW.dll has been registered for COM interop.
From the COM application we can successfully create the CCW object and access its properties, but when we try to invoke methods th...
When supplying the string value for this windows principal method .... do you always to supply
the Domain also or can you just supply the Group's name and thats abt it???
MSDN:
//Get the role using the string value of the role.
Console.WriteLine("{0}", myPrincipal.IsInRole("BUILTIN\\Administrators"));
Console.WriteLine("{0}", myPrinci...
I am a pretty much a newbie to Entity Framework (specifically version 4) and I am trying to understand an issue I have.
I have an ASP.NET MVC2 project I am using with Entity Framework 4 and a Repository class. I have a simple foreign key relationship that I have defined. When I run my MVC project I am able to load the MVC form and updat...
Hi All
I'm a noob when it comes to WPF; In win forms I can do this:
public void blah()
{
using( var o = new OpenFileDialog())
{
if(o.ShowDialog() == DialogResult.OK)
{
PictureBox p = new PictureBox();
p.ImageLocation = o.FileName;
p.AutoSize = SizeMode.AutoSize;
...
I just click submit button and got an exception. Unable to debug, because this happens before the submit event handler work.
I tried to clear sitecore caches, browser caches and cookies... nothing helps.
here the stack trace.
[NullReferenceException: Object reference not set to an instance of an object.]
Sitecore.Web.UI.WebControl.G...
How to enable and run Database Mail in SQL Server 2008 . I know that it need
Enabling Service Broker
Configuring SMTP (a Mail server is needed)
Using Configuration Storeprocedure.
I don't know what's the relation between application and dataBase mail. Actually How to enable Database mail for a RollBack and Commit Transaction ? (not f...
What is Service Broker in SQL Server and is it meaningful to enableitin a simple Database, Not in a distributed DB.
please do not close this question, I saw others similar question and non of them answered me.
...
Am writing unit test for a multi-threading application, where I need to wait until a specific event triggered so that I know the asyn operation is done. E.g. When I call repository.add(something), I wait for event AfterChange before doing any assertion. So I write a util function to do that.
public static void SyncAction(EventHandle...
I'm creating a silverlight 4 custom control. The control's template is defined through generic.xaml.
The control includes ItemsSource and ItemTemplate properties similar to an ItemsControl. The template includes (amongst other things) and ItemsControl which has its own DataTemplate, however inside that DataTemplate I have a ContentContr...
I have a scenario where in my custom control I have a custom Dependency Property called MinValue of type int.
I want to allow the user to change that value via keyboard input Ctrl++ (increase) and Ctrl+- (decrease). I undertand this can be done with Commands, but am clueless as to where to implement those Commands.
The user should be a...
When creating a record "grid" with custom paging what is the best/optimal way to query the total number of records as well as the records start-end using C#?
SQL to return paged record set:
SELECT Some, Columns, Here FROM (
SELECT ROW_NUMBER() OVER (ORDER BY Column ASC) AS RowId, *
FROM
Records
WHERE
(...)
)...