.net

Setting up OpenID Provider with SubDomains Identifiers using DotNetOpenAuth

Hi! I am currently trying to implement an OpenID Provider on my own domain name. Thus, I would like the OpenID Identifier of a user to be user.example.com instead of the default example.com/user.aspx/user.. Is it possible for DotNetOpenAuthto do that? If so, roughly what changes do i need to make? ...

Stepping Through ForEach blocks C# with VS Debugger?

EDIT: This question has been closed. Apologies to all - my confusion was caused by the fact that my keyboard (an ancient IBM) has finally given up the ghost and was randomly delegating presses to other keys. === ** Original Erroneous Post ** === Is there some way of stepping through ForEach blocks e.g. when doing a straightforwad itera...

What is a native library? What is the need for binding?

What is native library? What is binding? Why it is needed? ...

Entity Framework: Create an entity, attach child entities, do some stuff then persist entities... how?

I have a a function that I want to return a new entity with some child entities already attached. What I dont want to do is create them in the database first. I just want to create an new instance of the entity, create some new child entities and add them to the parent entity before returning the parent entity in the function. I started...

Extension methods in referenced assemblies?

If I try to call my extension method which is defined like this: Module LinqExtensions <System.Runtime.CompilerServices.Extension()> _ Public Function ToSortableBindingList(Of TSource)(ByVal source As IEnumerable(Of TSource)) As IBindingList If (source Is Nothing) Then Throw New ArgumentNullException("source") End If ...

How to Deploy a Workflow in the WindowsAzure Cloud?

Is it possible to deploy a WF (4.0) creating using .Net 4.0 in the windowsAzure cloud? Do we need to purchase a seperate BizTalk server account for this ? ...

How to change the user attributes(with the necessary human) in ActiveDirectory from SharePoint 2010?

To retrieve data from ActiveDirectory I used the following code: SPSecurity.RunWithElevatedPrivileges(delegate() ( var currentDirectory = new DirectoryEntry(domainAddress); )); But changing a property's value and attempt to update the values in ActiveDirectory (function CommitChanges()) generates System.UnauthorizedAccess...

tracking metric over multiple time buckets - known algo?

A situation has come up a few times in the last few weeks when I'd like to measure some event which might happen regulary (like the time taken to redraw a frame in a 2D smooth-scrolling UI) or variable freqency (like a message arriving to a webservice endpoint). I've had and idea of measuring 1) 'normal' frequency, 2) current frequency,...

c# (mono, dotgnu) for arm embedded questions

Has anyone experience with c# or .net based languages for arm based boards? Are there compilers that make my code ready for the arm board? Is it recommed to develop with linux or windows? Are there advantages having a Linux, or Windows OS on the target board? any help appreciated. Thx ...

shp files in .net and convert to kml

Hi, I am working on application with maps in .net. I want to read shp files in .net and convert to kml I dont want tool , I need dll or code so that I can do it at run time. Can you help me on same Regards, Rahul M ...

Why don't the Linq extension methods sit on IEnumerator rather than IEnumerable?

There are lots of Linq algorithms that only need to do one pass through the input e.g. Select. Yet all the Linq extension methods sit on IEnumerable rather than IEnumerator var e = new[] { 1, 2, 3, 4, 5 }.GetEnumerator(); e.Select(x => x * x); // Doesn't work This means you can't use Linq in any situation where you are rea...

The benefits of using String.Empty

Possible Duplicate: In C#, should I use string.Empty or String.Empty or ? I just don't understand the benefits of using String.Empty over "". Aside it being strongly typed its longer. So please, why should I be using this? ...

Set WCF ClientCredentials in App.config

Is it possible to set clientcredentials for an WCF in App.config? I would like to avoid doing this: Using svc As New MyServiceClient svc.ClientCredentials.UserName.UserName = "login" svc.ClientCredentials.UserName.Password = "pw" ... End Using Rather the login and password should be part of the configuration. ...

Workflow Foundation - Conversion error of WF.Service1.Entity to WF.Service2.Entity

Hello, I'm trying at the moment to use WF to create a basic Workflow, and face a conversion problem. Here's the setup : Service 1 : Create objects based on a defined Data Contract Service 2 : Apply an operation on objects of type defined in service 1. Service 1 is imported as Service reference. I created a simple Workflow which impor...

.net generate constructor based on fields .net

Hello guys, I'm producing very code using Identities Project to represent the objects, but it is some 1000 entities, and i need to know if exists some plugin or something .net free than produces auto contructor to each instance based on class fields. Example class Thing { public readonly string a; public readonly Object b; } // ...

Shortening this IF statement

I don't like wide code, especially when it forces me to scroll. So having written this: If _item.SubItems(pd.perioddate).Text = "N/A" Or _item.SubItems(pd.perioddate).Text = String.Empty Then dtpDeadlineforAP.Checked = False End If Is there a decent way to thin it down, make it more elegant? ...

Read an Excel field as string even though there are only numbers in this field

I have an Excel spreadsheet with, among onther things, numbers that are identifiers. My odbc reader should return me something like '55201562000016', but too often it returns me something like '5.52016e+008'. I only do the following, but apparently it does not suffice to tell the reader that it should be treated as a string and not an e...

Handle Entity Framework OptimisticConcurrencyException

...

Show lot of Data in chart (Create Waveform)

hello i want to create a SoundEditro with a wave form. i want to show all samples in this wave form but samples count > 9000000 thus my program work very bad. please help me, for create a waveform that show all samples rapidly. i use from MSChart for Framework 3.5 sp1 ...

Custm membership provider from MYSQL MemberShipr Provider,

hi, I am implementing my custom membership provider for MYSQL for this I write thi code: public class CustomSqlMembershipProvider :MySQLMembershipProvider { public override void Initialize(string name, NameValueCollection configs) { base.Initialize(name, configs); } } When I am compiling this class, ...