Hi All,
I am trying to consume REST API from my .NET Application. This API's are all written in JAVA.
I am asked to pass the authentication credentials vis HTTP headers. How can I pass these authentication credentials like 'DATE', 'AUTHORIZATION' and 'Accept' via HTTP headers.
Which class in .NET can I use to accomplish this task. Can...
I want to scrape string data from some binary text files that contain embedded SQL statements. I don't need any fancy cleanup--just some way to extract the readable text. I'm using vb.net, but a call to an external utility would work too.
...
I need some pretty approach to load polymorhic object
I have base class and several derived classes that base is not aware of. The only thing
base class knows is Type enum wich defines which actual class it is.
class Order
{
OrderType Type;
bool Load(string filename)
{
// load Type
}
}
class LimitOrder : Order
{
// some data...
I have a problem when updating the source of an ASP ListBox in an AJAX update panel. When I set the source of the ListBox to a large dataset, I would assume it would take a small amount of time to render due to the number of items. However, when the DataSource is switched at run-time to a smaller set of items, it takes just as long to ...
I am trying to resolve a TimeSpan using Unity. Executing the container Resolve call results in a FatalExecutionEngineError.
FatalExecutionEngineError was detected
Message: The runtime has encountered a fatal error. The address of the error was at 0x543c3dc8, on thread 0x1bb8. The error code is 0xc0000005. This error may be a bug i...
I'm trying to localise a WinForms app for multiple languages. I'm trying to find a way to set my form labels/buttons text properties to read from the resources file in the designer (rather than having to maintain a chunk of code that sets them programatically).
I've found I can set form.Localizable=true, but then the resources are read ...
I used the xsd utility to generate a *.cs file from an *.xsd file. I'd like to generate xml from this generated class by serializing an instance of the class. Is there any way to get 'clean' output like this:
<header>
<br/>
<br/>
<br/>
<br/>
</header>
Here are two examples of the not clean output I am getting:
<header>
<...
Any recommendations for .net xslfo processors (takes an xslfo file and converts to pdf) that can either be compiled into 64 bit assemblies or are sold that way? (Our preference is free open source, but we are also considering paying as well).
...
I've got a CAB file with the Windows Mobile application and the MSI package which installs that CAB on Windows Mobile Device (using a custom installer).
Now i'm trying to add ability to enter license key for that Windows Mobile app using desktop installation package.
I've added "Customer Information" dialog to MSI so i can enter the ke...
I'm using C# .NET 3.5 ... and I've been working to decouple a BLL object by moving database related activity into a seperate worker object. The worker object adds entities to the database and events a success or failure message back to a BLL object.
When I instance the worker object in the BLL I wire up the worker's events and set the...
Is there a recommended obfuscater for compiled .Net (C#) code that plugs into VS2008? If not, a stand-alone will do fine, and preferably one that can obfuscate multiple assemblies at once.
I also realize the purpose of these is simply to make it more difficult to reverse-engineer the code... which is exactly what I want.
Thank you.
U...
Sorry about the terrible title.
I have a signed assembly 'Signed.dll' that is a dependency of another assembly, say Executable.exe.
Signed.dll references a COM DLL and publically exposes one of this COM DLL's types: 'ComPublicT.'
Executable.exe must reference the automatically generated Interop.COM.dll from the Signed project, rather ...
Hi,
Is there any way to restrict access to my (.NET) web service without modifying the actual web service code and/or the calling app? Basically, I have the web service on one subdomain and would like to be able to call it from different app in another subdomain, both on a same machine.
Regards,
Ondrej
Edit: Important information I fo...
I want to create a custom grid derived from DevExpress grid control. I just want to add several columns and add custom painting. I will then use this control in 2 different forms.
The problem is that if I go straightforward and create a class like this:
public class GenerateInvoiceGrid : DevExpress.XtraGrid.GridControl
then I will not...
I have the following code. Is it not the exact code which I am using since it is internal to my place of work, but is a representation of the scenario which I am encountering.
public class Service : ServiceBase
{
private static readonly Service _instance = new Service();
private static readonly string a = @"D:\test.txt";
...
What is the equivalent of the c# lock() statement in Delphi Prism? In VB.Net it's synclock() I believe.
Thanks in advance.
...
I have had that weird error this afternoon... I cannot figure out why System.Data could rely on System.Data.SqlClient.
This happens in Mono under Linux, and I do not rely on SQL Server at all, by the way...
Oh! It says that it's only a warning but the compiler stops doing it job anyway.
Compilation Error
Description: Error com...
Is there a way to replace all existing values from XML with values from dictionary using Linq? I'm using c#.
XML example:
<root>
<node1> <--without attribute
<subNode1>someTextValue</subNode1>
</node1>
<node2 name="myNode2"> <--With attribute (IMPORTANT!!!)
<subNod1>someOtherTextValue</subNode1>
</node2>
</root>
Dicti...
I know this works fine:
<TextBox IsEnabled="{Binding ElementName=myRadioButton, Path=IsChecked}" />
...but what I really want to do is negate the result of the binding expression similar to below (psuedocode). Is this possible?
<TextBox IsEnabled="!{Binding ElementName=myRadioButton, Path=IsChecked}" />
...
Is there a simple way to send objects between applications using C#? The objects will not always be the same, there would be (for example) a "Request" and "Response" class and each side of the connection would have a sort of switch statement which decides which object has been received.
Is there a simple way to achieve something like th...