After deploying a new asp.net web application up to our web farm, on the first load the application seemed to hang for about 20 minutes and then we got the above error in the application log.
Suspecting this might be a problem with the access permissions of the user in the application pool, we temporarily added this user to the local ad...
I'm working with LINQ to objects and have a function where in some cases I need to modify the underlying collection before calling Aggregate(...) and then return it to its original state before the funciton returns the results of Aggregate(...). My current code looks something like this:
bool collectionModified = false;
if(collectionNee...
I been experimenting with the different methods for representing a hierarchical structures in memory that would allow for simple and efficient transversal both up and down to discover ancestor and descendant relationships. Does anyone have any suggestions or examples of the options that I have? Is there a collection type in .Net 3.5 th...
Hi,
Is there a SSCLI equivalent for .Net Framework 3.5?
Something that can be debugged and stepped through.
Kind regards.
...
is it possible to create something like this i ASP.NET MVC beta 1
i have tried but the
override bool OnPreAction(string actionName,
System.Reflection.MethodInfo methodInfo)
does not exsist anymore and
override void OnActionExecuting(ActionExecutingContext filterContext)
don't give me access to the act...
I am new with Linq and I would like to sort some data that are in the BindinList. Once I did my Linq query, I need to use back the BindingList collection to bind my data.
var orderedList = //Here is linq query
return (BindingList<MyObject>)orderedList;
This compile but fail in execution, what is the trick?
...
I am using C# 3.0 / .NET 3.5 and planning to build an eCommerce website.
I've seen NHibernate, LLBLGEN, Genome, Linq to SQL, Entity Framework, SubSonic, etc.
I don't want to code everything by hand. If there is some specific bottleneck I'll manage to optimize the database/code.
Which ORM would be best? There is so much available those...
Hi, I really appreciate it if you could ask my question.
After I call myObjectContext.myEntitySet.ToList() method in my entity framework context, the password part from connectionstring in myObjectContext.Connection.ConnectionString is gone.is it a bug?
thanks very much for your help.
...
Hi
I have a datammodel in linq to SQL that includes a type "Party" which is sub classed twice for "Company" and "Individual". I am trying to bind two repeaters to linq to sql queries as follows
Dim oComp As IEnumerable(Of Company)
Dim oInd As IEnumerable(Of Individual)
oComp = From oP As Company In ERM.Parties _
...
I am trying to determine what issues could be caused by using the following serialization surrogate to enable serialization of anonymous functions/delegate/lambdas.
// see http://msdn.microsoft.com/msdnmag/issues/02/09/net/#S3
class NonSerializableSurrogate : ISerializationSurrogate
{
public void GetObjectData(object obj, Serializa...
Having a strange issue with some C# code - the Getter method for a property is showing up as virtual when not explicitly marked.
The problem exhibits with the DbKey property on this class (code in full):
public class ProcessingContextKey : BusinessEntityKey, IProcessingContextKey
{
public ProcessingContextKey()
{
// Not...
is there any way to retrieve mapping table name for an Entity in Entity-framework in program? I know you can use .ToTraceString() to get the command text and then extract the table name, but ToTraceString() method is very slow. is there any other way like using ObjectContext.MetadataWorkspace?
Thanks
...
I'm trying to get NAnt 0.86b1 running with VS2008 SP1 and x64 XP.
I have a basic build file (below) which gives the error
Solution format of file 'Solution.sln' is not supported.
<property name="nant.settings.currentframework" value="net-3.5" />
<target name="build" description="Full Rebuild" depends="clean,compile" />
<target n...
Hello all,
In a WPF UserControl, I have to make to call to a WebService. I am making this call on a separate thread but I want to inform the user that the call may take some time.
The WebMethod returns me a collection of objects and I bind it to a ListBox in my UC. So far, so good... This part works really well. However, I want to dis...
Hello all,
One of the nice feature of the Image control is that we can specified an Uri as the ImageSource and the image is automatically downloaded for us. This is great! However, the control doesn't seem to have a property indicating if the image loading is in progress or not.
Is there a property telling us the status (Downloading, D...
While checking out the generic collection in .net i found about KeyedByTypeCollection. Although I worked with it and got to know how to use it, I did not get in which scenario it will be useful.
I read through ServiceProvider, cache etc. done with generics without cast, but could not get much.
I think, there must have a reason as to wh...
I am trying to get an ASP.NET 3.5 ListView control to select and highlight lines through checkboxes displayed in the first column. If I use an asp:LinkButton instead of a checkbox, the line selection is supported automatically through the LinkButton's property CommandName="Select". How do I do that with the checkbox?
And as soon as I man...
In many places in our code we have collections of objects, from which we need to create a comma-separated list. The type of collection varies: it may be a DataTable from which we need a certain column, or a List<Customer>, etc.
Now we loop through the collection and use string concatenation, for example:
string text = "";
string separa...
Hello everyone,
I am currently receiving the below error:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
I have found multiple solutions to this error. The solutio...
Is it possible to have a WPF window/element detect the drag'n'dropping of a file from windows explorer in C# .Net 3.5? I've found solutions for WinForms, but none for WPF.
...