I have a download manager of sorts that uses WebClient.DownloadFileAsync. Webclient doesn't seem to handle gzip encoding and some servers are insisting on using it. Since almost all of the files this will be downloading are already compressed, it would be nice just to be able to force it to stop.
I've tried setting the Accept-Encoding t...
I have developed a site with ASP.NET MVC 1, and now I'm trying to deploy it to a server with .net 2.0.50727. Since it is not working, I started to think that the main error is that the server doesn't support MVC 1.
Am I right? In other words, can I run ASP.NET MVC in a server with .NET 2.0.50727?
...
I have an XML document, want to do syntax highlighting.
The code uses XPathDocument, XPathNavigator and XPathNodeIterator .
After I call Select(), how can I get the original text in the XML document?
var xpathDoc = new XPathDocument(new StringReader(this.richTextBox1.Text));
var nav = xpathDoc.CreateNavigator();
XmlNamespaceManager...
After reading a series of blogs (here and here) by Chris Missal from LosTechies.com on the Specification Pattern I am am really interested in finding more complete examples. Does anyone know where I could find a more fleshed out example or perhaps an open source project that uses this pattern?
...
Why in the world does the following test fail? (its in xunit) I've tried it with different appenders and it never writes anything though the log seems like it is ready to write. I eventually created my own appender just to test it.
public class TestAppender : AppenderSkeleton {
public event Action<LoggingEvent> AppendCalle...
I have a simple, horizontal <Line> element. This line has a RotateTransform applied to it, which slants the line at whatever angle I choose. The problem is that the rendered length of the line is calculated before the transformation is applied. The result is that the line no longer fits its parent element after it is rotated.
My curre...
I heard somewhere that I need to strong name my binaries before I distribute them. Any ideas what this is?
...
Hi all,
I'm involved in a project that would call a webservice dynamically.
I have figured out a way to call a webservice method that has no method parameters on it, but now what I need is for me to call web methods that have parameters on it.
Was wondering if there are good examples on how I could create a soap envelope and how I c...
Hi.
Does any of you know a good HTTP / HTTPS packet sniffer for Windows?
I need it for debugging a webapp
I prefer open source (.NET),
but shareware or paid products are also of interest.
/Thanks
...
Hello,
I have a control and I want to paint it different way in Form and when printting. Here the way I did it:
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
Rectangle rect = myControl.ClientRectangle;
myControl.Render(e.Graphics, rect);
e.HasMorePages =...
When the following XAML used, the window size is not 5000x5000, but some small window where the button is cropped.
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" >
<Button Width="5000" Heig...
How can i validate in .Net C# a SAML signature created in Java?
Here is the SAML Signature that i get from Java:
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
</ds:CanonicalizationMethod>
<ds...
Hi,
How can I learn where .NET developers meets and organize events ? Google gives me nothing for that query. I really wanna attend those events and meetings.
Thanks.
...
I am using the webBrowser control in c# to load a webpage and need to call a JavaScript function that returns a string value. I got a solution to use the InvokeScript method, and i tried a lot , but everything got failed...... plz help me
...
How does one find the coordinates halfway on the X and Y axis in a user control or form?
How can I identify the range of the X-axis and the Range of the Y axis on a user control or form?
...
I have a WPF application that serializes some settings to an XML file in Isolated Storage. I was playing around with different classes to find out which would properly serialize my information and ended up with a List of some custom class.
This means I've changed the type used by the XmlSerializer class a couple of times in succession to...
How can i get type of file using c#.
for example if a file name id "abc.png" and type of file will "PNG Image" same as third column "Type" in window explorer.
...
We are using WCF for communication between a client and a server application. The client application has many features that requires communication to the server - and we have chosen to implement this in multiple classes (seperation of responsability)
For the time, we are creating new WCF endpoints and service contracts for each object -...
Dear all
I have a project written in C# where I need to do various linear algebraic operations on matrices (like LU-factorization).
Since the program is mainly a prototype created to confirm a theory, a C# implementation will suffice (compared to a possibly speedier C++ one), but I would still like a good BLAS or LAPACK library availab...
I am in the process of trying to lean .net 3 well, I have found in the past that taking the Microsoft Exams is a good way of gilding (and motivating my learning). There has been a few questions about Microsoft Exams on Stackoverflow recently:
Is worth it to get MS Certified?
Is the MeasureUp practice test easier or harder than the act...