I've been messing with this for about a day and a half now sifting through .NET reflector and MSDN docs, and can't figure anything out...
As it stands in the .NET framework, you can demand that the current Principal belong to a role to be able to execute a method by marking a method like this:
[PrincipalPermission(SecurityAction.Demand...
Is there a .NET utility out there to take an HTML snippet (not a whole document) and output a compliant standard HTML equivalent?
IE, both <b>die Bundesliga Mannschaften</b> and <span style="font-weight:bold">die Bundesliga Mannschaften</span> both resolve to the same thing.
I'm not trying to repair anything, just standardize some well...
In one webapplication i have a IHttpHandler that when invoked starts an regular application that connects to a firebird database and amongst other things parses some dates from the database.
When run from the desktop the application does what is should without any problem. But when it is started from the httpHandler is ends up with the ...
Hi all, I'm trying to export the reportsource of a crystal report viewer in .Net 1.1 onto disk as a PDF using
CrystalDecisions.CrystalReports.Engine.ReportDocument cr = (CrystalDecisions.CrystalReports.Engine.ReportDocument)crvView.ReportSource;
cr.ExportToDisk(CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat, @"C:\Temp\Tem...
I want to test whether wcf endpoint is reachable or not. Only available data is URI address to the service.
Can I connect to service to check whether it exist without creating the Client Proxy of service?
I want to do programmatically
bool EndpointReachable(UriAddress)
Also service can be net tcp
...
Hello,
I have spend two days of work trying to figure out a weird problem is happening on my PC.
I am debugging a quite complex old application written in .NET 1.1 that is made by an mdi container that load at runtime different assemblies that implements custom interface as windows form mdi child.
The problem is that on my PC (i tried...
When building a C# application with Visual Studio 2008, is it possible to set a different output filename per configuration?
e.g.
MyApp_Debug.exe
MyApp_Release.exe
I tried a post-build step to rename the file by appending the current configuration, but that seems a scrappy approach. Plus it meant that Visual Studio could no longer fi...
I have a Winforms application that generates its own PrintDocument object for printing. It works fine in XP and Windows 7 with my own testing, but one user has been getting the following exception in Vista when they select the print command with an open document:
************** Exception Text **************
System.ArgumentException: Han...
I have a WPF form with ListView (resultsList) and I have a static method Fetcher, which returns results of the search for some information over the webpage with pagination (all pages at once, or one return for each page). It is done using WebClient so fetching 40 sites takes about 2 minutes. I don't want to appear the results immediately...
so i'm looking for a way to allow users the ability to manage static files in their own directories on my webserver without giving them ftp access. I've seen controls like the one here that does what i want, however i'd like to weigh a few options. any recommendations?
...
Is there an easy way to customize the WPF TabControl so that it supports TabItem drag and drop - similar to what IE and firefox do.
...
I am using a .NET ActiveX control to an interface with a USB device. The supplier of the control says the we must call the control's Shutdown() method when we are through using the device. This is problematic for a me as it is not easy to determine when the users are through using the control because it is used between pages and I can o...
Hi guys
I am having a problem with converting video files to .flv files. I am using ffmpeg.exe tool to achieve this. Here on my local server when I use ffmpeg.exe tool with c# code everything is working good. But when I deploy the same code with ffmpeg tool on to my hosting server, where as .exe files are not allowed to execute, the cod...
I am running into a problem where my CRUD operations on an entity sourced from an SQL View is not calling the generated methods for said operations.
Example:
I press "Delete" in a ListView on an item, connected to a LinqDataSource. It throws an error saying that it cannot perform the operation because it affects multiple base tables. T...
Trying to use a typed dataset with nullable fields...
As been the case since the dawn of time, the typed dataset generator of visual studio does not support nullable types.
Is there, somewhere in the net, a generator for a properly typed dataset?
Thank you.
...
We've received a rather tricky business requirement.
Users should be able to store print jobs in the application, until the user explicitly decides to send the jobs to the actual printer.
The easy solution (the way I see it) is to have a small windows application installed on the clients computers which stores the jobs in a queue local...
How Load dll from gac using Assembly.Load from remote machine ?
...
I've been working on the same project now since Christmas. I've been asked to take it from a Console Application (which just prints out trace statements), to a full Windows App. Sure, that's fine. The only thing is there are parts of the App that can take several minutes to almost an hour to run. I need to multithread it to show the ...
I'm a low-level algorithm programmer, and databases are not really my thing - so this'll be a n00b question if ever there was one.
I'm running a simple SELECT query through our development team's DAO. The DAO returns a System.Data.DataTable object containing the results of the query. This is all working fine so far.
The problem I h...
As many of you know, the System.IO namespace is abysmally designed. I would like a free library that wraps the file IO functionality in a sane way (read: doesn't require you passing strings all over the place). I remember reading some time ago that there is a small handful of these libraries already written (and the author was surprise...