.net

looking for open source .Net wiki/blog

Hello everyone, I am looking for easy to use/maintain open source .Net based wiki/blog. I do not have Active Directory setup, so appreciated if it is open source with SQL Server based user management wiki/blog. I need the project written in .Net (C#). Any recommendations? thanks in advance, George ...

Errors from a .NET 3.5 project show up as .NET 2.x

While my ASP.NET project uses version 3.5 of the framework, the event log registers errors as coming from version 2.X of the framework such as this: Event Type: Error Event Source: ASP.NET 2.0.50727.0 Event Category: None Event ID: 1334 Date: 2009-05-19 Time: 17:04:29 User: ...

Policy Injection Application Block in real world apps?

The PIAB of the Microsoft Enterprise Library looks like it could be used for some pretty cool things. Many people were questioning how it would perform in real world applications, due to its use of remoting-based interception techniques. I haven't heard much about it recently and am wondering if anyone has had good or bad experiences f...

EndInvoke changes current CallContext - why?

I have following test [Test] public void aaa() { CallContext.LogicalSetData("aa", "1"); Action parallelMethod = () => CallContext.LogicalSetData("aa", "2"); var r = parallelMethod.BeginInvoke(null, null); parallelMethod.EndInvoke(r); Assert.That(CallContext.LogicalGetData("aa"), Is.EqualTo("1")); } Can anyone ...

Is it true I should not do "long running" things in a property accessor?

And if so, why? and what constitutes "long running"? Doing magic in a property accessor seems like my prerogative as a class designer. I always thought that is why the designers of C# put those things in there - so I could do what I want. Of course it's good practice to minimize surprises for users of a class, and so embedding tru...

Automated Recording Tools

Is there any good test recording tools that can record the actions that are performed on a .Net application? I am doing desktop .Net application, and sometimes users can crash the application after a series of long-winded steps. So in this case, a test recording tool is helpful as it can collect the mouse clicks and mouse actions the us...

Testing Linqto SQL classes

How do I unit test my code that has LTS Datacontext. I get error while testing, I have a lot of Datacontexts and manually adding the Connection string is a pain, any suggestions. ...

How do I pass a Generic::List by reference?

In an attempt to wrap some unmanaged code in a managed .dll I'm trying to convert a Generic::List of data points into a std::vector. Here's a snippet of what I'm trying to do: namespace ManagedDLL { public ref class CppClass { void ListToStdVec( const List<double>& input_list, std::vector<double>& output_vector ) ...

.NET Properties in COM Interop?

Is it true that you cannot use COM Interop to expose COM properties? Everything has to be a method? If this is not true, how do you do it? ...

{"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."}

Hello, I have built a simple application framework around Unity. I.e. Form and user controls are discribed as xml and built dynamically. I have a form which contains a ComboBox which when closed causes the error detailed below. The problem does not occur if the ComboBox is substituted for a ListBox control. Some googling raised som...

Castor and IKVM

I've converted an api written in Java into a .net dll using IKVM, and so far it's been good. It basically uses xml behind the scenes to access some web services. The api is 3rd party, and I have no access to the source code. The api uses Castor to (I believe) bind xml into objects. However, when I started to use some of the more usef...

HTML generator for .NET?

Having used Seaside the past few years I've found template systems to be a bad code smell. Is there a framework for .net using something similar to the Seaside canvas system for generating html, css and javascript? Or else a way to avoid the duplication I tend to find in templates. [Edit] NHaml does not come close to what I'm looking f...

What are the problems of the MVVM pattern?

Is Model-View-ViewModel the best pattern to use in WPF? Are there any downsides? ...

Performance difference between a .NET assembly built in debug and release mode?

Some previous developers put some assemblies that were built in debug mode into production. Is it worth recompiling them in release mode and redeploying them? If there's just a 1-2% performance increase, I'd probably just leave them there. On the other hand, a 10-20% increase might change my mind. ...

Form Contols in Outlook Interface

I want to make an interface that looks like Outlook. In the center pane, outlook contains a styled list that has multiple lines of formatted text and icons. What control would I use to achieve this effect? Thanks. ...

Generating Member for labels: Any reason I should?

I had read in another post here on SO that when possible you shouldn't Generate Member's for labels. I was wondering what some potential DRAWBACKS to this would be? Am I correct in saying that the benefit is increased performance? Anything else? I have a winform app with 100's of labels. Is there any benefit to not generating me...

WCF - How to Increase Message Size Quota

I have a WCF Service which returns 1000 records from database to the client. I have a ASP.NET WCF client - ( i have added service reference in asp.net web application project to consume WCF). I get the following message when i run the client application - The maximum message size quota for incoming messages (65536) has been exceede...

Embedded web server and gui framework for .NET applications

Hi, I'm looking for a framework which allows me to manage my application through a webbased GUI (using an embedded webserver) instead of winforms. Something like this: http://www.webtoolkit.eu/wt but then for .NET In my code I should be able to instantiate classes (like buttons, forms etc), and when a user browses to a given port, t...

Programatically convert Excel to XPS

I am looking for a way to programatically convert Excel reports to XPS format. Is this supported anywhere in the Microsoft framework, or should we look for a third party tool? Yes currently we are programatically creating Excel reports using ExcelWriter and need to produce XPS reports for a client. So we either go direct to XPS which ...

WndProc with no visible form?

I want to create a form on a second thread that will receive messages in it's WndProc method. What is the recommended way to create an invisible form like this? Is setting "ShowInTaskbar=false" and "Visible=false" enough, or is there a "cleaner" way? ...