I'm looking for any database framework/library for .net which will act as a unified layer between an application and databases. Please note that I'm not interested in querying/updating data (there is plenty of DALs for that) but rather a framework which allows me to manage table schemas and indexes in a managed fashion (without using dat...
how can i modify memory loaded methods in given assembly so that clr when instantiates new objects for some class it makes new objects with modified code in it?
...
In the WIX setup I've got, when upgrading the application I have set a requirement to close down applications which might hold on to files which needs to be updated:
<util:CloseApplication
Id="CloseMyApp"
Target="[MyAppExe]"
CloseMessage="yes"
Description="!(loc.MyAppStillRunning)"
RebootPrompt="no"
ElevatedClos...
Let's say I have an application that processes messages. Messages are just objects in this case that implements IMessage interface which is just a marker.
In this app, if a message fails to process, then I want to log it, first of all for auditing and troubleshooting purposes. Secondly I might want to use it for re-processing.
Ideall...
I am working on an app that will be able to pull an image of rendered HTML from a specific browser. I would like the user to be able to select a specific browser to render an HTML file in, and capture the rendered output in an image file. I also want to capture the entire HTML render at once, not simply what is visible in the browser at ...
Hi All,
Too many connections - End of inner exception stack trace - I get this exception for an application running mysql as backend and .net.
Any thoughts on the source of this, our DB guy tells that max connections has not reached, so this error is not because of max connection?
Thanks.
...
I need to import yahoo,Live and AOL contacts list. I have already done gmail(their website has the whole hting explained properly). but cannot find much help for live, yahoo and aol for vb.net. Any help will be appreciated. some small source code or where to download API's.
Thanks
...
Hi,
May I know what are the best practices for implementing a site search in ASP .net web app. The user should be able to enter some keywords and get related links with the keyword. I have just started researching. It would be great if you put on your ideas.
...
I am overriding System.IdentityModel.Policy.IAuthorizationPolicy.Evaluate as follows:
public bool Evaluate(EvaluationContext evaluationContext,ref object state)
{
var ids = (IList<IIdentity>)evaluationContext.Properties["Identities"];
var userName = ids[0].Name;
// look up "userName" in a database to check for app. permissi...
I'd like to break apart a String by a certain length variable.
It needs to bounds check so as not explode when the last section of string is not as long as or longer than the length. Looking for the most succinct (yet understandable) version.
Example:
string x = "AAABBBCC";
string[] arr = x.SplitByLength(3);
// arr[0] -> "AAA";
// ...
I want to match an optional tag at the end of a line of text.
Example input text:
The quick brown fox jumps over the lazy dog {tag}
I want to match the part in curly-braces and create a back-reference to it.
My regex looks like this:
^.*(\{\w+\})?
(somewhat simplified, I'm also matching parts before the tag):
It matches the line...
I have a C# app that references another C# dll which in turn uses Enterprise Library.
Because my app has no config xml file for setting the Enterprise Library settings, it is throwing an error, specifically:
"The configuration section for Logging cannot be found in the configuration source."
"Microsoft.Practices.EnterpriseLibrary.Loggi...
I am building a C# application that is consuming a WSDL that is hosted by a server on our network. When I use the "Add Web Reference" functionality of Visual Studio, it works just fine, saving the ip address of the machine, etc. and the SOAP calls work without any issue.
We are now making this entire application portable so that it c...
There is a control in Visual Studio's Class Details window (accessed via Class Diagram) which combines a ListView with a TreeView. The result looks something like this:
TreeViewNode1
Column 1 Column 2 Column 3
Column 1 Column 2 Column 3
TreeViewNode2
Column 1 Column 2 Column 3
Column 1 Colu...
If I have a customErrors section in my Web.config that says to redirect to Error.html, then putting code in the Application_Error method in the Global.asax to redirect to Error.html is redundant is it not? Technically, I could bypass the Web.config by redirecting to a different page in the Application_Error method if I wanted to, but si...
I'm running into a problem immediately after doing Start-CacheCluster, my cache service has already stopped. My application log shows the following pairs of errors:
ERROR1:
Application: DistributedCacheService.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Micros...
I'm writing a piece of simulation software, and need an efficient way to test for collisions along a line.
The simulation is of a train crossing several switches on a track. When a wheel comes within N inches of the switch, the switch turns on, then turns off when the wheel leaves. Since all wheels are the same size, and all switches ar...
I have a string that looks like this " Into" and I can't figure out what the " " value is just before the Into. It's not a space, it's not an enter. At least i don't think so. I've tried doing a replace to get rid of it..
So now i'm just trying to figure out what that character value is. Convert.int32 doesn't get it done... What ca...
I'd like to have a dataset or datatables, and be able to run SQL statements on them, without using any external RDBMS.
For Example, to take take 2 datatables in a dataset and just join them outright with a SQL statement and Where clause, the result being a new datatable? For example if I have 2 datatables, named People and Addresses in...
How do i set my window above all other? I need a bad but noticeable msg box that closes on its own.
Msg is a dummy form which is empty. All i want is its title.
The problems with the code is the window isnt created 0,0 (its just whereever windows feels like putting it). The width is correct but i notice if i click firefox or another app ...