.net

jBPM Web Service

Hi, I ve got a question regarding jBPM. In one of our projects I developed an enterprise service (.Net) that other systems (jBPM, Delphi, etc.) should receive data from. For this I am providing a SOAP interface. Now there's a case that when the a jBPM system contacts the service, some manual work has to be done before the data the syst...

.net Application hanging. Weird crash-dump.

Hi, A production server has an application running 24x7, and sometimes it starts consuming near 50% of CPU. I couldn't reproduce it locally, but I did a Memory Dump with adplus. The server has Windows 2008 Server 64bits, .NET 3.5. The application listens to a MSMQ and has a thread pool to execute operations, when I did the memory dump it...

GetType on a class in a referenced assembly fails

I have an asp.net web project that references a domain project. From within the web project, I want to create an instance of a class from the domain project using reflection, but I always get null (Nothing, in VB). NOTE: I am using the non-fully qualified class name, and was hoping that a search would be performed as MSDN seems to indi...

FxCop (or equivalent) for non-.Net C++ code

Is there a way to get FxCop to analyze unmanaged C++ code? Setting the /clr flag allowed FxCop to open the .exe. It find a LOT of C++ items, but the analysis on the code is very weak. For example, the following code was skipped: int i=0; if (i=2) printf("Don't worry..everything will be okay."); I would like a tool that can catch t...

C#: Generating .BLT Files for OpenSTV Elections

I just downloaded OpenSTV after seeing the most recent SO blog post, regarding the results of the moderator election. Jeff wrote that he used OpenSTV to conduct the election, and supplied a ballot file (.blt) along with it that contains the voting data. My question is: how do you create a .BLT file in C#? Here are two ways that I can ...

Deploying a .NET service after updating a COM DLL

I'm trying to update a vb6 DLL and redeploy a .NET service, but I'm getting the following error: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {D01BF589-BC04-4119-8168-AE6180BBD021} failed due to the following error: 80040154. The steps I'm taking in de...

Unable to create objet context

I'm getting the Unable to create object context error when using Entity framework in ASP.NET MVC. Background Every time I POST to the controller I'm not getting a response back. I tried going directly to the method of the controller /Data/GetAll, and receive this error: Error The specified named connection is either not found in...

LINQ & Enums as IQueryable

I basically have an enum public enum WorkingDays { Monday, Tuesday, Wednesday, Thursday, Friday } and would like to do a comparison against an input, which happens to be a string //note lower case string input = "monday"; The best thing I could come up with was something like this WorkingDays day = (from d in Enum....

Recommended Implementation For Fields From Another System With Non-.Net Data Types

I am reading data from another system that returns XML that provides the following information for each field: "Field Name", "Data Type", and "Size". The "Data Type" returned is either: Alpha, LAlpha, RAlpha, CAlpha, or Numeric. Sometimes there are other attributes returned as well, such as Casing. I would like to create objects to model...

Process and AppDomain load/unload...

If I instance a new Process in which I then create a new AppDomain, I'm wondering what is the safest way to end the Process. Should I: AppDomain.Unload(myAppDomain) Process.Close() OR Process.Dispose(), then Process.Close() ...

Is GetHashCode threadsafe?

I have this question. public class Foo : object { public override bool Equals(obj a, objb) { return ((Foo)a).Bar.GetHashCode() == ((Foo)b).Bar.GetHashCode(); } } Suppose I want to make Foo threadsafe. Do I need to synchronize calls to GetHashCode()? ...

low priority http file transfer?

Is there a simple way to create a low priority transfer of a file? I have many files on my server and sometimes i am transferring other things too. Is there an easy way i can make my application transfer slowly when my network is busy? ...

Slow Operations In A RIA Services Domain Service Class

sHi All, I am using silverlight 3 with RIA services. I was wondering how I should deal with slow operations in a domain services class? I have an operation that will take a couple of minutes. I get a WCF timeout after a minute while the client is waiting for a response from the server. Another approach perhaps? Is is possible to tell t...

small problem in using assembly class in c#.net

i want to add a .mdb file to the resource, and while running i want to copy .mdb file to another location, do connection run it and delete the copied .mdb file while i finished processing with .mdb file. how to do this using assembly.GetManifestStream? if not with assembly.GetManifestStream what are the other ways with which i can do th...

Custom Property Default Value & .NET Designer

What's the best way to avoid (or control) the initialisation by the designer of a heavy custom property in .NET? Sometimes it is important to have a property set to something initially without that setting being acted upon when initially set. In the imaginary example below, I want to achieve the flexibility of having something like Upda...

Entity Framework in .NET?

Do we need to install the entity framework separately or does it come with .net 3.5 ...

How to repeat the row values

How to repeat the row values up to end date For Example Table1 Date Name Dept ----------------------- 12-02-2009 Raja IT 13-02-2009 Ravi CSE 14-02-2009 Ramu ECE From the above table value i want to repeat the value between the two dates from 12-02-2009 to 12-03-2009. Expected Output Date Name Dept ...

Is NHibernate.Spatial compatible with NHibernate 3.0?

I want to use NHibernate.Spatial. I also want to use new NHibernate 3.0 features such as the improved LINQ provider and the QueryOver functionality, which are only available in NHibernate's source control trunk. Are these two things compatible? I can't work without Spatial but I really want the LINQ features, which will have to go if th...

.NET DropDownList postback selection won't select anyting but first <option>

Hi, I'm having this problem with a .NET DropDownList control. PROBLEM: Every time I do a postback, It just defaults to the same first option tag as the one selected. I can't seem to get it so that it is pointing to the actual selected . Basically, here is what is happening. I make a DropDownList control in Default.aspx <asp:DropD...

Best way to implement a Generic Web Service API

What is the best way to implement a open/cross platform web service API to an existing .NET App? Not being a strictly .NET friendly API. It already has ASP.NET exposed web services, but need to be built into an generic API allowing inserts, updates and deletes and returning results based on user criteria in standard SOAP, JSON or other ...