.net

When to use value converters in a mvvm application?

Hi! If one is implementing a WPF application using the MVVM design pattern, is there any situation in which to use value converters? It seems to me that value converters do exactly the same what the view model does too, that is preparing data for the view. So, are there some good uses for value converters? Best Regards Oliver Hanappi ...

how do I capture a set of groups out of a string in particular order

I'm trying to build an alternative data entry, wherein the user will express some sort of command, that i'll parse. Rather than go into the details of the vocabulary I would be using in this effort here's an example of what I'm trying to accomplish with appoligies to Rex Harrison. given the following sentences the rain in spain fal...

Procedure for exception handling (catch, log, report, fix) in end user desktop app

Hi I'm starting a new project, a end-user desktop application. I'm a concerned about what will happened if (ok, when) the end-user gets an unhandled exception. Asking the user to help me reproduce the bug is not an acceptable option. As I see it I'm left with one option: to upload an error report to my server. Years ago when I were a...

Upgrading to ASP.NET 3.5

I have a server with some asp, asp.net 1.0 and 2.0 running on them. Now I'm planning to host 3.5 apps on them. Do i have to make any changes to server other than installing framework to make it handle all my previous version apps? Do i have to install new IIS or i can use same iis for 3.5? Do i have to install ajax newer version to...

Enabling Session State in SharePoint 2010?

I have a web service built for SharePoint 2007 that I am trying to port to SharePoint 2010. This web service is dependent on session state to function properly, but so far, I have been enable to get session state to work at all in SharePoint 2010. This web service runs as its own web application under t he /_vti_bin virtual directory. ...

MissingMethodException thrown when calling new form in Compact Framework

I'm updating an old mobile device application for better flexibility. I had basically added the ability to configure the address of our SQL server in the case that we want to use our test server as opposed to our production server. I don't think this is causing the problem, but I wanted to state it. I also upgraded the project from a VS ...

ASP.NET MVC: SelectList ignores selectedValue parameter in constructor

Hi, I've got the following in my view: <%= Html.DropDownList("Schema.MetaData.SourceTableName", new SelectList(Model.Schema.MetaData.SourceTableNames, Model.Schema.MetaData.SourceTableName), Model.SourceTablesOptionLabel)%> SourceTableNames is of type List<string> When I populate the model, I assign the value for SourceTableName usin...

How to convert string with exponent to float?

I have the following string: "3.39112632978e+001" which I need to convert to float. WolframAlpha says that the result of this value is 33.9112632978 which evidently I should get somehow and I couldn't figure out how. Single.Parse("3.39112632978e+001") gives 3.39112624E+12 Double.Parse("3.39112632978e+001") gives 3391126329780.0 float....

using microsoft enterprise library in .net dll to be called from COM application

I created a c++ .net dll, in which I need to implement logging. I decided to go with Microsoft Enterprise Library's Logging. Now, I am calling this dll from a COM application (I created a .tlb from the dll to use in the COM application), and the error I am getting is this: Could not load file or assembly 'Microsoft.Practices.Enterpris...

Using FitNesse rather than NUnit

As I've understood it, there's a couple of cases when you may want to use FitNesse. You want to do acceptance testing rather than unit testing. You want to use it as a communication tool with the stake holder. You want to do large scale tests rather than granular tests. You want non-technical people to write the tests. My personal op...

How do I diagnose "Microsoft .NET ClickOnce Launch Utility has stopped working"?

Hello StackOverflow! We deploy our application using ClickOnce, installed from a file path. For 24 versions it has been working perfectly - now, on version 25 I get the following error once the application has installed and it launches: If I test a previous deployment on the same machine, it works. Where can I even begin to look to...

Where clause in Fluent NHibernate Many-to-Many

I am trying to setup a many-to-many mapping in Fluent Nhibernate that has a where clause attached to the child table. This is basically how it should work: HasManyToMany(p => p.Images) .Table("ProductImages") .ParentKeyColumn("ProductID") .ChildKeyColumn("ImageID") .Where("ImageTypeID = 2"); The ImageTypeID column is in the I...

Error handling patterns for multithreaded apps using WF?

I was writing up a long, detailed question, but just scrapped it in favor of a simpler question that I didn't find an answer to here. Brief app description: I have a WPF app that spawns several threads, and each thread executes its own WF. What are some of the best ways to handle errors in the threads and WF that will allow user inte...

What are pros and cons of choosing between .NET vs. PHP?

Possible Duplicates: Career with PHP or ASP.NET? Learning PHP or ASP.NET? I would like to become a web programmer. I am a database programmer and would like to change directions. I can't decide whether to focus my efforts on PHP/LAMP vs. Microsoft .NET. Any thoughts? ...

Implementing Advanced Filter Page

I have a page which gives user to generate report based on different filters selected. I need some suggestion or idea on my thoughts Loop through each filter control (checkbox, multi select list, radiobox list) and build dynamic where conditions and conjunctions for each filter and then run query Get all the data (i think this will c...

Boolean bitmap operation in .NET?

Hello, I have two 8bpp bitmaps. I want to do a bitwise AND of one to the other, but I don't see any obvious way to do this in .NET. Is it possible to do this without using non-.NET methods? Thanks! ...

NHibernate: How to map a relationship represented by a range?

I have a class (Person) that contains an int property (Foo). Another class (FooRange) contains records representing possible ranges of Foo, with high and low boundaries in each row. Think of Foo as a 1 - 100 number and FooRange containing 10 rows, each representing a decile (0-9,10-19,etc.). How do I structure my NHibernate relationship...

JQUERY in .NET 1.1 -- Loading Message

Hello, I am a newbie to JQUERY.. I want to use it in .NET 1.1 application. When a button is clicked it takes long time to populate the results on to my control .. I want to show " loading ..please wait" message to the user.. How can I achieve this ?? ...

Can Not Compare Generic Values

I am creating a generic class to hold widgets and I am having trouble implementing the contains method: public class WidgetBox<A,B,C> { public bool ContainsB(B b) { // Iterating thru a collection of B's if( b == iteratorB ) // Compiler error. ... } } Error: Operator '==' cannot be applied to operan...

Is there a way to determine the .NET Framework version from the command line?

To troubleshoot an installation, sometimes I just want a quick answer to what version of .NET is installed. Is there a way to determine the .NET Framework version on a standard Windows system, other than looking at the directories? NOTE: This is not for a development machine, just out-of-the-box windows The following works, but I'm l...