Hi,I am currently working in a project where it is having multiple asp.net web applications, windows services. Now we have a requirement that I need to create an Setup application should do the following tasks
automatically create database, install web applications in IIS virtual directories, install windows services and modify all con...
Hi,
Im trying to display a group (file extension and icon)(parent) then all of the files found in that group (child) in a WPF Treeview. I can get the groups to show in the treeview, each with an icon and text, however I dont understand how to display the files as children of the group. Here is the GroupInfo class, the problem is it cont...
Is there a way for an attribute that has been applied to a method to know what method it was applied to at run time?
[AttributeUsage(AttributeTargets.Method)]
public class CustomAttribute : Attribute {}
public class Foo
{
[Custom]
public void Method() {}
}
Then I query the attribute at run time
var attribute = typeof(Foo)
...
I'm currently looking to access libavutil, libavformat and libavcodec (all part of FFMpeg) from .NET.
Currently, I'm getting the libraries from the automated builds of the shared FFMpeg package performed every night for Windows 32-bit.
I am also using the code from the ffmpeg-sharp project. In that project, I have removed a number of ...
Hi,
I am using System.Data.IDbCommand to query a table that has a primary key. My query joins it with other tables and fetches me multiple records with the same value in the primary key column but different values in other joined columns and this is the intended behaviour.
However, IDbCommand.ExecuteReader().GetSchemaTable() shows that...
For debugging environments, we have a conditional Debugger.Launch statement in the code to allow developers to debug into the startup code of the windows service. We just upgraded to .NET 4.0 today. Since the upgrade, if we exit out of the JIT window (i.e. we chose not to debug), the Windows Service is crashing (process is terminating). ...
It is true that generic collections perform better than non-generic collections for value types. (i.e. List vs. ArrayList).
But why is that, other than the boxing-unboxing step? Where are the value type objects stored once added to the collection? In non-generic collections, they'll be boxed and stored on heap, what is different in gene...
I am using the following Regular Expresion to remove html tags from a string. It works except I leave the closing tag. If I attempt to remove: <a href="blah">blah</a> it leaves the <a/>.
I do not know Regular Expression syntax at all and fumbled through this. Can someone with RegEx knowledge please provide me with a pattern that will...
I have the following object:
public partial class Game
{
public bool Finished { get; set; }
public Guid GameGUID { get; set; }
public long GameID { get; set; }
public bool GameSetup { get; set; }
public Nullable<int> MaximumCardsInDeck { get; set; }
public Player Player { get; set; }
public Player Playe...
I've got a windows service that relies on a DLL. Whether the service is running or not, its executable is keeping a handle to that DLL, which is preventing me from updating it automatically.
Why is this, and how can I remove that handle programatically (preferably via .Net)?
Update:
I know that the service's executable is the one with ...
We have a WCF service which will be accessed from outside systems. Under certain conditions, we want our responses to include some descriptive text. Because the calling system isn't under our control, we need to return the text itself, not an error_code or similar abstraction. The text we return needs to be human-readable, and it must...
Hi
I've built a few gallery applications using AMFPHP (remoting).
Now I'm faced with another project with existing database functionality already completed in .NET (.aspx).
Can anyone tell me what the differences are in creating an image gallery with webservices vs remoting?
And is their a recommended 3rd party webervices package? I'd p...
Can you use a .NET 4.0 dll in a 3.5 project?
...
How can I get a named resource from ControlTemplate in a code-behind file (*.xaml.cs)? TryFindResource returns null. Template property of the control is also null. What else should I try?
Thanks.
...
I can easely use javascript to auto refresh the page every 10 sec for example but, isnt this going to overload the page having to ask for any change every 10 secons? is there a more efitient way to do this. Some body told me once than there is a way having the client side waiting for a response from the server that only sends it when it ...
I want to validate the date entered in the format dd/mm/yyyy. Using exceptionvalidation I can validate correctly only if the date is entered in the format mm/dd/yyyy. Can anyone suggest some workarounds?
...
I have an .net C# winforms application, and I need to add hotkey support, but I want more than the standard RegisterHotKey function, I want be able to support hotkeys like ctrl-ctrl (like in Google Desktop).
Please provide me a direction how to implement this.
edit:
You didn't got it right.
I want the hotkey to work even if my applica...
Extension methods are not good for testing (that's described here: http://stackoverflow.com/questions/2295960/mocking-extension-methods-with-moq, http://www.clariusconsulting.net/blogs/kzu/archive/2009/12/22/Howtomockextensionmethods.aspx).
But probably there are some solutions for mocking of Unity methods? In my case I have the followi...
My application (.net 3.5 sp1) uses the HttpWebRequest to communicate with different endpoints, sometimes its over HTTPS where each hosting server may have a different security protocol requirement say TLS or SSL3 or either.
Generally the servers play nice and happily negotiate/fallback on what SecurityProtocol to use TLS or SSL3, but so...
Hi,
In the database there are column values which appear in multiple rows. The example rows are the following (in csv format):
AFAB19476C2CEEEE101FFA45FD207BA8B6185B29,539EE0643AFC3A3BE3D20DC6BE7D5376DC536D34,9800,58,29,24,34,2
A801DA9B2F4116A7A1B14A13532B2177C7436C43,91850E4C50536D45C9CEAFE5FB5B3A87154EB754,9800,15,15,15,15,1
4C1E...