Hi,
This was driving me a bit nuts as testing strong singing and installation to GAC of assemblies was working on one of my PC's, but not the other. This was the case with snk key files and pfx.
They could not be installed via either a drag and drop into the Assembly via explorer, or using the mscorcfg.msc tool.
I then realised the te...
I have seen a number of examples on this but re-producting them in this example does not seem to work. Does anyone have any ideas what is wrong with the following code....
var products = new[]
{
new {ProductName ="Soda", Category = "Beverages"},
new {ProductName ="Tuna", Category = "SeaFood"},
new {Prod...
Hi,
I have some problems with the Form.AutoScaleMode property together with fixed size controls, when using a non-default font. I boiled it down to a simple test application (WinForms 2.0) with only one form, some fixed size controls and the following properties:
class Form1 : Form
{
// ...
private void InitializeComponent()
...
Is there any way to create Linq2SQL query, that will be translated to this:
SELECT COUNT(*) as totalCount ,
SUM(v.field1) AS totalfield1,
....
SUM(v.<fieldN>) AS total<fieldN>
FROM [dbo].[SomeTable] v
...
I wish to automatically uncompress GZiped response.
I am using the following snippet:
mywebclient.Headers[HttpRequestHeader.AcceptEncoding] = "gzip";
mywebclient.Encoding = Encoding.UTF8;
try
{
var resp = mywebclient.DownloadData(someUrl);
}
I have checked HttpRequestHeader enum, and there is no option to do this via the Headers
...
My team doing a project related to network using Asp.net MVC(c#).
I need to validate mac address & ipaddress in client side(using javascript) & server side(using c#) for a simple form entry. I didn't get a good solution for validating mac address & ip addresss.
I searched google for finding a good user interface for validating mac add...
I'm using FtpWebRequest to connect to an FTP server and I can use WebRequestMethods.Ftp.ListDirectoryDetails to list the directory details fine. However the response from the remote server has day, month and time but not year:
-rw-rw-rw- 1 user group 949 Jun 2 08:43 Unsubscribes_20100602.zip
-rw-rw-rw- 1 user ...
I can't reconnect to MQQueueManager after a while as an exception (reason code 2059 - MQRC_Q_MGR_NOT_AVAILABLE) is thrown when I'm constructing new object of MQQueueManager. My client app is written in .NET/C# and I'm running it on Win2003.
However I can connect to QM after I have restarted my client app. This would indicate that some s...
I have a number of chunks of data.
For arguments sake we'll say they are
File 1 - 150Kb
File 2 - 50Kb
File 3 - 70Kb
File 4 - 60Kb
File 5 - 70Kb
File 6 - 100Kb
File 7 - 90Kb
For transmission, I can package these up into a max payload of 300Kb.
If you just iterate through them in order you'd get
TRANS1: 150Kb + 50Kb + 70Kb = 270...
A really strange one. We have a .NET application that connects to a server sends some information and then reads some information. The data I read has a fixed length header. The first part of the header is 1 byte. The problem is when doing the 1 byte read the network call blocks as if there is no data to be read. Now I know the data is o...
I have to following LINQ query, where I look for some different timestamps in an DB:
var issues =
from i in ReadOnlyContext.Issues
where i.TruckID == truckID && i.OutOfOrderStart < startDate &&
i.OutOfOrderEnd > endDate ||
i.TruckID == truckID && i.OutOfOrderStart > startDate &&
i.OutOfOrderEnd < endDa...
I need to serialize some object graphs to disc
What difficulties am I likely to encounter if I make changes to a class, then try to deserialize an old version?
Do some serializers handle this better than others?
What is the standard way of handling such a scenario?
For example, in a new version of the code, do I need to retain all th...
I have been asked to show the benefits and limitations of Parallelism and evaluate it for use within our company. We are predominantly a data orientated business, and essentially load objects from the database, then put them through some business logic, display to the user, then save back to the DB. In my mind, there isn't too much in th...
I am currently trying to port a legacy Python app over to .NET which contains AES encrpytion using from what I can tell pyCrpyto. I have very limited Python and Crypto experience. The code uses the snippet from the following page. http://www.djangosnippets.org/snippets/1095/
So far I believe I have managed to work out that it that it ca...
I've got a series of buttons labelled for the 24 hour clock. For example;
<StackPanel Orientation="Horizontal">
<ToggleButton Content="00:00" Name="thetime0000"/>
<ToggleButton Content="01:00" Name="thetime0100" />
<ToggleButton Content="02:00" Name="thetime0200" />
<ToggleButton Content="03:00" Name="thetime0300" />...
pls tell about difference between master page and aspx page
i need exact difference shortly, if u know pls, i refered so many website and books but i can't get it.
...
Hi,
I have an ImageMap control in an ascx file of mine. I'm trying to make something happen when the user clicks on an area in the map, but the page just posts back without my "imageMap_Click" event handler never being invoked. Suggestions?
<asp:ImageMap ID="imageMap" runat="server" ImageUrl="~/images/MapImages/map.jpg" HotSpotMode="Po...
We are working with a vendor to develop a mobile app and plan on using WCF services to handle operations. What are some types of authentication I can use with a WCF service? Would we send a user name and password through the SOAP header? How can we accomplish this securely?
Also, this will be authenticated against our .NET membership da...
Can anyone please suggest me a good open source C# code editor control with syntax highlighting and intellisense to use in my application. I am not asking for any IDE like VS or #develop, I need only a winform code editor control so that I can use it in my application for scripting.
Can you please suggest me a good one ...
I found Scint...
I want to add filter to columns in WPFToolkit datagrid. Is it possible to make it work like the ones in commercial grids (like in DevExpress's or Telerik's..)? Also a small second question about paging in datagrid..Do i need the one in the grid (i just want fast grid, so i thought about paging. Or maybe data virtualization there works ju...