If I load the My.Settings object (app.config) into a PropertyGrid, I am able to edit the property inside the propertygrid and the change is automatically saved.
PropertyGrid1.SelectedObject = My.Settings
I want to do the same with a Custom Configuration Section.
Following this code example (from here http://www.codeproject.com/KB/vb/...
Hi All,
I have an iis server on a windows 2003 production machine that will not log using log4net in the .net3.5 web application. Log4net works fine in the 1.1 apps using log4net version 1.2.9.0 and but not the 3.5 web app. The logging works fine in a development and staging environment but not in production. It does not error and I ...
I'm noticing this error more and more in my error logs. I've read through the questions here talking about this error, but they don't address what I would like to do (see below).
I'm considering three options, in the order of preference:
1) When submitting a form (I use formviews almost exclusively, if that helps), if potentially dang...
Hi Guys,
I am developing a multi-lingual website. I am determining the requested language via a querystring variable eg: http://mydomain.com/default.aspx?lang=en
I am using two <asp:LoginStatus /> controls in my masterpage. My web.config file is set up like this for forms authentication.
<authentication mode="Forms">
<forms loginUr...
Has anyone seen OpenSubKey() and other Microsoft.Win32 registry functions return null on 64 bit systems when 32 bit registry keys are under Wow6432node in the registry?
I'm working on a unit testing framework that makes a call to OpenSubKey() from the .net library.
My dev system is a Win 7 64 bit environment with VS 2008 SP1 and the Wi...
I'm referring to the syntax for writing strings in code, including multiline strings and verbatim strings.
(Context: I'm working on a tool that scans code, and it's important to determine when tokens are inside a string.)
Thanks!
...
I'm looking for something like the Windows Media Player control that can be hosted on a form.
The WMP doesn't work for me because I need a control that can play a continuously-appended playlist of AVI files in sequence, so that the transition from one file to the next happens seamlessly (i.e. without any glitches or pauses in the video ...
The Windows Media Player control (sitting on a form) can be programmed to play a list of AVI files consecutively, but there is always a delay of a half second or so between the end of one file and the start of the next.
Can WPF's MediaElement (or anything else) play a list of AVI's like this so that there is no noticeable delay between ...
I found an ftp client class in c# over a year ago and have been using it in a process that uploads files on a nightly basis. A few days ago we started having a problem where it would time out. I'm not well versed in this so I'm not sure why it's doing this.
When the program starts uploading a file it checks to see if it's logged in and...
Any tricks in getting WatiN to run on Win7/IE8?
My code:
browser = new IE();
browser.GoTo("http://testserver");
browser.TextField(Find.ByName("txtUser")).TypeText("tyndall");
The third line never really runs and I get an error back:
System.Runtime.InteropServices.COMException : The RPC server is unavailable. (Exception f...
I'm trying to use the Repository Pattern with EF4 using VS2010.
To this end I am using POCO code generation by right clicking on the entity model designer and clicking Add code generation item. I then select the POCO template and get my classes.
What I would like to be able to do is have my solution structured into separate projects fo...
I've been having this problem for a while and it's driving me nuts. I'm trying to create a client (in C# .NET 2.0) that will use SAML 1.1 to sign on to a WebLogic 10.0 server (i.e., a Single Sign-On scenario, using browser/post profile). The client is on a WinXP machine and the WebLogic server is on a RHEL 5 box.
I based my client larg...
I have an odd requirement that my clients have imposed on me. They have certain queries which they have spent a lot of time optimizing that work as follows:
A stored procedure builds up an "id-list" which basically represents the "Where" filter
The id-list is joined into your data tables
The id-list would look something like this
...
Has anyone implemented the Enterprise Library VAB along wtih Code Contracts in .NET 4.0?
If so, can you share some insights? Did it help in performance? Any other factors to be considered?
...
I need to reload the configuration file after modifying it. How this can be done using appdomains? A code sample would be useful. Thanks.
...
Coming from C/C++ a long time ago I still have a habit of ensuring that all resources are cleaned up correctly. I always ensure Dispose is called on IDisposable classes and implement Dispose patterns in my classes containing disposable objects.
However, in my environment I'm more or less the only one doing this. Others just don't unders...
With Intel's launch of a Hexa-Core(6) processor for the desktop, it looks like we can no longer wait for Microsoft to make many-core programming "easy". I just order a copy of Joe Duffy's book Concurrent Programming on Windows. This looks like a great place to start, though, I am hoping some of you who have been targeting multi/many co...
What is the "dispatcher" pattern and how would I implement it in code?
I have a property bag of generic objects and would like to have the retrieval delegated to a generic method.
Currently, I have properties looking for a specific key in the bag. For example:
private Dictionary<String, Object> Foo { get; set; }
private const String...
In a C# application, how can I find out if a WPF window is in the primary monitor or another monitor?
...
Is there an event that I can tap into in Global.asax to execute some SQL in ADO.NET for logging every time a request is made to the application?
...