Hi Experts,
I am trying to evaluate some of the best log utilities available for .NET framework, such as Microsoft Enterprise Library, Log4Net, elmah.
Can someone who has already gone through this exercise would come to my help in listing pros and cons of the best available in the market.
Thanks & Regards,
Rajeev Ranjan Lall
...
My app generates SSIS packages for importing data from Excel files. This is done programatically, using C# .
Before the package is generated, there's a setup step, in which I allow the user to select, from a template Excel file, the sheet name and columns to import. (Basically what you would normally do if you were manually building the...
Why does the below LINQ to SQL statment throw an exception?
I have a function
bool TrimAndCompare(string s1, string s2)
{
return customer.CustomerID.Trim() == customerID.Trim()
}
...some other function i call the above function in my linq statement
var customers = from customer in _context.Customers
wher...
I was wondering, if there are examples of Linq like features in other languages and programming platforms prior to .NET or this was the invention of Microsoft.
...
Let's say I have a string, and that string's value is an amount of money, localized. By localized, I mean that if the country may use commas instead of decimal points, for example. (That's just one localization difference I know if.)
How can I parse one of these strings into their decimals numeric equivalents? Will decimal.TryParse() re...
Is it possible to change the colour of a sub string present in a datagridview cell?
...
I have a generic method
bool DoesEntityExist<T>(Guid guid, ITransaction transaction) where T : IGloballyIdentifiable;
How do I use the method in the following way:
Type t = entity.GetType();
DoesEntityExist<t>(entityGuid, transaction);
I keep receiving the foollowing compile error:
The type or namespace name 't' could
not be...
Dear GURUs
I am running Server Application on Windows Server 2008 with SQL Server 2008, Now My scenario is as Given.
I have implemented a custom Connection Pooling (why I did that its another long story). therefore I am not opening or closing connection on each request.
Server Application executes more than thousands DBCommand in a m...
Hello,
I am using Microsoft Office SpreadSheet 11.0 component in my Windows application.
I succeeded in binding a table from database to the Spread Sheet Component.
I don't know how to bind a Excel file to the Spread Sheet Component.
Please Guide me achieve it.
From,
M.Thillai.
...
Hi i want the connection string to connect the MySQL from the .Net 3.5 SP1
...
I'm currently working on an client application developed using winforms on .Net 2.0. Are there any reasons I should upgrade to 3.5? I already use LINQ (with linqbridge) and I can think of no other benefits I would get from 3.5 (I will not start using WPF or a new data access technology ...)
...
Hello,
I need to create a .net client which consumes a webservice from a SAP CRM application. I just got the wsdl file. But when i try to create a proxy class with wsdl.exe i get a warning that no classes are generated. What am I doing wrong?
There is the header of the wsdl file.
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definition...
Hi,
I have a class below:
I want to access these default strings but C# compiler doesn't like combining Const to create a Const.
public class cGlobals
{
// Some Default Values
public class Client
{
public const string DatabaseSDF = "database.sdf";
public const string DatabaseDir = "database";
publi...
Hi All,
I am using the .net 4 beta 2 touch libraries, and Im trying to implement a zooming feature in my WPF application.
I can get the zooming working just fine, but what I want is to zoom in on the center of the pinch gesture, and I cannot see anything in the API's about how to accomplish this.
Is there some methods or properties t...
I have a renderer written in C++ and directX. I now want to write a (level / scene / UI) editor and if possible / realistic I would prefer to write the interface to my editor in C#/.net
Is this at all feasible, without going down a route of managed c++? Can I expose the necessary interface from my renderer to a C# app, without managed...
I have a WM device (with CF3.5 on it). It's not always connected to network. It can sync through web service with the server database. I want to know if there is possibility to get traffic value between mobile device and server (and not just uploaded/downloaded changes from sync statistics)?
...
Hi folks.
What is the best way of working with linq data context? And how does link work with sql connection (when does it open connection and when does it close connection)? Should I aloways use using statement when i work with data context?
Sorry for list of questions. Thanks in advance.
...
Description for java.lang.IllegalStateException from the Java docs:
Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation.
Is there an equivalent for IllegalStateException in the .NET-Framework?
...
I find often that breakpoint on line of code I know are executing do not break correctly.
It also often “runs away” when I do a “step over”, or “step into” etc.
Details.
Microsoft Visual Studio 2008 Version 9.0.30729.1 SP
Microsoft .NET Framework Version 3.5 SP1
The code is a mixture of VB.NET and C# with most of the code in VB.NET.
...
Hi,
I am using an MSBuild build file to build and test my application. As part of the process I would like to change the path and name of the log file (setting in app.config). What is the easiest way to do it (I have the xpath to the value that needs to be changed)?
...