no mapping between account and security windows service
During the setup of windows service I get the error: error 1001 no mapping between account and security windows service We use a custom user account for the server. (administrator account) ...
During the setup of windows service I get the error: error 1001 no mapping between account and security windows service We use a custom user account for the server. (administrator account) ...
I have a struct containing song data: public struct uLib { public string Path; public string Artist; public string Title; public string Album; public string Length; } My library consists of an array of this uLib. How would I sort this array by say Artist? Is there a native sort functio...
I have just deployed my first application in .NET MVC and i'm having issues. I have resolved the iis 5.1 problems with the routing (If anyone is looking for this go here: http://itscommonsensestupid.blogspot.com/2008/11/deploy-aspnet-mvc-app-on-windows-xp-iis.html ) **Now my issue is that wherever I call db.SubmitChanges() on my data ...
The .NET Framework seems to have two implementations of the DependencyProperty object System.Windows.DependencyProperty System.Workflow.ComponentModel.DependencyProperty I understand that the normal use of the first one is in WPF and the normal use of the second one is in WF but what are the differences between them if any? If I was ...
I have a strongly-typed datatable and I search for a row by primary key (FyndBy) and them if the row exists I want to delete it. From a style perspective which of the methods below do you prefer? MyDataRowType selectedRow = table.FindByTablePrimaryKey(something); if (selectedRow != null) selectedRow.Delete(); or if (table.FindByT...
Can I get the current method's MethodInfo somehow? ...
I have a method that accepts a bunch of strings in seperate parameters public string GetQueryString(string string1, string string2, string string3...) It should return a string in the form of "string1:value1 string2:value2 string3:value3..." Because I don't want to put reflection logic in the callers of GetQueryString, I think work...
I just stumbled upon the SetItemChecked and SetItemCheckState when working on a checked listbox. The SetItemChecked takes an listindex and True/false to either set the listitem to checked or unchecked. The SetItemCheckState takes an listindex and a CheckState-enum to set the state to either checked, unchecked or Indeterminate. Why doe...
You can find out a great deal about the internals of an application through reflection, it's exposed by the .NET BCL (base class library) and it makes it trivial to retrieve actual IL for any .NET method. Reverse engineering on Wikipedia: Reverse engineering is the process of discovering the technological principles of a device,...
Is possible to use the Signum Framework with previous versions of .NET, 2.0 specifically? ...
Hi, I'm developing a .NET CF client application and using web services for data transfer. I'm using SharpZipLib to compress transfered datasets so I know the size of the transfered byte array. I wonder is there an easy way to determine to complete request size (html headerder, soap envelops and the real data) for a single call. I reall...
In my asp.net-mvc ontroller I accept a bunch of form field values and from those create a string the Lucene library understands. Then I want to redirect to a get method that will show results depending on this lucene string. The lucene string is in the pattern {fieldName1:value1 fieldName2:value2 ...} my Global.asax has the followi...
In the application architecture guide v2.0a on page 196 (or follow this link), the authors mention this guideline: "Design an appropriate exception propagation strategy. For example, allow exceptions to bubble up to boundary layers where they can be logged and transformed as necessary before passing them to the next layer." What is the...
Let's say I have a .NET user application (.exe) running under Windows that was compiled in .NET Framework Version 3.0 (VS2008). If that application loads another .NET Assembly (.dll) that was compiled on a different computer using .NET Framework Version 2.0 (VS2005), will the loaded assembly use the existing 3.0 runtime (which will run ...
I'd like to write an extension method for the .NET String class. I'd like it to be a special varation on the Split method - one that takes an escape character to prevent splitting the string when a escape character is used before the separator. What's the best way to write this? I'm curious about the best non-regex way to approach it....
I have 5 tables belonging to 2 different datasets, I use them to populate some grids in a page. I want to implement some snapshot functionality and I need to save the data in the tables in an XML in the database. I was thinking of simply serializing the tables to XML using the .Net XmlSerializer (deserializing also), but there is a lot o...
I'm in the process writing a 'clever' number formatting function, which would behave this way : 1500 -> 1.5k 1517 -> 1 517 1234000 -> 1 234k 1200000 -> 1.2M Is it possible to do this using double.toString() or another .net built-in class ? I know it's quite easy to code, but I'd rather reuse the framework classes if the functionality...
If I want to use objects as the keys for a Dictionary, what methods will I need to override to make them compare in a specific way? Say I have a a class which has properties: class Foo { public string Name { get; set;} public int FooID {get; set;} ... } And I want to create a: Dictionary<Foo, List<Stuff>> I want Foo ob...
In a webpart I have two user controls loaded. I want to be able to populate one of the controls when an event is triggered in the other control, a parameter has to be passed between the controls. ...
Are there any predefined constants in the C# compiler to detect what version of the platform is being targeted? I can set a platform in Project options but how can I write single source for .NET 2 and .NET 3.5 ? Edit: I really want to write some code once and be able to switch behavior with something like #if CLR_VERSION35 and then rn...