.NET has a thing called remoting where you can pass objects around between separate appdomains or even physical machines. I don't fully understand how the magic is done, hence this question.
In remoting there are two base ways of passing objects around - either they can be serialized (converted to a bunch of bytes and the rebuilt at the...
Consider the following simple application: a windows form created by a "new C# windows application" sequence in VS that was modified in a following way:
public static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
try
{
Application.Run(new Form1());
}
...
Does anybody know of an html cleaner for .NET that can parse html and (for instance) convert it to a more machine friendly format such as xhtml?
I've tried the HTML Agility Pack, but that fails to correctly parse even fairly simple examples.
To give an example of html that should be parsed correctly:
<html><body>
<ul><li>TestEle...
I am working to a VB.NET windows forms projet in .NET 1.1. And I have this type of architecture, very simplified.
Public MustInherit Class BaseTestLogic
Private _TimerPoll As Timer
Public Sub New(ByVal sym As SymbolFileMng, ByVal cfg As LampTestConfig, ByVal daas As DaasManager, ByVal mcf As Elux.Wg.Lpd.MCFs.VMCF)
AddHandler ...
I have a UNC path of \\houtester\common\log library\graphics that I'm needing to use in my c# program and obviously it won't won't because of that blank space. How can I get this path to work?
Thanks
...
I get the following error when I try to compile my C# program:
The type or namespace name 'Login' could not be found (are you missing a using directive or an assembly reference?)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;...
Hi,
Can someone explain the letters after the '/' mean?
The example below show an extract of the dictionary
accessory/SM
access/SDMG
accidence/M
accidentalness/M
accidental/SPY
accident/MS
acclaimer/M
acclaim/SDRG
acclamation/MS
acclimate/XSDGN
acclimation/M
acclimatisation
...
Hi guys
Just wondering if anyone knows if there are any MSBuild starter kits out there.
What I mean by starter kits is that from the looks of it most builds to kinda the same sort of steps with minor changes here and there (i.e. most builds would run test, coverage, zip up the results, produce a report, deploy etc). Also what most pe...
At first I was using this as an extension method to update my detached entities...
Public Sub AttachUpdated(ByVal obj As ObjectContext, ByVal objectDetached As EntityObject)
If objectDetached.EntityState = EntityState.Detached Then
Dim original As Object = Nothing
If obj.TryGetObjectByKey(objectDetached.EntityKey, or...
Is there a way to get all format parameters of a string?
I have this string: "{0} test {0} test2 {1} test3 {2:####}"
The result should be a list:
{0}
{0}
{1}
{2:####}
Is there any built in functionality in .net that supports this?
...
hi all,
In my 'Person' class, I have some fields like 'firstname','lastname','nickname' and so on.
I want to write code to search dynamically, sometimes by 'firstname' and sometimes by 'nickname' field.
In the regular way, the code will be:
If(SearchBy == "firstname")
{
Person result = ListOfPerson.Where(p => p.firstname== "exp...
Question: I have a dll that I can load in another program.
Now the dll has access to all data/functions in the other program.
Which technology can I use that now an external program can send data/commands to that dll, to steer the other program, or get data from it ?
I mean, in the past that meant DDE, I think that was back in Windows ...
I want to map one to many objects Person
and PersonAddress
public class Person{
public virtual int Id {get; set;} public virtual string FirstName {get; set;}
public virtual ICollection<PersonAddress> PersonAddress { get; set; }}
public class PersonAddress{
public virtual int Id {get; set;}
public virtual int PersonId {get; set;}
... ...
I have a .NET WCF Rest endpoint configured through attributes (instead of using the web.config). I would like to achieve the <useRequestHeadersForMetadataAddress/> behavior with attributes. Any idea how to do that?
...
I have a C# program that is using the standard ApplicationSettingsBase to save its user settings. This was working fine under .NET 3.5. And the provided Upgrade() method would properly "reload" those settings whenever a new version of my program was created.
Recently, I recompiled the program with .NET 4.0. My program's version number...
I get the error mentioned when printing to a network printer.
The error does not occur when run under XP/Win2003, in a WinForm app or when a local printer is used.
The error does only occur when run as a Windows Service under Vista/Win7/Win2008 and printing to a network printer.
The Windows service runs under a network user that has a...
In my app I'm creating folders for archiving old stuff from a harddisc.
When creating a new folder I must copy all NTFS rights (Groups / Users) from the source folder to the newly created destination folder.
Here is what I've written so far:
FileSecurity fileSecurity =
File.GetAccessControl(filenameSource, AccessControlSections.Al...
I published a C# .net application to the wrong folder. I am using VS 2005. How do I unpublish the app to be able to republish in the correct folder.
I tried simply publishing to another folder and now the app will not run from either location.
...
How do I disable reliable sessions in a named pipe binding?
...
I'm aware that an ArrayList is probably not the way to go with this particular situation, but humor me and help me lose this headache.
I have a constructor class like follows:
class Peoples
{
public string LastName;
public string FirstName;
public Peoples(string lastName, string firstName)
{
...