.net

Is it wise decision to move from .NET to JEE or RoR?

To develop a new project we are thinking to train .NET people learning either JEE or Ruby on Rails. This decision is just because of open source and to avoid purchasing of operating system also Sql Server database. Currently there are no people who work on either JEE or RoR. All team members should learn from the scratch. If applicati...

UnhandledReportRenderingException in SQL Reporting Service happening randomly

Hi: one of our customers are having this exception randomly. We put in some re-try code and keep-alive code, yet it still happens. So I am looking at the SQL log our customer sent us. And I saw this. So basicaly, one of the report has no data in certain field. would that be the cause of that problem? library!ReportServer_0-15!150c!10/...

One MVC Project or Two?

We have a large MVC .NET website for a hospital; it has a Doctor Portal, and a Patient Portal. In essence it is two sites, with very little feature overlap. We outsourced the Doctor part to a Vendor and now we are creating the Patient part. I am recommending that we create two separate MVC projects since we are creating the Patient por...

CollectionView with Filter not updating after ObservableCollection<T>.Move

Using .NET 3.5, I'm finding that a CollectionView with a filter doesn't update when the underlying ObservableCollection(T) has items moved using ObservableCollection(T).Move. As a sanity check, I started with a simple project, one of Bea Stollnitz' from this page: http://bea.stollnitz.com/blog/?p=31. The actual project can be download...

Compiling source code in debug mode using a CodeDomProvider

I have some source code I'd like to compile using the Microsoft.CSharp.CSharpCodeProvider class, and I want to include stuff that's specific to debug builds (e.g., methods marked with the [Condtional("DEBUG")] attribute). I tried setting the CompilerParameters.CompilerOptions property to "/debug", but when I ran the compiled code the de...

DirectoryInfo.GetFiles(searchPattern) is behaving oddly, and returning random files that DON'T match the searchPattern

I've got some old legacy code that I'm maintaining (please forgive the naming, this was written by a non programmer and the application is not important enough to be rewritten): Dim Path3 As String Path3 = "C:\Inetpub\wwwroot\uscgcrc\rsa\RSADocuments\IRBCorrespondenceToPI\" Dim dirInfo3 As New DirectoryInfo(Path3) Dim FileContainer3 A...

accessing methods of a dll

how to access the methods of a dll in .net using c# ...

How to insert a lambda into a Linq declarative query expression

Let's say you have the following code: string encoded="9,8,5,4,9"; // Parse the encoded string into a collection of numbers var nums=from string s in encoded.Split(',') select int.Parse(s); That's easy, but what if I want to apply a lambda expression to s in the select, but still keep this as a declarative query expr...

Changing external exe icon at runtime

Hi! I'm developing a simple application which is supposed to simply copy another existing executable file and change it's icon. Is this possible to achieve with .NET? I'm asking about icon changing, copying is not a problem. I have no clues on how and where to start. I've searched on Google, but found only unmanaged C++ code which I'm ...

.net application email solution?

We need email server for our .net application below are requirements, all options i know of kind of blackbox which sends and receives email for accounts, working it through api is not much intended. Basic requirement is send email + check status of email every 5 min to verify has it made it through. Service requirement -> Send email th...

How do I set up IIS 6.0 to handle all incoming requests through my IHTTPModule?

I currently have a IHTTPModule set up to handle all 404 and 500 errors. It is working on aspx pages, and items set up on those pages, but not on any other extensions. I have changed IIS to use aspnet_asapi.dll as the wildcard. Is there any way to route all traffic, even image and plain text, through the .net handlers so that 404's and...

How to compare to "Could not evaluate expression"?

I have a dictionary that is like this: Dictionary<string, object> myDictionary = new Dictionary<string, object>(); When I get data out of it, I am doing it like this: myDictionary["IndexingValue"] Most of the time that is working. But I just changed one of the values that it stores to be null. Now when I do that same call (expect...

Layered Architecture in Entity Framework 4.0

Hi I am trying architect a small project. I planning to have Data acess, Business Service, WcfService, UI Layer. I am trying to use EF 4.0 and MVC 2.0. My question is where to generate the entities and ObjectContext through EF. I initially planned it in DataAccess. but to make entities available across all layer I have to reference ...

PropertyInfo.GetValue() how do I index collection by string using reflection in C#?

Hi Guys. Let's say I have a class, which has a NameValueCollection property. public class TestClass { public NameValueCollection Values { get; private set; } public TestClass() { Values = new NameValueCOllection(); Values.Add("key", "value"); Values.Add("key1", "value1"); } } I know how to get...

How can I create this Func?

Hi There... Inspired by: NServiceBus.Configure.With().Log4Net(a => a.YourProperty = "value"); I want to use something similar as configuration, suggestions are welcome. My biggest problem is that I can't quite figure out how to use the parameter input... What exactly is going on here? NServiceBus uses Log4Net, as instance? set wi...

Adding .NET into jQuery function

I'm trying to get a certain fieldset to show up in a dialog box (using facebox) .. I've got the button set up, the dialog box and the HTML as a partial that I call .. The only thing is I don't know how to call the partial inside the jQuery.. Here is the jQuery: $('#addCatbutton').click(function() { jQuery.facebox('Add Ca...

Web config size limit exceeded under IIS7 0x80070032

I have a web.config file which is quite large in my current solution running on IIS7. It's working perfect on my dev server however I encounter the error 0x80070032 "Config Error Cannot read configuration file because it exceeds the maximum file size" My current solution uses a very large web.config file. The architecture of my CMS ap...

Can you publish a message while processing a queue in RabbitMQ .Net Client?

Hello, I have a couple messaging scenarios I need help with using RabbitMQ 2.1.0 in c#... 1) I would like to have a subscriber listening to "raw" queue; then do some preprocessing and publish a new message, such as "preprocessed" to the same exchange. 2) similar to 1 but publish to a different exchange I noticed in the .Net Client User ...

What are some 3rd party UI components for .NET MVC 2?

Hi. I'm looking for a 3rd party UI component library to be used in .NET 4.0 C# MVC2 web application. When I google it, Telerik comes up all over the first google page. To be honest, I actually do like it a lot. So, I'm just wondering what are other alternatives out there? What are some drawbacks/problems that people have experienced...

C# - Parse Math Expression

Is there an easy way to parse a simple math expression represented as a string such as (x+(2*x)/(1-x)), provide a value for x, and get a result? I looked at the VSAEngine per several online examples, however, I am getting a warning that this assembly has been deprecated and not to use it. If it makes any differences, I am using .NET 4....