.net

What techniques are suitable for a windows database application where the database is available via http

I'm starting a database application. The application should connect over http to a mysql database. The application should display the database records table-like. Some dialogs are necessary (reflects a database-record). I'm thinking of a dialog-based MFC application with some functions available via menu and which connects via SOAP to th...

Something like FindBugs for .NET/C#

Hello All, I need something like FindBugs for C#/.NET ... Could you tell me where I can find something like this ? Thanks. ...

WSDL Generation and interfaces for testability

I have a webservice that I want to Consume in my application. Too be able to test the other parts of the application I have built an Interface that allows me to test using mocks and stubs. I can add the Interface to the generated code from the web service, however if at any point in time a regenerate the code I loose the Interface on t...

.NET: Binding of assembly to an new version of referenced assembly without recompile

Hi, I have a strong-named .NET assembly PluginHost which dynamically loads plugin-assemblies using Assembly.LoadFrom(). It has an Assembly- and File-version of 1.0.0.0. Every plugin-assembly references PluginHost because in PluginHost there is an interface defined, every plugin has to implement. Now I want to deploy an updated but fully...

Differences between C# and JavaScript Regular Expressions?

Are C# and JavaScript Regular Expressions different? Is there a list of these differences? ...

VB.Net load JS file if file exists

I'm trying to do this on a DotNetNuke site with multiple portals, so I want to do this server-side VB loads a javascript file if it exists. Any ideas? ...

Is it possible to update the TOC (TableOfContents) of a Word document generated with Syncfusion's DocIO lib?

Hello, Our application generates a Word document using Syncfusion's DocIO libs. Basically, we load a template and insert into it specific texts in specific bookmarks, generating a Word document that the user downloads on-the-fly. The issue we are facing is: The template is 4 pages long and has TOC. As we add content, the document si...

How to identify LDAP errors from exceptions thrown by C# System.DirectoryService calls?

I am writing a .NET application to query an LDAP server, and I can't figure out how to look at exceptions and figure out what happened on the LDAP end. I'm using DirectoryServices, and trying to avoid anything that's specific to ActiveDirectory. I create a DirectorySearcher, then do try { SearchResult result = searcher.FindOne()...

Is there anything similar to AutoMapper for Objective-c?

AutoMapper for .Net lets you map from one type to another. Its most basic function is to create one type of class from another type of class by copying property values from type A that exist in type B (have matching names and types). Example: public class ClassA { public string StringProp { get; set; } public int IntProp { get...

nhibernate 3.0 Oracle connection through ODP.NET

Can someone tell me whats wrong with the nhibernate config below? Using the latest ODP.NET version. <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > <session-factory> <property name="connection.driver_class">NHibernate.Driver.OracleDataClientDriver</property> <property name="connection.connection_string">DA...

How to configure a WCF client in code by using wsDualHttpBinding?

Hi. I saw this post with a proposed solution: http://stackoverflow.com/questions/497209/how-to-set-up-a-wcf-client-using-wsdualhttpbinding-in-code but is not clear me what it is refering to as the CommServiceClient when talking about creating a service client. Some example? ...

Could not establish secure channel for SSL/TLS for SOAP call

Our core server is calling out to a soap web service over https on a number of different servers to confirm that a transaction has completed. The code is dotnet 3.5 (vb) and works for the various callback services we have set up until we just moved a new one into production and it is refusing to communicate, giving the following error: ...

In C# Using Directory.GetFiles(), is there a way to start threads as files are found instead of having to wait?

In C# Using Directory.GetFiles(), is there a way to start threads as files are found? The behavior appears to be 'find all the files' then do what you need on each. Is there another class that allows one to start threads (up to a certain count) as files are found? ...

What's the right pattern for creating asyncronous services?

Here's what I'm trying to do: public class EmployeeService { public void GetEmployeesAsyc(Action<IEnumerable<Employees>> callback) { ThreadPool.QueueUserWorkItem(x => { var employees = //...fetch employees ...// callback(employees); }); } } public class ViewModel { private Emplo...

Preventing duplicate tag names with many-to-many NHibernate mapping

I'm using NHibernate to persist my Item class to a SQL database. The Item class has a property Item.Tags of type ICollection<Tag> which I am mapping using the following NHibernate configation. <set name="Tags" table="TagLinks" cascade="all" lazy ="false"> <key column="ItemId" /> <many-to-many class="Tag" column="TagID" /> </set> A...

Is it possible to define types that depend on each other and are defined in separated files?

I am trying to implement a library with extended parsing capabilities. I decided that I will use fsyacc because I knew it from the university. Unfortunately I encountered following problem. I defined a class for the head of my grammar (Head) and place its implementation in a single file. Then I defined parser as: ... %start head %type...

Is the entity framework using up my memory?

I'm trying to work out why memory usage in a basic application I'm writing is excessive. I'm trying to create a dynamic MVC sitemap with about 25000 nodes and populating it from a database table using the entity framework (though this detail is probably not important) I have the following code: foreach (var c in context.Companies) { }...

dependency injection with asp.net mvc

I have a service class : public class MyService : IService { private IRepoA repoA; private IRepoB repoB; public MyService(IRepoA repoA,IRepoB repoB) { this.repoA=repoA; this.repoB=repoB; } } my Controller depends on the MyService classL public MyController : DefaultController { IService myServ...

.Net Data Access integration with Teradata 12.0

Hello I have am working on a .net application that integrates with a Teradata database version 12. Currently, we are using Odbc at the DAL to interface with the database. Teradata have come out with the .Net Managed provider recently. I was wondering if there are any performance benchmarks available to compare ODBC with the .Net Manag...

C# Beginner, writing/calling a Method

When we write a method, say an easy one like void myMethod() { // code here // } and we call it from within Main(), it's done essentially this way: Program myProgram = new Program (); myProgram.myMethod(); Obviously, myProgram is entirely arbitrary (taking into consideration, of course, coding conventions) but w...