.NET Console TextWriter that Understands Indent/Unindent/IndentLevel
Does anybody have or know of a TextWriter for the Console that understand how to indent/unindent and has the ability to set the indent level. ...
Does anybody have or know of a TextWriter for the Console that understand how to indent/unindent and has the ability to set the indent level. ...
I have a webpage that allows a user to upload a file to a network share. When I run the webpage locally (within VS 2008) and try to upload the file, it works! However, when I deploy the website to the webserver and try to upload the file through the webpage, it doesn't work! The error being returned to me on the webserver says "Access ...
One of practices advocated by Nhibernate experts is to do all actions in inside a transaction. In a typical 3 tier web architecture, Nhibernate depedency is limited the data layer. In such a case is it fine to use using (var tr = NHibernateSession.Current.BeginTransaction()) { at the controller level. Won’t this bring in a de...
from flex, when calling a .net web method that returns a custom class, I always recieve an ObjectProxy, even if I have the same class created on flex. How do I manage this ObjectProxy as the class I have? thanks. ...
I am using the Crystal Reports designer that came with Visual Studio 2008. My report's data source is tied to a .Net class from my project (i.e. Database Expert > Project Data > .NET Objects). I've updated my .Net class with an additional property that I would like to use in my report. When my report's data source is tied to a databas...
I'm working on a project that will require me to take various .vbproj and .csproj files and determine which version of Visual Studio they were built with and then to get information such as the output dll name etc. Does anyone know if there is a schema available for these files? Google and MSDN searches are coming up a bit blank. Visu...
I'm looking for a opensource bug/issue tracking system with support for Mercurial. It has to run on IIS 6.0, so it would be nice if it was written in .NET. Do you have any experience with such software, and anything you can recommend? Edit: Has to run on MSSQL aswell. ...
I use Visual Studio .NET to develop a component named X_Component and I plan to develop several client applications that use X_Component. I need to deploy X_Component with each of these applications. I want to create a distribution package to be included with each application. Which type of project should I create (CAB/merge module/set...
I see this: using (StreamWriter sw = new StreamWriter("file.txt")) { // d0 w0rk s0n } Everything I try to find info on is does not explain what this doing, and instead gives me stuff about namespaces. ...
I'm trying to map a manyToMany relationship in Fluent NHibernate and running into a problem that's most likely just me being new at the tool. I have 2 Entities, User and Project. A User can be on many projects and a project can have many users. In my map for User I have HasManyToMany(x => x.Projects).Inverse(); When i put the...
Why only one overload throws this exception? Little update: I understand that there was a design decision made by framework developers. The question is really why that decision has been made, is there a related design pattern or whatever? Because if I was designing that I'd return default(TSource). What is wrong with such approach? ...
Hi guys, what i'm trying to do this this. Simply create a C# windows app that when that when i point it to a website will download the HTML code. Kind of like when you use IE and you choose view source. Any starting point would be great. ...
Hi Guys! We're working in a Dynamic Data project that will handle entities coming from two different namespaces: myModel.Abby and myModel.Ben. whose classes are: Abby myModel.Abby.Car myModel.Abby.Lollipop Ben myModel.Ben.Car myModel.Ben.Apple So myModel.Abby.Car and myModel.Ben.Car are homonym. when I try to register bo...
Can anyone help me with example on using lapack with latest f#? Or it is not recommended for now? I searched and only find http://fdatamining.blogspot.com/ but was not able to get FSharp.PowerPack.Math.Providers.dll compiled. EDIT: @Yin, Thanks for your blog. On compiling FSharp.PowerPack.Math.Providers.dll from 1.9.7.8 source, Micros...
My .NET program needs to run an algorithm that makes heavy use of 3rd party libraries (32-bit), most of which are unmanaged code. I want to drive the CPU as hard as I can, so the code runs several threads in parallel to divide up the work. I find that running all these threads simultaneously results in temporary memory spikes, causing ...
I can't believe I'm still confused about this but, any way, lets finally nail it: I have a class that overrides OnPaint to do some drawing. To speed things up, I create the pens, brushes etc before hand, in the constructor, so that OnPaint does not need to keep creating and disposing them. Now, I make sure that I always dispose of such...
I have the following variable that accepts a file name: var xtr = new XmlTextReader(xmlFileName) { WhitespaceHandling = WhitespaceHandling.None }; var xd = new XmlDocument(); xd.Load(xtr); I would like to change it so that I can pass in an object. I don't want to have to serialize the object to file first. Is this possible? Update:...
Hi, My website has a setup whereby when the application starts a module called SiteContent is "created". This runs a clearup function which basically deletes any irrelevant data from the database, in case any has been left in there from previously run functions. The module has instances of Manager classes - namely RangeManager, Collect...
I assume because the CLR this wouldn't be an issue? ...
I have a set of applications that all use the same basic codebase -- a couple of ASP.NET web projects, some WCF services (running under ASP.NET), a few Windows services and a couple of executables. Most of them are even located in a single Visual Studio solution. There's a lot of duplication between the various applications as far as...