.net

Are .Net's and Java's DSA implementation compatible?

I am trying to digitally sign requests made by a mobile client running J2ME and want to verify the signature by the .Net Framework. Does anyone know if the implementations DSACryptoServiceProvider //.Net and Signature.getInstance("SHA1withDSA", "SUN") //Java are compatible? Or does anyone have a better idea? After some resea...

About $ character in asp.net

Hi all, I have a code section below : <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MainConnStr %>" SelectCommand="SELECT [au_id], [au_lname], [au_fname], [state] FROM [authors]" /> What is meaning of The $ character in value of ConnectionString attribute? ...

Optimal number of items to keep queued for the thread pool in .NET?

I am building a background processing engine which supports discarding both to-be-processed and is-being-processed items. This is for usage in a winforms application that will require heavy processing of some input elements, so I'm building a queue engine where I can enqueue workload items, and when they're processed, I get notified with...

How do I find a .NET remoting memory leak on select machines?

The memory leak is not happening on every machine, but reliably on a couple at my work, and it's looking like close to 10% in the field. I have a product that uses a Windows service to monitor user input to launch alerts, paired with a visual application that serves only to sit in the system tray, and allow the user to make configuratio...

Weird .NET Memory Leak in ClickOnce app that can't repro as Desktop

In Visual Studio, are there any real differences between a "Release" build of an application, and a published version of the same application? I have an ugly memory leak that's creeping up only in the published version installed via ClickOnce. The same leak does not occur in the "Release" build if I run the executable from the project/b...

Examples of Spartan Programming in C#

I am interested in reading examples of code in C# that makes use of the Spartan Programming philosophy. Can you please provide a link to any open source project or online code sample that follows this coding style? ...

The curiosity of the let_ property method

Every .net developer knows about the concept of properties. A rough 99.99%, it's just a piece of metadata gluing together two methods, a getter, and a setter. Same thing usually goes for events, with their add, remove, and invoke method. The ECMA-335 describes a «Other» kind of method semantic, that would apply to either a property or ...

How to implement a C# custom server control?

I am trying to implement a custom control using a RowClickableGridView class provided on this Stack Overflow post. This is the first time I have tried to create a custom server control and followed steps laid out in this MSDN walkthrough. I have the RowClickableGridView class in the App\_Code directory of my Web Application Project with...

My program needs to access information (key/value) from my hosted server. What web architecture would be best for this?

My program needs to download object definitions (basically xml files, maybe binary files) on demand via the net. The program will request objects from my server during runtime. The only thing the program has to send the server is a string that identifies the object it needs (e.g. RedCubeIn3DSpace23). So a basic Key, Value system. My app ...

How can I know the ACTUAL maximum number of elements a .net array of a given type can be allocated?

I know that all arrays in .net are limited to 2 GB, under this premise, I try not to allocate more that n = ((2^31) - 1) / 8 doubles in an array. Nevertheless, that number of elements still doesn't seem to be valid. Anyone knows how can I determine at run time the maximum number of elements given sizeof(T)? I know that whatever quantity...

Using FFmpeg from .NET

I have been searching for an hour on how to use FFmpeg from .NET and it seems you need to execute the FFmpeg.exe with a Process to get things done. To get a duration of an flv file for instance, you would need to start using grep to get something back out of cmd window. It all seems complicated... + you'd have to start installing things ...

Visual Studio Express can't debug - "The debugger is not properly installed"

I have recently set up Visual Web Developer 2008 Express Edition on my laptop (running XP SP3) to develop some c# .net code for a website. All seemed to be working great, I can edit code and the website runs in IIS... The problem came when I hit F5 to debug. I get the following error message: "Unable to attach to application 'WebDev.We...

WSE 3.0 Trust chain error - how do i view what certificate is being sent back? I want to know what cert has the trust chain error.

I'm having a trust chain error when I receive my response in WSE 3.0. Their cert is fine when I grab the WSDL. Their cert is fine when I connect. It likes my public cert when I send the XML request. What WSE doesn't like is the token in the response. Microsoft.Web.Service3 calls getelement, then loadbinarysecuritytoken, but then check...

Generic JSON parser in .NET / WPF?

Hi guys, I've read lots of tutorials on how to deserialize a JSON object to an object of a particular using DataContractJsonSerializer. However, I'd like to deserialize my object to a Dictionary consisting of either Strings, Arrays or Dictionaries, such as System.Json does with SilverLight when I say JsonObject.Parse(myJSONstring). Is ...

DataSet transformation to new DataSet group by (x)

I have DataSet. it returns date, and value by date. for ex: 01.01.2009 454 02.01.2009 785 03.01.2009 475 ---------- --- 30.01.2009 523 I need new DataSet, that group by week. for ex: 1 Week 1-7 2017 2 Week 7-15 4586 ----------------- 5 Week 24-30 1482 Week begin from monday. not importand only for this example, i...

.net assemblies

What are Xml serialization assembilies and why do we need them? If at all possible can you provide links? Thank you in advance ...

Caching in a clustered environment

Caching your data in your application code is generally a good idea for many reasons. We have being doing this for quiet some time in our shared environment which includes ColdFusion, .NET, and PHP. However, because we share this environment with many other development groups in our organization, there is significantly more downtime then...

Using delegates to simplify a type safe abstract syntax tree in C# (2.0) currently using the Visitor pattern.

Hi guys, I have some "input" that gets parsed a number of different ways. I'm trying to abstract out the parsing code from the various downstream engines that need the parsed result (some parts will display it, other parts actually execute it, etc. etc.). So far, I have this: interface IParsedNode { // Visits this node, returns wh...

connect WS_FTP Server 7.1 with .net ftpRequest

I'm trying to upload a file to this ftp server using System.Net.FtpWebRequest in .net 2.0, but keep getting an error: The underlying connection was closed: An unexpected error occurred on a receive. Do you have any suggestions on how to figure it out? and the strange thing is I can connect it using IE6, but not IE8... thanks a lot ...

What is the ideal project structure for a large .net application?

I’m working on a project currently with 5 developers. The application consists of a thick client, a thin admin client, and multiple supporting maintenance applications. Currently the thick client is written in VB6 and is slated for conversion to .NET in the next 6-12 months. The thin client is an admin web application that allows the ...