Let's say I have written a Class Library (dll) in .Net and now I have developers using it in their .Net applications.
However, the library itself could probably be useful also for developers writing natively (in C or C++). So my question is if my managed dll can be used in C or C++?
If not, why? Maybe I must add some specific code to ...
My project has a netTCP WCF service.
This is the app.config for it:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="NetTcpBinding_IIndexer" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:1...
Hi there,
Can anyone help, i have been using log4net with success i basically had a static class (wrapper) in my webproject and i load my config from external file called log4net.config by adding this in assemblyinfo.cs
// log4net config file
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log4Net.config", Watch = true)...
What do you put in your data access class(es)? Source code or class diagrams are fine.
Are the members static?
What helper functions do you have in there?
I'm not asking for a comlete DA class. I can build that. Just looking for some advice / feedback.
...
We have a piece of code which saves a .Net System.Drawing.Bitmap to file. The Save call is specifying the file location as well as the ImageFormat which we are expecting to save the image data as a Jpeg so out code looks like this:
public MediaFile IngestImage(System.Drawing.Bitmap imgSrc, string name){
... // left out because it ...
Does .NET natively support anything similar to PHP's variable variables?
If not, how1 could such a feature be most easily implemented?
1 If you think variable variables are always bad, feel free to state your case but the main question is: how can they be implemented?
...
I'm writing an app with the WebBrowser control and wanted to know how to retrieve the http traffic via the WebBrowser control. post, gets, etc.
Thanks
...
I'm wondering if is it there any easy, and common between .NET and Mono, way to retrieve machine statistics (eg. free space left, total memory, etc.).
Under the .NET 2.0 profile I was able to identify DriveInfo class, but in the previous versions (1.0, 1.1) and Compact framework, which I would like to support, there's nothing like this.
...
I have seen .net optimized implementation of design patterns on http://www.dofactory.com. But not all patterns are available on the site. Is there a site/blog which has an .NET optimized implementations of all design patterns?
...
I have a class with a custom indexer like so
public string this[VehicleProperty property]
{
How can I identify the custom indexer in the results of typeof(MyClass).GetProperties() ?
Thanks.
-Joe
...
I'm trying to wrap my head around Object Oriented programming. But I'm having some trouble. I (think) I understand the general concepts and the arguments for why OOP is a 'good' design. My problem comes when I sit down and try to write code that is OOP.
I tend to end up with programs that are either very procedural but have the occas...
Say if I listen for an event:
Subject.NewEvent += delegate(object sender, NewEventArgs e)
{
//some code
});
Now how do I un-register this event? Or just allow the memory to leak?
...
Ok.... I know there are quite a few posts about "tips for beginning programmers." I'm looking for a bit different flavor of an answer here. I've done a lot of reading, but still am a bit overwhelmed with all the "knowledge required"....
Not in IT at all, trying to prepare. No previous programming jobs, still in school, supporting my wi...
Thanks to suggestions from a previous question, I'm busy trying out IronPython, IronRuby and Boo to create a DSL for my C# app. Stop one is IronPython, due to the larger user and knowledge base. If I can get something to work well here, I can just stop.
Here is my problem:
I want my IronPython script to have access to the functions in ...
I used to set Transaction timeouts by using TransactionOptions.Timeout, but have decided for ease of maintenance to use the config approach:
<system.transactions>
<defaultSettings timeout="00:01:00" />
</system.transactions>
Of course, after putting this in, I wanted to test it was working, so reduced the timeout to 5 seconds, ...
I have a completely blank ".aspx" file residing on an IIS6 web server. The server has .net 3.5 installed.
When executed, this file generates an "Illegal characters in path" error. A full stack trace of this error is available here.
The problem can be temporarily cured by IISReset. However, once any site on this server starts exhibit...
I have a netTcp WCF service running in a windows service on a remote machine.
The windows service is running as user mydomain\u2
The .config file for the windows service hosted WCF is
<security mode="None">
<transport clientCredentialType="None" />
<message clientCredentialType="None" />
</security>
Now when ...
How do I read performance counters in a .NET application without the application running as an administrator?
The application is a Windows Service. The account it will run under is known at install time, so in theory I could add any non-admin permissions to that account at that time.
...
I have a simple HelloWorld application that I'm trying to build using NAnt. However, even with the simplest of build files, I still cannot get it to work. Below is my HelloWorld.build file.
<?xml version="1.0"?>
<project name="Hello World" default="build">
<property name="nant.settings.currentframework" value="net-3.5"/>
<target name="b...
I am considering using something like StackFrame stackFrame = new StackFrame(1) to log the executing method, but I don't know about its performance implications. Is the stack trace something that is build anyway with each method call so performance should not be a concern or is it something that is only build when asked for it? Do you re...